CN104092690A - System and method for controlling media stream replaying bandwidth of streaming media - Google Patents

System and method for controlling media stream replaying bandwidth of streaming media Download PDF

Info

Publication number
CN104092690A
CN104092690A CN201410334338.0A CN201410334338A CN104092690A CN 104092690 A CN104092690 A CN 104092690A CN 201410334338 A CN201410334338 A CN 201410334338A CN 104092690 A CN104092690 A CN 104092690A
Authority
CN
China
Prior art keywords
media stream
stream data
data bag
program
media
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410334338.0A
Other languages
Chinese (zh)
Other versions
CN104092690B (en
Inventor
唐文东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GEEYA SCIENCE & TECHNOLOGY Co Ltd
Original Assignee
GEEYA SCIENCE & TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by GEEYA SCIENCE & TECHNOLOGY Co Ltd filed Critical GEEYA SCIENCE & TECHNOLOGY Co Ltd
Priority to CN201410334338.0A priority Critical patent/CN104092690B/en
Publication of CN104092690A publication Critical patent/CN104092690A/en
Application granted granted Critical
Publication of CN104092690B publication Critical patent/CN104092690B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention relates to the field of network communication, and provides a system and method for controlling the media stream replaying bandwidth of streaming media. The system and the method are used for controlling the media stream replaying bandwidth. The control system comprises a server-side and a client-side. The server-side specifically comprises a real-time program coding module, a program recording module, a program replaying control module, a real-time media stream counter and a replayed program sending packet counter. The client-side specifically comprises a streaming media player. By using the real-time media stream counter as a reference counter and combining the real-time media stream counter with the replayed program sending packet counter, the network bandwidth can be uniformly utilized in the replayed media stream sending process, the situation that the network data transmission efficiency is lowered due to surging which happens to media stream data is avoided, and the bandwidth resource utilization ratio of the whole network is increased.

Description

Streaming Media review Media Stream bandwidth control system and method
Technical field
The present invention relates to network communication field, particularly a kind of Streaming Media reviews Media Stream bandwidth control system and method.
Background technology
Streaming Media refers to that the mode that adopts stream transmission is in the Internet or the media formats play of Intranet, Streaming Media is not downloaded whole media stream file before broadcasting, only deposit beginning content in internal memory, in media play software, media stream data bag is carried out buffer memory and media data is correctly exported.The key technology that Streaming Media is realized is transmitted as a stream exactly, stream transmission mainly refers to whole audio frequency, video, the multimedia files such as three-dimensional media resolve to media stream data bag one by one through specific compress mode, by service end, to client, transmitted, wherein the DST PLAYER in client itself has certain buffer capacity, if but the media stream data amount that service end sends is excessive, there is " surge " in media stream data, at this moment network data will surpass the buffer capacity of player, if service end is to adopt UDP (User Data Protocol, User Datagram Protoco (UDP)) mode sends media stream data to client, can cause packet loss, if service end is to adopt TCP (Transmission Control Protocol, transmission control protocol) mode sends media stream data to client, the retransmission mechanism of tcp protocol stack can constantly be attempted retransmission data, can cause like this network effective bandwidth to reduce.
Summary of the invention
What the invention provides a kind of Streaming Media reviews Media Stream bandwidth control system and method, for controlling reviewing Media Stream bandwidth, to improve network bandwidth resources utilance.
In order to solve above technical problem, what first aspect of the present invention was to provide a kind of Streaming Media reviews Media Stream bandwidth control system, described system comprises service end and client, described service end specifically comprises real time programme coding module, performance recording module, program look back control module, real-time media flow counter and reviews program sending package counting facility, described client specifically comprises DST PLAYER
The media stream data bag of described real time programme coding module for adopting UDP mode to encapsulate with cbr (constant bit rate) output, wherein each media stream data is sealed the media data that has filled regular length;
Described performance recording module is for receiving from the media stream data bag of real time programme coding module and saving as disk file;
Described real-time media flow counter is for counting the media stream data bag of real time programme coding module output;
The described program sending package counting facility of reviewing is counted for the media stream data bag that program look back control module is sent, the initial value of wherein reviewing program sending package counting facility is: when program look back control module receives the programme replay request signal of client, and the current count value of real-time media flow counter;
Described program look back control module is for the count value and the count value of reviewing program sending package counting facility of cycle detection real-time media flow counter, if the count value that the count value of reviewing program sending package counting facility is less than real-time media flow counter detected, read the disk file in performance recording module, and sending media stream data bag to client DST PLAYER, the count value of reviewing program sending package counting facility after transmission adds one;
Described DST PLAYER is for sending and review request signal to program look back control module.
In the first possibility implementation aspect first, described service end and client are in same local area network (LAN).
In the second possibility implementation aspect first, described program look back control module is used UDP mode to send media stream data bag to client, and the data length in each the media stream data bag wherein sending equals the packaged media stream data length of each media stream data bag of real time programme coding module output.
In the third possibility implementation aspect first, described program look back control module is used TCP mode to send media stream data bag to client, and the data length in each the media stream data bag wherein sending equals the packaged media stream data length of each media stream data bag of real time programme coding module output.
In the 4th kind of possibility implementation aspect first, described DST PLAYER also reviews for program receiving media stream data bag the demonstration of decoding that control module sends.
What second aspect of the present invention was to provide a kind of Streaming Media reviews Media Stream band width control method, and described method comprises:
Steps A: the real time programme coding module of service end is in the media stream data bag that adopts UDP mode to encapsulate with cbr (constant bit rate) output, and wherein each media stream data is sealed the media data that has filled regular length;
Step B: the performance recording module of service end receives from the media stream data bag of real time programme coding module and saves as disk file;
Step C: the real-time media flow counter of service end is counted the media stream data bag of real time programme coding module output;
Step D: the DST PLAYER of client sends and reviews request signal to program look back control module;
Step e: the initial value of reviewing program sending package counting facility of service end is set to the current count value of real-time media flow counter;
Step F: the count value of the program look back control module cycle detection real-time media flow counter of service end and the count value of reviewing program sending package counting facility, if the count value that the count value of reviewing program sending package counting facility is less than real-time media flow counter detected, read the disk file in performance recording module, DST PLAYER to client sends media stream data bag, and the count value of reviewing program sending package counting facility after transmission adds one.
In the first possibility implementation aspect second, described service end and client are in same local area network (LAN).
In the second possibility implementation aspect second, in described step F, program look back control module is used UDP mode to send media stream data bag to client, and the data length in each the media stream data bag wherein sending equals the packaged media stream data length of each media stream data bag of real time programme coding module output.
In the third possibility implementation aspect second, in described step F, program look back control module is used TCP mode to send media stream data bag to client, and the data length in each the media stream data bag wherein sending equals the packaged media stream data length of each media stream data bag of real time programme coding module output.
In the 4th kind of possibility implementation aspect second, after step F, also comprise: DST PLAYER program receiving is reviewed media stream data bag the demonstration of decoding that control module sends.
As can be seen from the above technical solutions, by what adopt Streaming Media provided by the present invention, review Media Stream bandwidth control system and method, realized the flow bandwidth of playback program Media Stream has been controlled, the present invention can balancedly utilize the network bandwidth in reviewing Media Stream process of transmitting, avoided media stream data appearance " surge " and caused the situation of network data transmission decrease in efficiency, having improved the bandwidth resources utilance of whole network.
Accompanying drawing explanation
The Streaming Media that Fig. 1 provides for the embodiment of the present invention one review Media Stream bandwidth control system structured flowchart;
The Streaming Media that Fig. 2 A provides for the embodiment of the present invention two review Media Stream band width control method flow chart;
The Streaming Media that Fig. 2 B provides for the embodiment of the present invention two review Media Stream band width control method flow chart.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, the specific embodiment of the present invention is carried out to clear, complete description, obviously, described embodiment is a part of embodiment of the present invention, rather than whole embodiment, neither limitation of the present invention.Based on embodiments of the invention, those of ordinary skills, not paying the every other embodiment obtaining under creative work prerequisite, belong to protection scope of the present invention.
As shown in Figure 1, the Streaming Media that Fig. 1 provides for the embodiment of the present invention one review Media Stream bandwidth control system structured flowchart, described system comprises service end and client, described service end specifically comprises real time programme coding module 101, performance recording module 102, program look back control module 103, real-time media flow counter 105 and reviews program sending package counting facility 106, and described client specifically comprises DST PLAYER 104.
As a kind of preferred embodiment, client and service end are in same local area network (LAN).
The media stream data bag of real time programme coding module 101 for adopting UDP mode to encapsulate with cbr (constant bit rate) output, wherein each media stream data is sealed the media data that regular length is housed.Particularly, real time programme coding module 101 receives real time programme source, by forming the media stream data bag encapsulating in UDP mode after encoding, and exports with cbr (constant bit rate).
Performance recording module 102 is for receiving from the media stream data bag of real time programme coding module 101 and saving as disk file.
Real-time media flow counter 105 is for counting the media stream data bag of real time programme coding module 101 outputs.Need explanation, real-time media flow counter 105 is reference count, it is reference that the initial count value of reviewing program sending package counting facility 106 be take the count value of real-time media flow counter 105, by real-time media flow counter 105 and program sending package counting facility 106, the media stream data bag that can realize sending is controlled.
Reviewing program sending package counting facility 106 counts for the media stream data bag that program look back control module 103 is sent, the initial value of wherein reviewing program sending package counting facility 106 is: when program look back control module 103 receives the programme replay request signal of client, and the current count value of real-time media flow counter 105.
Program look back control module 103 is for the count value and the count value of reviewing program sending package counting facility 106 of cycle detection real-time media flow counter 105, if the count value that the count value of reviewing program sending package counting facility 106 is less than real-time media flow counter 105 detected, read the disk file in performance recording module 102, to client DST PLAYER 104, send media stream data bag, the count value of reviewing program sending package counting facility 106 after transmission adds one.
Particularly, program look back control module 103 can be used UDP mode to send media stream data bag to client, and the data length in the media stream data bag of each transmission equals the packaged media stream data length of each media stream data bag of real time programme coding module 101 outputs.Need explanation, if program look back control module 103 does not detect the count value that the count value of reviewing program sending package counting facility 106 is less than real-time media flow counter 105, can not read the disk file in performance recording module 102, also just can not send media stream data bag to client DST PLAYER 104, the count value of therefore reviewing program sending package counting facility 106 remains unchanged.
As a kind of preferred embodiment, program look back control module 103 also can be used TCP mode to send media stream data bag to client, and wherein the data length in each media stream data bag equals the packaged media stream data length of each media stream data bag of real time programme coding module 101 outputs.
DST PLAYER 104 operates in client, for sending and review request signal to program look back control module 103.When program look back control module 103 sends after media stream data bag, client DST PLAYER 104 receiving media stream packets the demonstration of decoding.
Particularly, what adopt live broadcast stream media program that the embodiment of the present invention one provides reviews Media Stream bandwidth control system, can be with reference to following concrete grammar embodiment to reviewing the method that Media Stream bandwidth controls.
As shown in Figure 2 A and 2 B, the Streaming Media that Fig. 2 A and Fig. 2 B provide for the embodiment of the present invention two review Media Stream band width control method flow chart, described method comprises:
Step 201: the media stream data bag that real time programme coding module encapsulates in cbr (constant bit rate) output UDP mode, the flow counter of real-time media is simultaneously counted the media stream data bag of real time programme coding module output.
Particularly, real time programme coding module and real-time media flow counter operate in service end, real time programme coding module receives real time programme source, by forming the media stream data bag encapsulating in UDP mode after encoding, and export with cbr (constant bit rate), with this simultaneously, real-time media flow counter is counted the media stream data bag of real time programme coding module output.
Step 202: performance recording module receives from the media stream data bag of real time programme coding module and saves as disk file.
Performance recording module operates in service end, and performance recording module receiving media stream packets is also recorded formation media file, this media file is saved as to disk file simultaneously and facilitates subsequent step to read.
Step 203: the DST PLAYER of client sends and reviews request signal to program look back control module.
Program look back control module is in service end, when step 201 and step 202 are carried out, if review the request signal of reviewing that control module receives that the DST PLAYER of client sends, performs step 204.
Step 204: the initial value that program look back control module is reviewed program sending package counting facility is set to the current count value of real-time media flow counter.
Particularly, review program sending package counting facility in service end, by performing step 201 current count values that can obtain real-time media flow counter, the current count value of real-time media flow counter is set to review the initial value of program sending package counting facility.Comprehensive step 203 and step 204, as long as review the request signal of reviewing that control module receives that the DST PLAYER of client sends, can cause the count value of real-time media flow counter to equate with the count value of reviewing program sending package counting facility.
Step 205: the count value of program look back control module cycle detection real-time media flow counter and the count value of reviewing program sending package counting facility, if review the count value that the count value of program sending package counting facility is less than real-time media flow counter, carry out next step.
It should be noted that, owing to having carried out step 204, the count value that the count value of reviewing program sending package counting facility equals real-time media flow counter can be detected at the beginning, meanwhile step 201 continues to carry out, the count value of real-time media flow counter increases, now program look back control module can detect the count value that the count value of reviewing program sending package counting facility is less than real-time media flow counter, performs step 206.
Step 206: program look back control module reads the disk file in performance recording module, to the DST PLAYER transmission media stream data bag of client, the count value of reviewing program sending package counting facility after transmission adds one.
Particularly, disk file in performance recording module comprises media stream data bag, program look back control module reading disk file, DST PLAYER to client sends the media stream data bag in disk file, the count value of reviewing program sending package counting facility after transmission adds one, this explanation, media stream data bag of the every transmission of program look back control module, the count value of reviewing program sending package counting facility just accumulates once.Meanwhile, program look back control module continue to detect the count value of real-time media flow counter and reviews the count value of program sending package counting facility, until the media stream data bag in media file all sends, and step 205 that Here it is said " cycle detection ".
As a kind of preferred embodiment, described service end and client are in same local area network (LAN).
As another kind of preferred embodiment, described control method, after execution step 206, is also carried out following steps: DST PLAYER program receiving is reviewed media stream data bag the demonstration of decoding that control module sends.
As another kind of preferred embodiment, step 206 program look back control module is used UDP mode to send media stream data bag to client, and the data length in the media stream data bag of each transmission equals the packaged media stream data length of each media stream data bag of real time programme coding module output.
As another kind of preferred embodiment, step 206 program look back control module is used TCP mode to send media stream data bag to client, and the data length in the media stream data bag of each transmission equals the packaged media stream data length of each media stream data bag of real time programme coding module output.
Comprehensive embodiment mono-and preferred embodiment thereof, by using real-time media flow counter as with reference to counter, in conjunction with reviewing program sending package counting facility, can make the data volume of client DST PLAYER buffering area maintain a steady level, no matter program look back control module adopts UDP mode or TCP mode to client transmission media stream data bag, the present invention can both balancedly utilize the network bandwidth in reviewing Media Stream process of transmitting, avoided media stream data appearance " surge " and caused the situation of network data transmission decrease in efficiency, improved the bandwidth resources utilance of whole network.

Claims (10)

1. a Streaming Media reviews Media Stream bandwidth control system, it is characterized in that described system comprises service end and client, described service end specifically comprises real time programme coding module, performance recording module, program look back control module, real-time media flow counter and reviews program sending package counting facility, described client specifically comprises DST PLAYER
The media stream data bag of described real time programme coding module for adopting UDP mode to encapsulate with cbr (constant bit rate) output, wherein each media stream data is sealed the media data that has filled regular length;
Described performance recording module is for receiving from the media stream data bag of real time programme coding module and saving as disk file;
Described real-time media flow counter is for counting the media stream data bag of real time programme coding module output;
The described program sending package counting facility of reviewing is counted for the media stream data bag that program look back control module is sent, the initial value of wherein reviewing program sending package counting facility is: when program look back control module receives the programme replay request signal of client, and the current count value of real-time media flow counter;
Described program look back control module is for the count value and the count value of reviewing program sending package counting facility of cycle detection real-time media flow counter, if the count value that the count value of reviewing program sending package counting facility is less than real-time media flow counter detected, read the disk file in performance recording module, and sending media stream data bag to client DST PLAYER, the count value of reviewing program sending package counting facility after transmission adds one;
Described DST PLAYER is for sending and review request signal to program look back control module.
2. system according to claim 1, is characterized in that described service end and client are in same local area network (LAN).
3. system according to claim 1 and 2, it is characterized in that described program look back control module use UDP mode sends media stream data bag to client, the data length in each the media stream data bag wherein sending equals the packaged media stream data length of each media stream data bag of real time programme coding module output.
4. system according to claim 1 and 2, it is characterized in that described program look back control module use TCP mode sends media stream data bag to client, the data length in each the media stream data bag wherein sending equals the packaged media stream data length of each media stream data bag of real time programme coding module output.
5. system according to claim 1 and 2, is characterized in that described DST PLAYER also reviews for program receiving media stream data bag the demonstration of decoding that control module sends.
Streaming Media review a Media Stream band width control method, it is characterized in that said method comprising the steps of:
Steps A: the real time programme coding module of service end is in the media stream data bag that adopts UDP mode to encapsulate with cbr (constant bit rate) output, and wherein each media stream data is sealed the media data that has filled regular length;
Step B: the performance recording module of service end receives from the media stream data bag of real time programme coding module and saves as disk file;
Step C: the real-time media flow counter of service end is counted the media stream data bag of real time programme coding module output;
Step D: the DST PLAYER of client sends and reviews request signal to program look back control module;
Step e: the initial value of reviewing program sending package counting facility of service end is set to the current count value of real-time media flow counter;
Step F: the count value of the program look back control module cycle detection real-time media flow counter of service end and the count value of reviewing program sending package counting facility, if the count value that the count value of reviewing program sending package counting facility is less than real-time media flow counter detected, read the disk file in performance recording module, DST PLAYER to client sends media stream data bag, and the count value of reviewing program sending package counting facility after transmission adds one.
7. method according to claim 6, is characterized in that described service end and client are in same local area network (LAN).
8. according to the method described in claim 6 or 7, it is characterized in that in described step F, program look back control module is used UDP mode to send media stream data bag to client, and the data length in each the media stream data bag wherein sending equals the packaged media stream data length of each media stream data bag of real time programme coding module output.
9. according to the method described in claim 6 or 7, it is characterized in that in described step F, program look back control module is used TCP mode to send media stream data bag to client, and the data length in each the media stream data bag wherein sending equals the packaged media stream data length of each media stream data bag of real time programme coding module output.
10. according to the method described in claim 6 or 7, it is characterized in that also comprising after step F: DST PLAYER program receiving is reviewed media stream data bag the demonstration of decoding that control module sends.
CN201410334338.0A 2014-07-15 2014-07-15 Streaming Media review Media Stream bandwidth control system and method Expired - Fee Related CN104092690B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410334338.0A CN104092690B (en) 2014-07-15 2014-07-15 Streaming Media review Media Stream bandwidth control system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410334338.0A CN104092690B (en) 2014-07-15 2014-07-15 Streaming Media review Media Stream bandwidth control system and method

Publications (2)

Publication Number Publication Date
CN104092690A true CN104092690A (en) 2014-10-08
CN104092690B CN104092690B (en) 2017-03-01

Family

ID=51640371

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410334338.0A Expired - Fee Related CN104092690B (en) 2014-07-15 2014-07-15 Streaming Media review Media Stream bandwidth control system and method

Country Status (1)

Country Link
CN (1) CN104092690B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878773A (en) * 2017-03-13 2017-06-20 网易(杭州)网络有限公司 Electronic equipment, method for processing video frequency and device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050204163A1 (en) * 2004-03-11 2005-09-15 Alkove James M. Methods and systems for protecting media content
CN102572555A (en) * 2012-01-16 2012-07-11 深圳市同洲视讯传媒有限公司 Method and system for realizing live video playback at HTTP live streaming (HLS) client
CN103051931A (en) * 2011-10-11 2013-04-17 中兴通讯股份有限公司 Method, server, client and system for recording and playing replay program
CN103533395A (en) * 2013-09-27 2014-01-22 武汉市烽视威科技有限公司 Method and system for realizing playback of hyper text transfer protocol (HTTP) live streaming (HLS) channel

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050204163A1 (en) * 2004-03-11 2005-09-15 Alkove James M. Methods and systems for protecting media content
CN103051931A (en) * 2011-10-11 2013-04-17 中兴通讯股份有限公司 Method, server, client and system for recording and playing replay program
CN102572555A (en) * 2012-01-16 2012-07-11 深圳市同洲视讯传媒有限公司 Method and system for realizing live video playback at HTTP live streaming (HLS) client
CN103533395A (en) * 2013-09-27 2014-01-22 武汉市烽视威科技有限公司 Method and system for realizing playback of hyper text transfer protocol (HTTP) live streaming (HLS) channel

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106878773A (en) * 2017-03-13 2017-06-20 网易(杭州)网络有限公司 Electronic equipment, method for processing video frequency and device and storage medium
CN106878773B (en) * 2017-03-13 2020-04-28 网易(杭州)网络有限公司 Electronic device, video processing method and apparatus, and storage medium

Also Published As

Publication number Publication date
CN104092690B (en) 2017-03-01

Similar Documents

Publication Publication Date Title
US20210377575A1 (en) Live streaming method and system, server, and storage medium
CN102740064B (en) Packing method for streaming media transmission in intercom system
CN103338386B (en) Based on the audio and video synchronization method simplifying timestamp
CN103929681B (en) Method for improving RTP video streaming treatment efficiency in low-speed network
CN100568966C (en) A kind of network transfer method of audio/video data
KR20190045117A (en) Method of delivering media data based on packet with header minimizing delivery overhead
CN104618786A (en) Audio/video synchronization method and device
CN107147916B (en) Method for transmitting H.265 coding video data on transmission layer
JP2005110244A (en) System and method for multimedia streaming service
CN108877820B (en) Audio data mixing method and device
US20180227164A1 (en) Method for synchronously taking audio and video in order to proceed one-to-multi multimedia stream
CN104394426A (en) Rate playing method and device of stream media
US10924524B2 (en) Communication devices, communication data generation method, and communication data processing method
CN103414956A (en) Real-time data transmission method and system based on transmission control protocol
CN103856787A (en) Commentary video passing-back live system based on public network and live method of commentary video passing-back live system based on public network
CN105007465A (en) Cipher-text H264 video live-broadcasting and on-demand platform based on live555 frame and ffmpeg library
CN100455027C (en) Signal processing apparatus and stream processing method
CN101521813B (en) Method and device for processing media stream
CN102917276B (en) A kind of Interleave method for packing being applied to streaming media service
CN100464586C (en) MPEG1 file real-time playing method based on IP STB
CN102186119A (en) Dynamic flow control method of streaming media server for ensuring audio/video quality
CN104754339A (en) Method, device and system for adjusting I frame
CN109040818A (en) Audio and video synchronization method, storage medium, electronic equipment and system when live streaming
CN117255236A (en) Audio and video synchronization method for digital visual intercom
CN103139188B (en) Flow-medium transmission method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170301

Termination date: 20210715

CF01 Termination of patent right due to non-payment of annual fee