CN106658051A - Method and system for controlling buffer playing streaming media - Google Patents

Method and system for controlling buffer playing streaming media Download PDF

Info

Publication number
CN106658051A
CN106658051A CN201611264398.5A CN201611264398A CN106658051A CN 106658051 A CN106658051 A CN 106658051A CN 201611264398 A CN201611264398 A CN 201611264398A CN 106658051 A CN106658051 A CN 106658051A
Authority
CN
China
Prior art keywords
streaming media
module
packet
network speed
data packet
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
CN201611264398.5A
Other languages
Chinese (zh)
Other versions
CN106658051B (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.)
China Science And Technology Co Ltd
Original Assignee
China Science And 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 China Science And Technology Co Ltd filed Critical China Science And Technology Co Ltd
Priority to CN201611264398.5A priority Critical patent/CN106658051B/en
Publication of CN106658051A publication Critical patent/CN106658051A/en
Application granted granted Critical
Publication of CN106658051B publication Critical patent/CN106658051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23106Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/23805Controlling the feeding rate to the network, e.g. by controlling the video pump

Abstract

The invention provides a method and system for controlling buffer playing streaming media. The method comprises the following steps: a multimedia information server receives a playing request; the multimedia information server slices and packages a streaming media video into a streaming media data packet; the multimedia information server caches the streaming media data packet in a buffer pool; the streaming media data packet in the buffer pool is transmitted to a streaming media playing terminal, and meanwhile the streaming media data packet is stored in a sent pool; a time threshold of storing the streaming media data packet and a data packet threshold are preset in the sent pool according to a current network speed; whether the difference of a transmission time of the streaming media data packet in the sent pool and the current time exceeds the time threshold is judged; and the number of the streaming media data packets in the sent pool is compared with the data packet threshold. According to the method and system provided by the invention, the multimedia data are sent by controlling an code rate mean, the data exceeding the threshold are cached to effectively avoid frame loss, blockage or instable output and other phenomena of the streaming media in a playing process, and thus the watching effect of users is improved.

Description

A kind of control method and system of buffered play Streaming Media
Technical field
The present invention relates to Technology of Multimedia Stream Playing field, the control method of more particularly to a kind of buffered play Streaming Media and it is System.
Background technology
It is more and more frequent in multimedia messages such as transmission over networks audio/videos with the continuous development of Internet technology, mesh It is front main by downloading and transmit as a stream two schemes.Downloading mode needs multimedia file, and all download is finished and could played, by It is generally larger in multimedia file, simultaneously because the restriction of the network bandwidth, usually needs to spend several minutes very using downloading mode Could download to a few hours and finish a multimedia file, so the delay of this processing mode is very big.
Streaming manner refers to the company by multimedia messages such as audio/videos from multimedia message server to client computer Continuous, real-time load mode.So that the continuous time-base media of streaming technology is referred to as Streaming Media.In this streaming manner Under, user need not all download when whole file and finish, and only need to enter by the played data of several seconds or tens of seconds Row viewing.It is characterized in that data flow is transmitted at any time to play at any time, when the Technology of Multimedia Stream Playing of streaming media mode is avoided User has to wait for whole file, and all download finishes the shortcoming that could be watched from network.
Flow medium play control method, device and streaming media playing disclosed in existing number of patent application 201010542432.7 Device can carry out self adaptation request control to transmitting terminal transmitted stream, optimize the utilization of network and system resource, improve and receive The video playing quality at end, but the bandwidth constraint by internet and network self stability affected, in order to ensure video Good play quality, still occurs the phenomenons such as frame losing, interim card or output shakiness during streaming media playing, affect user's viewing Experience, if there is the situation of suspension, will cause the reduction of flow medium buffer data volume, when such case maintains the long period When, it will cause the exhaustion of buffer data size, because no data can be broadcast, it will cause the interim card of whole playing process, now use Family will be unable to viewing.
The content of the invention
Bandwidth constraint and network self stability in order to solve prior art by internet is affected, in order to protect The good play quality of card video, still occurs the phenomenons such as frame losing, interim card or output shakiness during streaming media playing, affect to use Family viewing experience, if there is the situation of suspension, will cause the reduction of flow medium buffer data volume, when such case remains longer During the time, it will cause the exhaustion of buffer data size, because no data can be broadcast, it will cause the interim card of whole playing process, this When user will be unable to viewing the problems such as, the invention provides the control method and system of a kind of buffered play Streaming Media.
Concrete technical scheme of the present invention is as follows:
The invention provides a kind of control method of buffered play Streaming Media, the control method is comprised the following steps:
The playing request for streaming media video that S1, multimedia message server receiving stream media playback terminal send;
S2, the multimedia message server are by some frame of video in the streaming media video according to reproduction time order It is some flow media data packets to carry out cutting post package, respectively comprising several according to broadcasting in each described flow media data packet The frame of video of time sequencing sequence;
S3, Buffer Pool for caching the streaming media video is set up, the multimedia message server is by the stream matchmaker Volume data bag is according to reproduction time order buffer to the Buffer Pool;
S4, the flow media data packet in the Buffer Pool is broadcast according to reproduction time sequential delivery to the Streaming Media Terminal is put, while preserving to the transmission time for having sent pond, each flow media data packet being recorded in transmitting procedure;
S5, the current network speed for determining the streaming media playing terminal, have sent in pond according to the current network speed described The default time threshold and packet threshold values for preserving the flow media data packet, the packet threshold values is in the time threshold Packet sum;
S6, judge described to have sent the transmission time of the flow media data packet of preservation and current time in pond Whether difference exceeds the time threshold, and will delete beyond the flow media data packet of the time threshold;
Send the size of the quantity of the flow media data packet and the packet threshold values in pond described in S7, comparison, if The quantity of the bit stream data bag is more than or equal to the packet threshold values, then stop the data transfer in step S4, if conversely, The quantity of the flow media data packet is less than the packet threshold values, then continue to carry out data transmission in step S4.
Further, in the range of the time threshold, the flow media data packet received in the Buffer Pool When quantity is less than the packet threshold values, in step S4, reduce the flow media data packet in the Buffer Pool to the stream Media broadcast terminal and the transfer rate for having sent pond.
Further, in step S5, the current network speed of the streaming media playing terminal is determined, concrete grammar includes:
1., download speed during continuous several times collection user's history foradownloaded video, and set up network speed list and recorded;
2., the download speed recorded in the network speed list is calculated into it and is averagely worth to history network speed;
3., using the calculated history network speed as presently described streaming media playing terminal current network speed.
Further, in step S5, preset in pond the preservation Streaming Media in described transmission according to the current network speed The packet threshold values of packet, concrete grammar includes:
1., in the network speed interval for having sent and having preset in pond from low to high, and corresponding data from low to high are set Bag threshold values;
2., judge that the network speed belonging to the described current network speed of the streaming media playing terminal is interval, and the network speed is interval The corresponding packet threshold values is used as the packet threshold values sent in pond.
Preferably, step S2 is further comprising the steps of:
S2-1, the multimedia message server are used to for some flow media data packets to constitute index text in the form of a list Part;
S2-2, the multimedia message server to the streaming media playing terminal sends the index file;
S2-3, index file described in the streaming media playing terminal-pair are parsed, then according to the actual network bandwidth Situation, to the multimedia message server the corresponding flow media data packet of the index file record is asked;
Preferably, it is further comprising the steps of in step S3:
The Streaming Media that the multimedia message server asks the streaming media playing terminal according to the index file Packet is according to reproduction time order buffer to the Buffer Pool.
Present invention also offers a kind of control system of buffered play Streaming Media, including the multimedia messages clothes of mutual communication Business device and streaming media playing terminal, the streaming media playing terminal includes smart mobile phone or computer, the MMS (Multimedia Message Service) Device includes the database for communicating and the receiver module, frame of video group division module, the data transfer that communicate with the database Module, network speed determining module, time threshold setting module, packet threshold values presetting module, judge module, the first removing module and Contrast module;
Buffer Pool is provided with the database and pond has been sent;The receiver module is sent out for receiving stream media playback terminal The playing request for streaming media video for going out;The frame of video group division module is used for will be some in the streaming media video Frame of video divided according to reproduction time order after some flow media data packets of boil down to, and the flow media data packet is pressed According to reproduction time order buffer to the Buffer Pool;The data transmission module is used for the Streaming Media in the Buffer Pool Packet, to the streaming media playing terminal, while preserve to described having sent pond, is transmitted across according to reproduction time sequential delivery The transmission time of each flow media data packet is recorded in journey;
The network speed determining module is used to determine the current network speed of the streaming media playing terminal;The time threshold setting Module is used to that the time threshold for preserving the bit stream data bag to be preset in pond in described transmission, and the time threshold is sent To the judge module;The judge module is used to judge the described of the flow media data packet for having sent and having been preserved in pond Whether transmission time exceeds the time threshold with the difference of current time, and by beyond the Streaming Media of the time threshold Packet is sent to first removing module;First removing module is used for beyond the stream matchmaker of the time threshold Volume data bag is deleted;
The packet threshold values presetting module is used for according to the described current network speed of the streaming media playing terminal described Send to be preset in pond and preserved the packet threshold values of the flow media data packet, and sent to the contrast module;The contrast Module be used for relatively described in sent the size of the quantity of the flow media data packet and the packet threshold values in pond, if described The quantity of flow media data packet is more than or equal to the packet threshold values, then generate and stop the instruction of data transfer and send to described Data transmission module, makes the data transmission module stop data transfer;If conversely, the quantity of the flow media data packet is less than The packet threshold values, then generate and proceed the instruction of data transfer and send to the data transmission module, makes the data Transport module carries out data transmission.
Further, the multimedia message server also includes screening module, the second removing module, the buffering for communicating Amount statistical module, transfer rate regulation and control module, the screening module be used for filter out in the Buffer Pool have been sent to it is described The flow media data packet of streaming media playing terminal, and send to second removing module, second removing module is used In will have been sent to the streaming media playing terminal the flow media data packet delete;The buffering capacity statistical module is used for The quantity of the flow media data packet in the Buffer Pool is counted, if the flow media data packet received in the Buffer Pool Quantity when being less than the packet threshold values, then send to transfer rate regulation and control module and reduce the Buffer Pool to the stream matchmaker Body playback terminal transmits the transfer rate of the flow media data packet.
Further, the network speed determining module includes history network speed collecting unit, the network speed computing unit for communicating, institute History network speed collecting unit is stated for download speed during continuous several times collection user's history foradownloaded video, and sets up network speed list Recorded;The network speed computing unit is obtained for the download speed recorded in the network speed list to be calculated into its mean value To history network speed, the current network speed of as presently described streaming media playing terminal.
Further, the packet threshold values presetting module includes the network speed for communicating and threshold values corresponding unit, packet Threshold values determining unit, the network speed is used in the network speed area for having sent and having preset in pond from low to high with threshold values corresponding unit Between, and corresponding packet threshold values from low to high is set;The packet threshold values determining unit is used to judge the Streaming Media Network speed belonging to the described current network speed of playback terminal is interval, and using the interval corresponding packet threshold values of the network speed as institute State the packet threshold values sent in pond.
Preferably, the multimedia message server also includes and the frame of video group division module, the data transfer The index module that module communicates, the index module is used to generate the index file comprising some flow media data packets, and will The index file is sent to the streaming media playing terminal by the transport module;Described in the streaming media playing terminal-pair Index file is parsed, and then according to actual network bandwidth situation, to the multimedia message server rope is asked Draw the corresponding flow media data packet of file record.
Beneficial effects of the present invention are as follows:The control method of the buffered play Streaming Media that the present invention is provided can be by control Sending multi-medium data, the data buffering that will exceed threshold values gets up code check mean value, is prevented effectively from Streaming Media in playing process In there is frame losing, interim card or the output phenomenon such as shakiness, effective control data buffer storage, output, it is to avoid network speed is too fast or excessively slow In the case of, the situation of frame losing or interim card is caused, smooth transfer multi-medium data bag is effectively realized, because packet is delayed first Deposit, even if watching so nor affecting on user during suspension, additionally, the system architecture that the present invention is provided is simple, install With using more convenient, the viewing effect of user is not only increased, and system installation financial cost is low.
Description of the drawings
Fig. 1 is a kind of method flow schematic diagram of the control method of the buffered play Streaming Media described in embodiment 1;
Fig. 2 be embodiment 2 described in a kind of buffered play Streaming Media control method in S5 method flow diagram one;
Fig. 3 be embodiment 2 described in a kind of buffered play Streaming Media control method in S5 method flow diagram two;
Fig. 4 be embodiment 3 described in a kind of buffered play Streaming Media control method in S2 method flow diagram;
Fig. 5 is a kind of structural representation of the control system of the buffered play Streaming Media described in embodiment 4;
Fig. 6 be embodiment 4 described in a kind of buffered play Streaming Media control system in multimedia message server knot Structure block diagram;
Fig. 7 be embodiment 5 described in a kind of buffered play Streaming Media control system in multimedia message server knot Structure block diagram one;
Fig. 8 be embodiment 5 described in a kind of buffered play Streaming Media control system in network speed determining module structural frames Figure;
Fig. 9 is packet threshold values presetting module in a kind of control system of the buffered play Streaming Media described in embodiment 5 Structured flowchart;
Figure 10 be embodiment 5 described in a kind of buffered play Streaming Media control system in multimedia message server knot Structure block diagram two.
Wherein:1st, multimedia message server;101st, database;102nd, receiver module;103rd, frame of video group division module; 104th, data transmission module;105th, network speed determining module;1051st, history network speed collecting unit;1052nd, network speed computing unit; 106th, time threshold setting module;107th, packet threshold values presetting module;1071st, network speed and threshold values corresponding unit;1072nd, data Bag threshold values determining unit;108th, judge module;109th, the first removing module;110th, contrast module;111st, screening module;112nd, Two removing modules;113rd, buffering capacity statistical module;114th, transfer rate regulation and control module;115th, index module;2nd, streaming media playing end End.
Specific embodiment
Below in conjunction with the accompanying drawings the present invention is described in further detail with following examples.
Embodiment 1
As shown in figure 1, the embodiment of the present invention 1 provides a kind of control method of buffered play Streaming Media, the controlling party Method is comprised the following steps:
After program operation, user is sent to the multimedia message server 1 by streaming media playing terminal and wants viewing Video request;
The playing request for streaming media video that S1, the receiving stream media playback terminal of multimedia message server 1 send; And streaming media playback terminal is identified certification, judged according to the end message of streaming media playing terminal, if by recognizing Card then receives request, does not receive if not passing through.
S2, the multimedia message server 1 are suitable according to reproduction time by some frame of video in the streaming media video Sequence carries out cutting post package for some flow media data packets, respectively comprising several according to broadcasting in each described flow media data packet Put the frame of video of time sequencing sequence;Flow media data packet is equivalent to the video segment containing several frame of video, data transfer During one or more bags carry out data transmission.
S3, Buffer Pool for caching the streaming media video is set up, the multimedia message server 1 is by the stream matchmaker Volume data bag is according to reproduction time order buffer to the Buffer Pool;Buffer Pool can be used for storing the buffered data after processing, Ensure that viewing effect of the user in the case of suspension.
S4, the flow media data packet in the Buffer Pool is broadcast according to reproduction time sequential delivery to the Streaming Media Terminal is put, while preserving to the transmission time for having sent pond, each flow media data packet being recorded in transmitting procedure;Institute It is to have sent the timing node that pond receives the flow media data packet to state transmission time, and each packet has the when segmentum intercalaris of oneself Point.
When first time packet is transmitted, first determine whether to send whether pond has flow media data packet, if not having, by institute The flow media data packet stated in Buffer Pool is transferred to successively streaming media playing terminal according to crawl time sequencing, while caching To pond is sent, if there is flow media data packet, in being directly entered step S5~S7.
S5, the current network speed for determining the streaming media playing terminal, have sent in pond according to the current network speed described The default time threshold and packet threshold values for preserving the flow media data packet, the packet threshold values is in the time threshold Packet sum;Because network speed is different, the amount that it can be transmitted is also different, in order to ensure video in the unstable feelings of network speed The phenomenon of interim card is occurred without under condition, according to network speed setting data bag threshold values.
S6, judge described to have sent the transmission time of the flow media data packet of preservation and current time in pond Whether difference exceeds the time threshold, and will delete beyond the flow media data packet of the time threshold;Have ensured that The packet that the flow media data packet in pond is in time threshold and current time frame is sent, with the circulating of system OK, the flow media data packet in pond has been sent in real-time change.Described transmission time has as sent pond receiving stream media number According to the timing node of bag, i.e. difference between the timing node and current time is contrasted with time threshold values.
Send the size of the quantity of the flow media data packet and the packet threshold values in pond described in S7, comparison, if The quantity of the bit stream data bag is more than or equal to the packet threshold values, then stop the data transfer in step S4, if conversely, The quantity of the flow media data packet is less than the packet threshold values, then continue to carry out data transmission in step S4.
The method that the present invention is provided is by Buffer Pool and has sent the output that effective control flow media data packet is capable of in pond, makes Data output is smoothed, and the situation for not resulting in video cardton or frame losing occurs, and effectively provides user the video effect of viewing.
Embodiment 2
The embodiment of the present invention 2 is further defined on the basis of embodiment 1, in the range of the time threshold, institute When the quantity for stating the flow media data packet received in Buffer Pool is less than the packet threshold values, in step S4, reduce described The flow media data packet in Buffer Pool is to the streaming media playing terminal and the transfer rate for having sent pond.In order to prevent There is interim card in playing process in multimedia video, it should adjust transfer rate according to the network speed moment.
As shown in Fig. 2 needing further exist for what is illustrated, in step S5, the current network speed of the streaming media playing terminal is determined, Concrete grammar includes:
1., download speed during continuous several times collection user's history foradownloaded video, and set up network speed list and recorded;It is logical Cross and gather multiple history download speed, network speed record storehouse can be formed, history download speed needs record network speed not in the same time.
2., the download speed recorded in the network speed list is calculated into it and is averagely worth to history network speed;Will be same The multiple network speed value at moment carries out averagely history network speed being obtained, as current network speed.
3., using the calculated history network speed as presently described streaming media playing terminal current network speed.
By the determination of current network speed, being capable of effective control transfer rate.
As shown in figure 3, it should be noted that in step S5, being preset in described transmission in pond according to the current network speed The packet threshold values of the flow media data packet is preserved, concrete grammar includes:
1., in the network speed interval for having sent and having preset in pond from low to high, and corresponding data from low to high are set Bag threshold values;
2., judge that the network speed belonging to the described current network speed of the streaming media playing terminal is interval, and the network speed is interval The corresponding packet threshold values is used as the packet threshold values sent in pond.
Packet threshold values is determined by current network speed, when network speed is relatively low, packet threshold values can be turned down, when network speed it is higher When, packet threshold values can be heightened, data are slowly exported with network speed, are prevented effectively from the phenomenon that interim card occurs in video.
Embodiment 3
As shown in Figure 4, it is preferred that the embodiment of the present invention 3 further defines step S2 and also wraps on the basis of embodiment 1 Include following steps:
S2-1, the multimedia message server 1 are used to for some flow media data packets to constitute index in the form of a list File;The TS index lists that index file is implanted into similar to i Phone, some flow media data packets form playlist Index file, the multi-media segment for facilitating user to select by multimedia play terminal.
S2-2, the multimedia message server 1 to the streaming media playing terminal sends the index file;
S2-3, index file described in the streaming media playing terminal-pair are parsed, then according to the actual network bandwidth Situation, to the multimedia message server 1 the corresponding flow media data packet of the index file record is asked;
Interaction with streaming media playing terminal can be set up by index file, so as to realize can comparing by index file More conveniently request data package.
Preferably, it is further comprising the steps of in step S3:
The Streaming Media that the multimedia message server 1 asks the streaming media playing terminal according to the index file Packet is according to reproduction time order buffer to the Buffer Pool.
Embodiment 4
As shown in figure 5, the embodiment of the present invention 4 provides a kind of control system of buffered play Streaming Media, including phase intercommunication The multimedia message server 1 and streaming media playing terminal of news, the streaming media playing terminal includes smart mobile phone or computer.
As shown in fig. 6, the multimedia message server 1 include the database 101 that communicates and with the database 101 Receiver module 102, frame of video group division module 103, data transmission module 104, the network speed determining module 105, time for communicating Threshold value setting module 106, packet threshold values presetting module 107, judge module 108, the first removing module 109 and contrast module 110。
Is provided with Buffer Pool and has sent pond in the database 101, pond and Buffer Pool have been sent similar to buffering area and Area is sent, storage is used to;The receiver module 102 be used for that receiving stream media playback terminal to send for streaming media video Playing request;When the frame of video group division module 103 is for by some frame of video in the streaming media video according to playing Between sequentially divided after some flow media data packets of boil down to, and the flow media data packet is delayed according to reproduction time order Deposit to the Buffer Pool;The data transmission module 104 is used for the flow media data packet in the Buffer Pool according to broadcasting Put time sequencing to transmit to the streaming media playing terminal, while preserve to described having sent pond, in transmitting procedure each is recorded The transmission time of the flow media data packet.
The network speed determining module 105 is used to determine the current network speed of the streaming media playing terminal;The time threshold Setting module 106 is used to that the time threshold for preserving the bit stream data bag to be preset in pond in described transmission, and by the time Threshold value is sent to the judge module 108;The judge module 108 is used to judge the stream matchmaker for having sent and having been preserved in pond Whether the transmission time of volume data bag exceeds the time threshold with the difference of current time, and will be beyond the time threshold The flow media data packet of value is sent to first removing module 109;First removing module 109 is used for will be beyond institute The flow media data packet for stating time threshold is deleted.
The packet threshold values presetting module 107 is used for according to the described current network speed of the streaming media playing terminal in institute State to send to be preset in pond and preserve the packet threshold values of the flow media data packet, and send to the contrast module 110;It is described Contrast module 110 is big with the packet threshold values for having sent the quantity of the flow media data packet in pond described in comparison It is little, if the quantity of the flow media data packet is more than or equal to the packet threshold values, generate the instruction for stopping data transfer Send to the data transmission module 104, make the data transmission module 104 stop data transfer;If conversely, the Streaming Media The quantity of packet is less than the packet threshold values, then generate and proceed the instruction of data transfer and send to the data transfer Module 104, carries out data transmission the data transmission module 104.
The system that the present invention is provided is capable of the efficiency of transmission of effective control flow media data packet, makes the smooth output of Streaming Media, Prevent Streaming Media from occurring the situation of interim card in viewing, effectively improve viewing effect.
Embodiment 5
As shown in fig. 7, the embodiment of the present invention 5 is further defined on the basis of embodiment 4, the multimedia messages clothes Business device 1 also includes screening module 111, the second removing module 112, buffering capacity statistical module 113, the transfer rate regulation and control mould for communicating Block 114, the screening module 111 is used for filtering out the institute for having been sent to the streaming media playing terminal in the Buffer Pool Flow media data packet is stated, and is sent to second removing module 112, second removing module 112 is used to have sent The flow media data packet to the streaming media playing terminal is deleted;The buffering capacity statistical module 113 is used to count described The quantity of the flow media data packet in Buffer Pool, if the quantity of the flow media data packet received in the Buffer Pool is little When the packet threshold values, then send the reduction Buffer Pool to transfer rate regulation and control module 114 and broadcast to the Streaming Media Put the transfer rate of flow media data packet described in terminal transmission.Screening module 111, the second removing module 112, buffering capacity statistical module 113rd, transfer rate regulation and control module 114 realizes the management to flow media data packet in Buffer Pool.
As shown in figure 8, it should be noted that the network speed determining module 105 includes that the history network speed collection for communicating is single Unit 1051, network speed computing unit 1052, the history network speed collecting unit 1051 is used for continuous several times collection user's history and downloads Download speed during video, and set up network speed list and recorded;The network speed computing unit 1052 is used for network speed row The download speed recorded in table calculates it and is averagely worth to history network speed, and as presently described streaming media playing terminal is worked as Front network speed.
Can be effective by the history network speed collecting unit 1051 and network speed computing unit 1052 in network speed determining module 105 It is determined that current network speed, by network speed be determined to effectively determine transmission quantity.
As shown in figure 9, needing further exist for explanation, the packet threshold values presetting module 107 includes the net for communicating Speed and threshold values corresponding unit 1071, packet threshold values determining unit 1072, the network speed is used for threshold values corresponding unit 1071 The network speed preset in pond from low to high that sent is interval, and arranges corresponding packet threshold values from low to high;The number It is used to judge that the network speed belonging to the described current network speed of the streaming media playing terminal is interval according to bag threshold values determining unit 1072, and Using the interval corresponding packet threshold values of the network speed as the packet threshold values sent in pond.
As shown in Figure 10, it is preferred that the multimedia message server 1 also includes and the frame of video group division module 103rd, the index module 115 that the data transmission module 104 communicates, the index module 115 is used to generate comprising some streams The index file of media data packet, and the index file is sent to the streaming media playing end by the transport module End;Index file described in the streaming media playing terminal-pair is parsed, then according to actual network bandwidth situation, to described Multimedia message server 1 asks the corresponding flow media data packet of the index file record.
The present invention is not limited to above-mentioned preferred forms, and anyone can show that other are various under the enlightenment of the present invention The product of form, however, make any change in its shape or structure, it is every with skill identical or similar to the present application Art scheme, is within the scope of the present invention.

Claims (10)

1. a kind of control method of buffered play Streaming Media, it is characterised in that the control method is comprised the following steps:
The broadcasting for streaming media video that S1, multimedia message server (1) receiving stream media playback terminal (2) send please Ask;
S2, the multimedia message server (1) are by some frame of video in the streaming media video according to reproduction time order It is some flow media data packets to carry out cutting post package, respectively comprising several according to broadcasting in each described flow media data packet The frame of video of time sequencing sequence;
S3, Buffer Pool for caching the streaming media video is set up, the multimedia message server (1) is by the Streaming Media Packet is according to reproduction time order buffer to the Buffer Pool;
S4, by the flow media data packet in the Buffer Pool according to reproduction time sequential delivery to the streaming media playing end End (2), while preserving to the transmission time for having sent pond, each flow media data packet being recorded in transmitting procedure;
S5, the current network speed for determining the streaming media playing terminal (2), have sent pre- in pond according to the current network speed described If preserving the time threshold and packet threshold values of the flow media data packet, the packet threshold values is in the time threshold Packet sum;
The transmission time and the difference of current time of the flow media data packet preserved in pond are sent described in S6, judgement Whether exceed the time threshold, and will delete beyond the flow media data packet of the time threshold;
The size of the quantity of the flow media data packet and the packet threshold values in pond is sent described in S7, comparison, if described The quantity of bit stream data bag is more than or equal to the packet threshold values, then stop the data transfer in step S4, if conversely, described The quantity of flow media data packet is less than the packet threshold values, then continue to carry out data transmission in step S4.
2. the control method of buffered play Streaming Media as claimed in claim 1, it is characterised in that in the model of the time threshold In enclosing, when the quantity of the flow media data packet received in the Buffer Pool is less than the packet threshold values, in step S4, subtract The flow media data packet in the little Buffer Pool is to the streaming media playing terminal (2) and the transmission for having sent pond Rate.
3. the control method of buffered play Streaming Media as claimed in claim 1, it is characterised in that in step S5, it is determined that described The current network speed of streaming media playing terminal (2), concrete grammar includes:
1., download speed during continuous several times collection user's history foradownloaded video, and set up network speed list and recorded;
2., the download speed recorded in the network speed list is calculated into it and is averagely worth to history network speed;
3., using the calculated history network speed as presently described streaming media playing terminal (2) current network speed.
4. the control method of buffered play Streaming Media as claimed in claim 1, it is characterised in that in step S5, according to described Current network speed presets the packet threshold values for preserving the flow media data packet in described transmission in pond, concrete grammar includes:
1., in the network speed interval for having sent and having preset in pond from low to high, and corresponding packet valve from low to high is set Value;
2., judge that the network speed belonging to the described current network speed of the streaming media playing terminal (2) is interval and the network speed interval is right The packet threshold values answered is used as the packet threshold values sent in pond.
5. the control method of buffered play Streaming Media as claimed in claim 1, it is characterised in that step S2 also includes following step Suddenly:
S2-1, the multimedia message server (1) are literary for some flow media data packets to be constituted in the form of a list into index Part;
S2-2, the multimedia message server (1) to the streaming media playing terminal (2) sends the index file;
S2-3, the streaming media playing terminal (2) are parsed to the index file, then according to actual network bandwidth feelings Condition, to the multimedia message server (1) the corresponding flow media data packet of the index file record is asked;
Preferably, it is further comprising the steps of in step S3:
The stream matchmaker that the multimedia message server (1) asks the streaming media playing terminal (2) according to the index file Volume data bag is according to reproduction time order buffer to the Buffer Pool.
6. a kind of control system of buffered play Streaming Media, it is characterised in that including the multimedia message server of mutual communication (1) and streaming media playing terminal (2), the streaming media playing terminal (2) is including smart mobile phone or computer, the multimedia messages Server (1) includes the database (101) for communicating and the receiver module (102), the video that communicate with the database (101) Frame group cutting module (103), data transmission module (104), network speed determining module (105), time threshold setting module (106), Packet threshold values presetting module (107), judge module (108), the first removing module (109) and contrast module (110);
It is provided with Buffer Pool and has sent pond in the database (101);The receiver module (102) is for receiving stream media broadcasting The playing request for streaming media video that terminal (2) sends;The frame of video group cutting module (103) is for by the stream matchmaker Some frame of video in volumetric video divided according to reproduction time order after some flow media data packets of boil down to, and will be described Flow media data packet is according to reproduction time order buffer to the Buffer Pool;The data transmission module (104) is for will be described The flow media data packet in Buffer Pool according to reproduction time sequential delivery to the streaming media playing terminal (2), while protect Deposit to the transmission time for having sent pond, each flow media data packet being recorded in transmitting procedure;
The network speed determining module (105) is for determining the current network speed of the streaming media playing terminal (2);The time threshold Setting module (106) for preset in pond the time threshold for preserving the bit stream data bag in described transmission, and when will be described Between threshold value send to the judge module (108);The judge module (108) is for judging described to have sent the institute preserved in pond The transmission time of flow media data packet and the difference of current time are stated whether beyond the time threshold, and will be beyond described The flow media data packet of time threshold is sent to first removing module (109);First removing module (109) is used Delete in the flow media data packet that will exceed the time threshold;
The packet threshold values presetting module (107) according to the described current network speed of the streaming media playing terminal (2) for existing Described transmission preset in pond the packet threshold values of the preservation flow media data packet, and sends to the contrast module (110); The contrast module (110) for having sent the quantity of the flow media data packet and the packet threshold values in pond described in relatively Size, if the quantity of the flow media data packet is more than or equal to the packet threshold values, generates and stop data transfer Instruction is sent to the data transmission module (104), makes the data transmission module (104) stop data transfer;If conversely, institute The quantity of flow media data packet is stated less than the packet threshold values, is then generated and is proceeded the instruction of data transfer and send to described Data transmission module (104), carries out data transmission the data transmission module (104).
7. the control system of buffered play Streaming Media as claimed in claim 6, it is characterised in that the MMS (Multimedia Message Service) Device (1) also includes screening module (111), the second removing module (112), buffering capacity statistical module (113), the transfer rate for communicating Regulation and control module (114), the screening module (111) to filtering out in the Buffer Pool for having been sent to the Streaming Media and broadcast The flow media data packet of terminal (2) is put, and is sent to second removing module (112), second removing module (112) flow media data packet for having been sent to the streaming media playing terminal (2) is deleted;The buffering capacity system Module (113) is counted for counting the quantity of the flow media data packet in the Buffer Pool, if receive in the Buffer Pool When the quantity of the flow media data packet is less than the packet threshold values, then sends to transfer rate regulation and control module (114) and subtract The little Buffer Pool transmits the transfer rate of the flow media data packet to the streaming media playing terminal (2).
8. the control system of buffered play Streaming Media as claimed in claim 6, it is characterised in that the network speed determining module (105) including history network speed collecting unit (1051), network speed computing unit (1052) for communicating, the history network speed collection is single First (1051) gather download speed during user's history foradownloaded video for continuous several times, and set up network speed list and recorded; The network speed computing unit (1052) is averagely worth to for the download speed recorded in the network speed list to be calculated into it History network speed, the current network speed of as presently described streaming media playing terminal (2).
9. the control system of buffered play Streaming Media as claimed in claim 6, it is characterised in that the packet threshold values is preset Module (107) includes the network speed for communicating and threshold values corresponding unit (1071), packet threshold values determining unit (1072), the net Speed and threshold values corresponding unit (1071) arrange corresponding for having sent the network speed interval preset in pond from low to high described Packet threshold values from low to high;The packet threshold values determining unit (1072) is for judging the streaming media playing terminal (2) network speed belonging to described current network speed is interval, and using the interval corresponding described packet threshold values of the network speed as it is described Send the packet threshold values in pond.
10. the control system of buffered play Streaming Media as claimed in claim 6, it is characterised in that the multimedia messages clothes Business device (1) also includes the indices modulo communicated with the frame of video group cutting module (103), the data transmission module (104) Block (115), the index module (115) for generating the index file comprising some flow media data packets, and by the index File is sent to the streaming media playing terminal (2) by the transport module;The streaming media playing terminal (2) is to the rope Quotation part is parsed, and then according to actual network bandwidth situation, to the multimedia message server (1) rope is asked Draw the corresponding flow media data packet of file record.
CN201611264398.5A 2016-12-30 2016-12-30 A kind of control method and system of buffered play Streaming Media Active CN106658051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611264398.5A CN106658051B (en) 2016-12-30 2016-12-30 A kind of control method and system of buffered play Streaming Media

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611264398.5A CN106658051B (en) 2016-12-30 2016-12-30 A kind of control method and system of buffered play Streaming Media

Publications (2)

Publication Number Publication Date
CN106658051A true CN106658051A (en) 2017-05-10
CN106658051B CN106658051B (en) 2019-05-10

Family

ID=58837886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611264398.5A Active CN106658051B (en) 2016-12-30 2016-12-30 A kind of control method and system of buffered play Streaming Media

Country Status (1)

Country Link
CN (1) CN106658051B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388552A (en) * 2017-08-07 2019-02-26 中兴通讯股份有限公司 Start the determination method, apparatus and storage medium of the duration of application program
CN109474486A (en) * 2018-09-30 2019-03-15 深圳市网心科技有限公司 Transmission of flow media data owes fast determination method, system and device
CN109996094A (en) * 2017-12-29 2019-07-09 杭州海康威视系统技术有限公司 Video broadcasting method, apparatus and system
CN110300326A (en) * 2018-03-22 2019-10-01 杭州萤石软件有限公司 A kind of detection method and device of video cardton
CN110545451A (en) * 2018-05-29 2019-12-06 阿里巴巴集团控股有限公司 stream media card pause identification method, server and system
CN110557411A (en) * 2018-05-30 2019-12-10 视联动力信息技术股份有限公司 video stream processing method and device based on video network
CN111107438A (en) * 2019-12-30 2020-05-05 北京奇艺世纪科技有限公司 Video loading method and device and electronic equipment
CN114244780A (en) * 2021-12-27 2022-03-25 海光信息技术股份有限公司 Data transmission method, data transmission device and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103067791A (en) * 2012-12-11 2013-04-24 深圳市梦网科技发展有限公司 Network dynamic adaptation monitoring video transmission method
CN103152651A (en) * 2013-01-31 2013-06-12 广东欧珀移动通信有限公司 Method and system of automatically adjusting play threshold of streaming media buffering area
CN103379379A (en) * 2012-04-13 2013-10-30 腾讯科技(深圳)有限公司 Streaming media buffer play method and apparatus
CN103957431A (en) * 2014-04-30 2014-07-30 深圳创维数字技术股份有限公司 Streaming media transmission control method and streaming media server
CN106534884A (en) * 2016-11-10 2017-03-22 中广热点云科技有限公司 Code rate control method and system for video coding

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379379A (en) * 2012-04-13 2013-10-30 腾讯科技(深圳)有限公司 Streaming media buffer play method and apparatus
CN103067791A (en) * 2012-12-11 2013-04-24 深圳市梦网科技发展有限公司 Network dynamic adaptation monitoring video transmission method
CN103152651A (en) * 2013-01-31 2013-06-12 广东欧珀移动通信有限公司 Method and system of automatically adjusting play threshold of streaming media buffering area
CN103957431A (en) * 2014-04-30 2014-07-30 深圳创维数字技术股份有限公司 Streaming media transmission control method and streaming media server
CN106534884A (en) * 2016-11-10 2017-03-22 中广热点云科技有限公司 Code rate control method and system for video coding

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388552A (en) * 2017-08-07 2019-02-26 中兴通讯股份有限公司 Start the determination method, apparatus and storage medium of the duration of application program
CN109388552B (en) * 2017-08-07 2024-03-26 中兴通讯股份有限公司 Method and device for determining duration of starting application program and storage medium
CN109996094A (en) * 2017-12-29 2019-07-09 杭州海康威视系统技术有限公司 Video broadcasting method, apparatus and system
CN109996094B (en) * 2017-12-29 2021-08-13 杭州海康威视系统技术有限公司 Video playing method, device and system
CN110300326A (en) * 2018-03-22 2019-10-01 杭州萤石软件有限公司 A kind of detection method and device of video cardton
CN110300326B (en) * 2018-03-22 2021-11-26 杭州萤石软件有限公司 Video jamming detection method and device, electronic equipment and storage medium
CN110545451A (en) * 2018-05-29 2019-12-06 阿里巴巴集团控股有限公司 stream media card pause identification method, server and system
CN110557411A (en) * 2018-05-30 2019-12-10 视联动力信息技术股份有限公司 video stream processing method and device based on video network
CN109474486A (en) * 2018-09-30 2019-03-15 深圳市网心科技有限公司 Transmission of flow media data owes fast determination method, system and device
CN111107438A (en) * 2019-12-30 2020-05-05 北京奇艺世纪科技有限公司 Video loading method and device and electronic equipment
CN114244780A (en) * 2021-12-27 2022-03-25 海光信息技术股份有限公司 Data transmission method, data transmission device and related equipment
CN114244780B (en) * 2021-12-27 2024-04-16 海光信息技术股份有限公司 Data transmission method, data transmission device and related equipment

Also Published As

Publication number Publication date
CN106658051B (en) 2019-05-10

Similar Documents

Publication Publication Date Title
CN106658051A (en) Method and system for controlling buffer playing streaming media
CN104394486B (en) A kind of video stream processing method and device based on cloud desktop
CN101296184B (en) Method, system and device for data transmission
CN103533451B (en) Method and system for regulating jitter buffer
CN104040992B (en) There is the Media Stream of improved efficiency in mobile network
US9521178B1 (en) Dynamic bandwidth thresholds
CN103795755B (en) Stream media transmitting rate controlling method, system and streaming media server
CN102209237B (en) Method for reducing overlapping of frame I in on demand of live media stream and video management server
WO2013124790A1 (en) Methods and apparatus for managing network resources used by multimedia streams in a virtual pipe
CN105376607A (en) Live video method and device in network jittering environment
CN107707937A (en) Time shift optimization method and system based on HLS protocol
CN103051978A (en) H264-based real-time mobile video service control method
US20210227264A1 (en) Minimizing stall duration tail probability in over-the-top streaming systems
US20060005224A1 (en) Technique for cooperative distribution of video content
CN105392023A (en) Video live broadcasting method and device in network jitter environment
CN113242436B (en) Live broadcast data processing method and device and electronic equipment
US20130117298A1 (en) Web service performance optimization by adaptively using compression
US20220295127A1 (en) Consolidating content streams to conserve bandwidth
US20060031564A1 (en) Methods and systems for streaming data at increasing transmission rates
CN107295364A (en) Real-time streaming transport control method, control device for barrage video
WO2020135562A1 (en) Multicast method, device, apparatus, and computer storage medium
CN114501052B (en) Live broadcast data processing method, cloud platform, computer equipment and storage medium
CN103929682B (en) Method and device for setting key frames in video live broadcast system
CN104469538B (en) RTP video streaming data packet recombination methods towards picture image quality compared with small loss
CN101090369A (en) Method for controlling data packet sending speed in flow medium system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A control method and system for buffering and playing streaming media

Effective date of registration: 20210622

Granted publication date: 20190510

Pledgee: Beijing culture science and technology financing Company limited by guarantee

Pledgor: CBC CLOUD TECHNOLOGY Co.,Ltd.

Registration number: Y2021980005035