CN106658051B - A kind of control method and system of buffered play Streaming Media - Google Patents

A kind of control method and system of buffered play Streaming Media Download PDF

Info

Publication number
CN106658051B
CN106658051B CN201611264398.5A CN201611264398A CN106658051B CN 106658051 B CN106658051 B CN 106658051B CN 201611264398 A CN201611264398 A CN 201611264398A CN 106658051 B CN106658051 B CN 106658051B
Authority
CN
China
Prior art keywords
data packet
module
streaming media
network speed
sent
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.)
Active
Application number
CN201611264398.5A
Other languages
Chinese (zh)
Other versions
CN106658051A (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention provides the control methods and system of a kind of buffered play Streaming Media, which comprises multimedia message server receives playing request;Multimedia message server by streaming media video cutting, be encapsulated as flow media data packet;Multimedia message server caches flow media data packet to the buffer pool;Flow media data packet in buffer pool is transmitted to streaming media playing terminal, while being saved to having sent pond;The time threshold and data packet threshold values that preservation flow media data packet is preset in pond are being sent according to current network speed;Judgement has sent whether the difference of the transmission time of flow media data packet and current time in pond exceeds time threshold;The size of the quantity of flow media data packet and data packet threshold values in pond is sent.The present invention sends multi-medium data by control code rate average value, will exceed the data buffering of threshold values, effectively avoids Streaming Media from occurring phenomena such as frame losing, Caton or output are unstable in playing process, improves the viewing effect of user.

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, in particular to the control method of a kind of buffered play Streaming Media and it is System.
Background technique
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 preceding mainly by downloading and transmitting as a stream two schemes.Downloading mode needs multimedia file, and all downloading is finished and could be played, by It is usually larger in multimedia file, simultaneously because the limitation of network bandwidth, usually need to spend using downloading mode several minutes very It could be downloaded 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 transmission 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 be until all downloading finish for entire file, and only needing can be by several seconds or tens of seconds played datas Row viewing.It is played at any time its main feature is that data flow transmits at any time, when the Technology of Multimedia Stream Playing of streaming media mode avoids User has to wait for entire file, and all downloading finishes the shortcomings that could watching 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 adaptive 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 bandwidth constraint by internet and network self stability are influenced, in order to guarantee video Phenomena such as good play quality, streaming media playing still will appear frame losing in the process, Caton or output are unstable, influences user's viewing Experience, if there is the case where suspension, will lead to the reduction of flow medium buffer data volume, when such case maintains the long period When, it will the exhaustion for leading to buffer data size, since no data can be broadcast, it will the Caton for causing entire playing process is used at this time Family will be unable to watch.
Summary of the invention
In order to which the bandwidth constraint and network self stability that solve in the prior art by internet are influenced, in order to protect Phenomena such as demonstrate,proving the good play quality of video, still will appear frame losing, Caton or output shakiness during streaming media playing, influences to use Family viewing experience will lead to the reduction of flow medium buffer data volume if there is the case where suspension, when such case remains longer When the time, it will the exhaustion for leading to buffer data size, since no data can be broadcast, it will the Caton of entire playing process is caused, this When user will be unable to viewing the problems such as, the present invention provides the control methods and system of a kind of buffered play Streaming Media.
Specific technical solution of the present invention is as follows:
The present invention provides a kind of control method of buffered play Streaming Media, the control method the following steps are included:
The playing request for streaming media video that S1, multimedia message server receiving stream media playback terminal issue;
S2, the multimedia message server are by several video frames in the streaming media video according to play time sequence Progress cutting post package is several flow media data packets, separately includes several according to broadcasting in each flow media data packet The video frame of time sequencing sequence;
S3, buffer pool for caching the streaming media video is established, the multimedia message server is by the stream matchmaker Volume data packet is according to play time order buffer to the buffer pool;
S4, the flow media data packet in the buffer pool is broadcast according to play time sequential delivery to the Streaming Media Terminal is put, while saving to described and having sent pond, the transmission time of each flow media data packet is recorded in transmission process;
S5, the current network speed for determining the streaming media playing terminal have been sent in pond according to the current network speed described The default time threshold and data packet threshold values for saving the flow media data packet, the data packet threshold values are in the time threshold Data packet sum;
The transmission time and current time of the flow media data packet saved in pond have been sent described in S6, judgement Whether difference exceeds the time threshold, and the flow media data packet that will exceed the time threshold is deleted;
The size of the quantity of the flow media data packet and the data packet threshold values in pond has been sent described in S7, comparison, if The quantity of the bit stream data packet is greater than or equal to the data packet threshold values, then stops the data transmission in step S4, conversely, if The quantity of the flow media data packet is less than the data packet threshold values, then enters step and continue to carry out data transmission in S4.
Further, in the range of the time threshold, the received flow media data packet in the buffer pool When quantity is less than the data packet threshold values, in step S4, reduce the flow media data packet in the buffer pool to the stream Media broadcast terminal and the transmission rate for having sent pond.
Further, in step S5, determine that the current network speed of the streaming media playing terminal, specific method include:
1., continuous several times acquisition user's history foradownloaded video when download speed, and establish network speed list and recorded;
2., the download speed recorded in the network speed list calculated into its average value obtain history network speed;
3., using the history network speed being calculated as the current network speed of presently described streaming media playing terminal.
Further, in step S5, the preservation Streaming Media is preset in described sent according to the current network speed in pond The data packet threshold values of data packet, specific method include:
1., in described sent network speed section from low to high is preset in pond, and corresponding data from low to high are set Packet threshold values;
2., judge network speed section belonging to the current network speed of the streaming media playing terminal, and by the network speed section The corresponding data packet threshold values is as the data packet threshold values sent in pond.
Preferably, step S2 is further comprising the steps of:
S2-1, the multimedia message server are used to forming several flow media data packets into index text in the form of a list Part;
S2-2, the multimedia message server send the index file to the streaming media playing terminal;
S2-3, the streaming media playing terminal parse the index file, then according to actual network bandwidth Situation, Xiang Suoshu multimedia message server request the corresponding flow media data packet of the index file record;
Preferably, further comprising the steps of in step S3:
The Streaming Media that the multimedia message server requests the streaming media playing terminal according to the index file Data packet is according to play time order buffer to the buffer pool.
The present invention also provides a kind of control systems of buffered play Streaming Media, including the multimedia messages clothes mutually communicated Business device and streaming media playing terminal, the streaming media playing terminal include smart phone or computer, the MMS (Multimedia Message Service) Device includes the database to communicate and the receiving module to communicate with the database, video frame group division module, data transmission Module, network speed determining module, time threshold setting module, data packet threshold values presetting module, judgment module, the first removing module and Contrast module;
It is equipped with buffer pool in the database and has sent pond;The receiving module is sent out for receiving stream media playback terminal The playing request for streaming media video out;The video frame group division module is used for will be several in the streaming media video Several flow media data packets of boil down to after video frame is divided according to play time sequence, and the flow media data packet is pressed According to play time order buffer to the buffer pool;The data transmission module is used for the Streaming Media in the buffer pool Data packet saves to described according to play time sequential delivery to the streaming media playing terminal and has sent pond, is transmitted across 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 preset the time threshold for saving the bit stream data packet in pond in described sent, and the time threshold is sent To the judgment module;The judgment module is used to judge the described of the flow media data packet for having sent and having saved in pond Whether the difference of transmission time and current time exceeds the time threshold, and will exceed the Streaming Media of the time threshold Data packet is sent to first removing module;First removing module is used to will exceed the stream matchmaker of the time threshold Volume data packet is deleted;
The data packet threshold values presetting module is used for the current network speed according to the streaming media playing terminal described The data packet threshold values preset in pond and save the flow media data packet has been sent, and has been sent to the contrast module;The comparison Module is for the relatively more described size for having sent the quantity of the flow media data packet and the data packet threshold values in pond, if described The quantity of flow media data packet is greater than or equal to the data packet threshold values, then generate stop data transmission instruction be sent to it is described Data transmission module makes the data transmission module stop data transmission;Conversely, if the quantity of the flow media data packet is less than The data packet threshold values, the then instruction that generation continues data transmission are sent to the data transmission module, make the data Transmission module carries out data transmission.
Further, the multimedia message server further includes the screening module to communicate, the second removing module, buffering Measure statistical module, transmission rate regulates and controls module, the screening module be used for filtered out in the buffer pool have been sent to it is described The flow media data packet of streaming media playing terminal, and it is sent to second removing module, second removing module is used It is deleted in the flow media data packet that will have been sent to the streaming media playing terminal;The buffering capacity statistical module is used for The quantity of the flow media data packet in the buffer pool is counted, if the received flow media data packet in the buffer pool Quantity when being less than the data packet threshold values, then sent to transmission rate regulation module and reduce the buffer pool to the stream matchmaker Body playback terminal transmits the transmission rate of the flow media data packet.
Further, the network speed determining module includes history network speed acquisition unit, the network speed computing unit to communicate, institute Download speed when history network speed acquisition unit acquires user's history foradownloaded video for continuous several times is stated, and establishes network speed list It is recorded;The network speed computing unit is obtained for the download speed recorded in the network speed list to be calculated its average value To history network speed, the current network speed of as presently described streaming media playing terminal.
Further, the data packet threshold values presetting module includes the network speed and threshold values corresponding unit, data packet to communicate Threshold values determination unit, the network speed and threshold values corresponding unit are used in the network speed area for having sent and having preset in pond from low to high Between, and corresponding data packet threshold values from low to high is set;The data packet threshold values determination unit is for judging the Streaming Media Network speed section belonging to the current network speed of playback terminal, and using the corresponding data packet threshold values in the network speed section as institute State the data packet threshold values sent in pond.
Preferably, the multimedia message server further includes transmitting with the video frame group division module, the data The index module that module communicates, the index module are used to generate the index file comprising several flow media data packets, and will The index file is sent to the streaming media playing terminal by the transmission module;The streaming media playing terminal is to described Index file is parsed, and then according to actual network bandwidth situation, Xiang Suoshu multimedia message server requests the rope Draw the corresponding flow media data packet of file record.
Beneficial effects of the present invention are as follows: the control method of buffered play Streaming Media provided by the invention can pass through control Code rate average value sends multi-medium data, will exceed the data buffering of threshold values, effectively avoids Streaming Media in playing process In there is phenomena such as frame losing, Caton or output are unstable, effectively control data buffer storage, output avoid network speed too fast or too slow In the case of, the case where causing frame losing or Caton, effectively realizes smooth transfer multi-medium data packet, since data packet is delayed first It deposits, thus even if nor affecting on user's viewing during suspension, in addition, system structure provided by the invention is simple, installation It is more convenient with using, the viewing effect of user is not only increased, and system installation economic cost is low.
Detailed description of the invention
Fig. 1 is a kind of method flow schematic diagram of the control method of buffered play Streaming Media described in embodiment 1;
Fig. 2 is the method flow diagram one of S5 in a kind of control method of buffered play Streaming Media as described in example 2;
Fig. 3 is the method flow diagram two of S5 in a kind of control method of buffered play Streaming Media as described in example 2;
Fig. 4 is the method flow diagram of S2 in a kind of control method of buffered play Streaming Media described in embodiment 3;
Fig. 5 is a kind of structural schematic diagram of the control system of buffered play Streaming Media as described in example 4;
Fig. 6 is the knot of multimedia message server in a kind of control system of buffered play Streaming Media as described in example 4 Structure block diagram;
Fig. 7 is the knot of multimedia message server in a kind of control system of buffered play Streaming Media described in embodiment 5 Structure block diagram one;
Fig. 8 is the structural frames of network speed determining module in a kind of control system of buffered play Streaming Media described in embodiment 5 Figure;
Fig. 9 is data packet threshold values presetting module in a kind of control system of buffered play Streaming Media described in embodiment 5 Structural block diagram;
Figure 10 is the knot of multimedia message server in a kind of control system of buffered play Streaming Media described in embodiment 5 Structure block diagram two.
Wherein: 1, multimedia message server;101, database;102, receiving module;103, video frame group division module; 104, data transmission module;105, network speed determining module;1051, history network speed acquisition unit;1052, network speed computing unit; 106, time threshold setting module;107, data packet threshold values presetting module;1071, network speed and threshold values corresponding unit;1072, data Packet threshold values determination unit;108, judgment module;109, the first removing module;110, contrast module;111, screening module;112, Two removing modules;113, buffering capacity statistical module;114, transmission rate regulates and controls module;115, index module;2, streaming media playing is whole End.
Specific embodiment
Invention is further described in detail with following embodiment with reference to the accompanying drawing.
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 the following steps are included:
After program operation, user, which is sent by streaming media playing terminal to the multimedia message server 1, wants viewing Video request;
The playing request for streaming media video that S1,1 receiving stream media playback terminal of multimedia message server issue; And streaming media playback terminal carries out identification certification, is 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 play time by several video frames in the streaming media video It is several flow media data packets that sequence, which carries out cutting post package, several are separately included in each flow media data packet according to broadcasting Put the video frame of time sequencing sequence;Flow media data packet is equivalent to the video clip containing several video frames, data transmission One or more packets carry out data transmission in the process.
S3, buffer pool for caching the streaming media video is established, the multimedia message server 1 is by the stream matchmaker Volume data packet is according to play time order buffer to the buffer pool;Buffer pool can be used to store that treated buffered data, It ensure that viewing effect of user in the case where suspension.
S4, the flow media data packet in the buffer pool is broadcast according to play time sequential delivery to the Streaming Media Terminal is put, while saving to described and having sent pond, the transmission time of each flow media data packet is recorded in transmission process;Institute Stating transmission time is to have sent the timing node that pond receives the flow media data packet, and each data packet has the when segmentum intercalaris of oneself Point.
When first time data packet is transmitted, first determine whether to have sent whether pond has flow media data packet, if not having, by institute The flow media data packet stated in buffer pool is successively transferred to streaming media playing terminal according to crawl time sequencing, caches simultaneously To pond has been sent, flow media data packet, then be directly entered in step S5~S7 if it exists.
S5, the current network speed for determining the streaming media playing terminal have been sent in pond according to the current network speed described The default time threshold and data packet threshold values for saving the flow media data packet, the data packet threshold values are in the time threshold Data packet sum;Due to network speed difference, the amount that can be transmitted is also different, in order to guarantee video in the feelings of network speed shakiness Do not occur the phenomenon that Caton under condition, data packet threshold values is set according to network speed.
The transmission time and current time of the flow media data packet saved in pond have been sent described in S6, judgement Whether difference exceeds the time threshold, and the flow media data packet that will exceed the time threshold is deleted;It has ensured that Sending the flow media data packet in pond is the data packet in time threshold and current time frame, as the circulation of system is transported Row, has sent the flow media data packet in pond in real-time change.The transmission time has as sent pond receiving stream media number According to the timing node of packet, i.e., the difference between the timing node and current time is compared with time threshold.
The size of the quantity of the flow media data packet and the data packet threshold values in pond has been sent described in S7, comparison, if The quantity of the bit stream data packet is greater than or equal to the data packet threshold values, then stops the data transmission in step S4, conversely, if The quantity of the flow media data packet is less than the data packet threshold values, then enters step and continue to carry out data transmission in S4.
Method provided by the invention, which passes through buffer pool and sent pond, can effectively control the output of flow media data packet, make Data output smoothing, the case where not will cause video cardton or frame losing generation effectively provide user's video effect of viewing.
Embodiment 2
The embodiment of the present invention 2 further defines on the basis of embodiment 1, in the range of the time threshold, institute When stating the quantity of the received flow media data packet in buffer pool less than the data packet threshold values, in step S4, described in reduction The flow media data packet in buffer pool is to the streaming media playing terminal and the transmission rate for having sent pond.In order to prevent There is Caton in playing process in multimedia video, it should adjust transmission rate according to the network speed moment.
As shown in Fig. 2, needing further exist for explanation, in step S5, the current network speed of the streaming media playing terminal is determined, Specific method includes:
1., continuous several times acquisition user's history foradownloaded video when download speed, and establish network speed list and recorded;It is logical It crosses and acquires multiple history download speed, be capable of forming network speed record storehouse, history download speed needs to record the network speed of different moments.
2., the download speed recorded in the network speed list calculated into its average value obtain history network speed;It will be same History network speed averagely can be obtained in the multiple network speed value at moment, as current network speed.
3., using the history network speed being calculated as the current network speed of presently described streaming media playing terminal.
By the determination of current network speed, transmission rate can be effectively controlled.
As shown in Figure 3, it should be noted that in step S5, preset according to the current network speed in described sent in pond The data packet threshold values of the flow media data packet is saved, specific method includes:
1., in described sent network speed section from low to high is preset in pond, and corresponding data from low to high are set Packet threshold values;
2., judge network speed section belonging to the current network speed of the streaming media playing terminal, and by the network speed section The corresponding data packet threshold values is as the data packet threshold values sent in pond.
Data packet threshold values is determined by current network speed, when network speed is lower, can turn down data packet threshold values, when network speed is higher When, data packet threshold values can be turned up, data are slowly exported with network speed, effectively video are avoided the phenomenon that Caton occur.
Embodiment 3
As shown in Figure 4, it is preferred that the embodiment of the present invention 3 further defines step S2 on the basis of embodiment 1 and also wraps Include following steps:
S2-1, the multimedia message server 1 are used to several flow media data packets forming index in the form of a list File;Index file is similar to the TS index list that iPhone is implanted into, and several 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 send the index file to the streaming media playing terminal;
S2-3, the streaming media playing terminal parse the index file, then according to actual network bandwidth Situation, Xiang Suoshu multimedia message server 1 request the corresponding flow media data packet of the index file record;
It can be established by index file and be interacted with streaming media playing terminal, so that realizing can be compared by index file More conveniently request data package.
Preferably, further comprising the steps of in step S3:
The Streaming Media that the multimedia message server 1 requests the streaming media playing terminal according to the index file Data packet is according to play 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 include smart phone or computer.
As shown in fig. 6, the multimedia message server 1 include the database 101 that communicates and with the database 101 Receiving module 102, video frame group division module 103, the data transmission module 104, network speed determining module 105, time to communicate Threshold setting module 106, data packet threshold values presetting module 107, judgment module 108, the first removing module 109 and contrast module 110。
It is equipped with buffer pool in the database 101 and has sent pond, has sent pond and buffer pool similar to buffer area and Area is sent, is used to store;The receiving module 102 for receiving stream media playback terminal issue for streaming media video Playing request;When the video frame group division module 103 is used for several video frames in the streaming media video according to playing Between sequentially divided after several flow media data packets of boil down to, and the flow media data packet is delayed according to play time sequence It deposits to the buffer pool;The data transmission module 104 is used for the flow media data packet in the buffer pool according to broadcasting It puts time sequencing and is transmitted to the streaming media playing terminal, while saving to described and having sent pond, record is each in transmission process 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 preset the time threshold for saving the bit stream data packet in pond in described sent, and by the time Threshold value is sent to the judgment module 108;The judgment module 108 is used to judge the stream matchmaker for having sent and having saved in pond Whether the transmission time of volume data packet and the difference of current time exceed the time threshold, and will exceed the time threshold The flow media data packet of value is sent to first removing module 109;First removing module 109 is for will exceed institute The flow media data packet for stating time threshold is deleted.
The data packet threshold values presetting module 107 is used for the current network speed according to the streaming media playing terminal in institute The data packet threshold values for having sent and having preset in pond and saving the flow media data packet is stated, and is sent to the contrast module 110;It is described Contrast module 110 has sent the big of the quantity of the flow media data packet and the data packet threshold values in pond for relatively described It is small, if the quantity of the flow media data packet is greater than or equal to the data packet threshold values, generate the instruction for stopping data transmission It is sent to the data transmission module 104, the data transmission module 104 is made to stop data transmission;Conversely, if the Streaming Media The quantity of data packet is less than the data packet threshold values, then the instruction that generation continues data transmission is sent to the data transmission Module 104 carries out data transmission the data transmission module 104.
System provided by the invention can effectively control the efficiency of transmission of flow media data packet, export Streaming Media smoothly, It prevents Streaming Media from the case where Caton occur in viewing, effectively improves viewing effect.
Embodiment 5
As shown in fig. 7, the embodiment of the present invention 5 further defines on the basis of embodiment 4, the multimedia messages clothes Business device 1 further includes the screening module 111 to communicate, the second removing module 112, buffering capacity statistical module 113, transmission rate regulation mould Block 114, the screening module 111 are 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 for will send The flow media data packet to the streaming media playing terminal is deleted;The buffering capacity statistical module 113 is for counting described The quantity of the flow media data packet in buffer pool, if the quantity of the received flow media data packet is small in the buffer pool When the data packet threshold values, then the reduction buffer pool is sent to transmission rate regulation module 114 and broadcast to the Streaming Media Put the transmission rate of flow media data packet described in terminal transmission.Screening module 111, the second removing module 112, buffering capacity statistical module 113, transmission rate regulation 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 the history network speed acquisition list to communicate First 1051, network speed computing unit 1052, the history network speed acquisition unit 1051 is for continuous several times acquisition user's history downloading Download speed when video, and establish network speed list and recorded;The network speed computing unit 1052 is for arranging the network speed The download speed recorded in table calculates its average value and obtains history network speed, and as presently described streaming media playing terminal is worked as Preceding network speed.
It can be effective by history network speed acquisition unit 1051 in network speed determining module 105 and network speed computing unit 1052 Determine current network speed, by network speed be determined to effectively determine transmission quantity.
As shown in figure 9, needing further exist for explanation, the data packet threshold values presetting module 107 includes the net to communicate Speed and threshold values corresponding unit 1071, data packet threshold values determination unit 1072, the network speed and threshold values corresponding unit 1071 are used for It is described to have sent the network speed section preset in pond from low to high, and corresponding data packet threshold values from low to high is set;The number According to packet threshold values determination unit 1072 for judging network speed section belonging to the current network speed of the streaming media playing terminal, and Using the corresponding data packet threshold values in the network speed section as the data packet threshold values sent in pond.
As shown in Figure 10, it is preferred that the multimedia message server 1 further includes and the video frame group division module 103, the index module 115 that the data transmission module 104 communicates, the index module 115 include several streams for generating The index file of media data packet, and the index file is sent to the streaming media playing end by the transmission module End;The streaming media playing terminal parses the index file, then according to actual network bandwidth situation, Xiang Suoshu Multimedia message server 1 requests the corresponding flow media data packet of the index file record.
The present invention is not limited to above-mentioned preferred forms, anyone can show that other are various under the inspiration of the present invention The product of form, however, make any variation in its shape or structure, it is all that there is skill identical or similar to the present application Art scheme, is within the scope of the present invention.

Claims (8)

1. a kind of control method of buffered play Streaming Media, which is characterized in that the control method the following steps are included:
The broadcasting for streaming media video that S1, multimedia message server (1) receiving stream media playback terminal (2) issue is asked It asks;
S2, the multimedia message server (1) are by several video frames in the streaming media video according to play time sequence Progress cutting post package is several flow media data packets, separately includes several according to broadcasting in each flow media data packet The video frame of time sequencing sequence;
S3, buffer pool for caching the streaming media video is established, the multimedia message server (1) is by the Streaming Media Data packet is held according to play time order buffer to the buffer pool, the buffer pool set on the multimedia server (1);
It is S4, the flow media data packet in the buffer pool is whole to the streaming media playing according to play time sequential delivery Hold (2), while saving to pond has been sent, record the transmission time of each flow media data packet in transmission process, it is described Pond is sent to hold set on the multimedia server (1);
S5, the current network speed for determining the streaming media playing terminal (2) have been sent in pond in advance according to the current network speed described If saving the time threshold and data packet threshold values of the flow media data packet, the data packet threshold values is in the time threshold Data packet sum;
The transmission time of the flow media data packet saved in pond and the difference of current time have been sent described in S6, judgement Whether the time threshold is exceeded, and the flow media data packet that will exceed the time threshold is deleted;
The size that the quantity of the flow media data packet and the data packet threshold values in pond have been sent described in S7, comparison, if described The quantity of flow media data packet is greater than or equal to the data packet threshold values, then stops the data transmission in step S4, conversely, if institute The quantity for stating flow media data packet is less than the data packet threshold values, then enters step and continue to carry out data transmission in S4;
In the range of the time threshold, the quantity of the received flow media data packet is less than the number in the buffer pool When according to packet threshold values, in step S4, reduce the flow media data packet in the buffer pool to the streaming media playing terminal (2) With the transmission rate for having sent pond;
In step S5, determine that the current network speed of the streaming media playing terminal (2), specific method include:
1., continuous several times acquisition user's history foradownloaded video when download speed, and establish network speed list and recorded;
2., the download speed recorded in the network speed list calculated into its average value obtain history network speed;
3., using the history network speed being calculated as the current network speed of presently described streaming media playing terminal (2).
2. the control method of buffered play Streaming Media as described in claim 1, which is characterized in that in step S5, according to described Current network speed presets the data packet threshold values for saving the flow media data packet in described sent in pond, specific method includes:
1., in described sent network speed section from low to high is preset in pond, and corresponding data packet valve from low to high is set Value;
2., judge network speed section belonging to the current network speed of the streaming media playing terminal (2), and by the network speed section pair The data packet threshold values answered is as the data packet threshold values sent in pond.
3. the control method of buffered play Streaming Media as described in claim 1, which is characterized in that step S2 further includes following step It is rapid:
S2-1, the multimedia message server (1) are used to forming several flow media data packets into index text in the form of a list Part;
S2-2, the multimedia message server (1) Xiang Suoshu streaming media playing terminal (2) send the index file;
S2-3, the streaming media playing terminal (2) parse the index file, then according to actual network bandwidth feelings Condition, Xiang Suoshu multimedia message server (1) request the corresponding flow media data packet of the index file record;
It is further comprising the steps of in step S3:
The stream matchmaker that the multimedia message server (1) requests the streaming media playing terminal (2) according to the index file Volume data packet is according to play time order buffer to the buffer pool.
4. a kind of control system of buffered play Streaming Media, which is characterized in that including the multimedia message server mutually communicated (1) and streaming media playing terminal (2), the streaming media playing terminal (2) include smart phone or computer, the multimedia messages Server (1) includes the database (101) to communicate and the receiving 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), Data packet threshold values presetting module (107), judgment module (108), the first removing module (109) and contrast module (110);
It is equipped with buffer pool in the database (101) and has sent pond;The receiving module (102) plays for receiving stream media The playing request for streaming media video that terminal (2) issues;The video frame group cutting module (103) is used for the stream matchmaker Several flow media data packets of boil down to after several video frames in volumetric video are divided according to play time sequence, and will be described Flow media data packet is according to play time order buffer to the buffer pool;The data transmission module (104) is used for will be described The flow media data packet in buffer pool, to the streaming media playing terminal (2), is protected simultaneously according to play time sequential delivery It deposits to described and has sent pond, the transmission time of each flow media data packet is recorded in transmission process;
The network speed determining module (105) is used to determine the current network speed of the streaming media playing terminal (2);The time threshold Setting module (106) is used to be preset according to the current network speed of the streaming media playing terminal (2) in described sent in pond The time threshold of the flow media data packet is saved, and the time threshold is sent to the judgment module (108);It is described to sentence Disconnected module (108) be used to judge the transmission time of the flow media data packet for having sent and having saved in the pond in it is current when Between the difference flow media data packet that whether exceeds the time threshold, and will exceed the time threshold be sent to it is described First removing module (109);First removing module (109) is used to will exceed the stream medium data of the time threshold Packet is deleted;
The data packet threshold values presetting module (107) according to the current network speed of the streaming media playing terminal (2) for existing It is described to have sent the data packet threshold values preset in pond and save the flow media data packet, and it is sent to the contrast module (110); The contrast module (110) has sent the quantity of the flow media data packet and the data packet threshold values in pond for relatively more described Size, if the quantity of the flow media data packet be greater than or equal to the data packet threshold values, generate stop data transmission Instruction is sent to the data transmission module (104), and the data transmission module (104) is made to stop data transmission;Conversely, if institute The quantity for stating flow media data packet is less than the data packet threshold values, then the instruction that generation continues data transmission is sent to described Data transmission module (104) carries out data transmission the data transmission module (104).
5. the control system of buffered play Streaming Media as claimed in claim 4, which is characterized in that the MMS (Multimedia Message Service) Device (1) further includes the screening module (111) to communicate, the second removing module (112), buffering capacity statistical module (113), transmission rate Regulate and control module (114), the screening module (111) is used to have been sent to the Streaming Media and broadcast to filtering out in the buffer pool The flow media data packet of terminal (2) is put, and is sent to second removing module (112), second removing module (112) it is deleted for the flow media data packet of the streaming media playing terminal (2) will to be had been sent to;The buffering capacity system Meter module (113) is used to count the quantity of the flow media data packet in the buffer pool, if received in the buffer pool When the quantity of the flow media data packet is less than the data packet threshold values, then sends and subtract to transmission rate regulation module (114) The small buffer pool transmits the transmission rate of the flow media data packet to the streaming media playing terminal (2).
6. the control system of buffered play Streaming Media as claimed in claim 4, which is characterized in that the network speed determining module It (105) include the history network speed acquisition unit (1051) to communicate, network speed computing unit (1052), the history network speed acquisition is single Download speed when first (1051) are for continuous several times acquisition user's history foradownloaded video, and establish network speed list and recorded; The network speed computing unit (1052) obtains for the download speed recorded in the network speed list to be calculated its average value History network speed, the current network speed of as presently described streaming media playing terminal (2).
7. the control system of buffered play Streaming Media as claimed in claim 4, which is characterized in that the data packet threshold values is default Module (107) includes the network speed to communicate and threshold values corresponding unit (1071), data packet threshold values determination unit (1072), the net Speed is used for threshold values corresponding unit (1071) in the network speed section for having sent and having preset in pond from low to high, and is arranged corresponding Data packet threshold values from low to high;The data packet threshold values determination unit (1072) is for judging the streaming media playing terminal (2) network speed section belonging to the current network speed, and using the corresponding data packet threshold values in the network speed section as it is described Send the data packet threshold values in pond.
8. the control system of buffered play Streaming Media as claimed in claim 4, which is characterized in that the MMS (Multimedia Message Service) Device (1) further includes the index module to communicate with the video frame group cutting module (103), the data transmission module (104) (115), the index module (115) is used to generate the index file comprising several flow media data packets, and the index is literary Part is sent to the streaming media playing terminal (2) by the transmission module;The streaming media playing terminal (2) is to the index File is parsed, and then according to actual network bandwidth situation, Xiang Suoshu multimedia message server (1) requests the index 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 CN106658051A (en) 2017-05-10
CN106658051B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388552B (en) * 2017-08-07 2024-03-26 中兴通讯股份有限公司 Method and device for determining duration of starting application program and storage medium
CN109996094B (en) * 2017-12-29 2021-08-13 杭州海康威视系统技术有限公司 Video playing method, device and system
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
CN111107438B (en) * 2019-12-30 2022-04-22 北京奇艺世纪科技有限公司 Video loading method and device and electronic equipment
CN114244780B (en) * 2021-12-27 2024-04-16 海光信息技术股份有限公司 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

Also Published As

Publication number Publication date
CN106658051A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106658051B (en) A kind of control method and system of buffered play Streaming Media
CN103795755B (en) Stream media transmitting rate controlling method, system and streaming media server
CN101583025B (en) Streaming media playing method and device
CN104040992B (en) There is the Media Stream of improved efficiency in mobile network
CN101305612B (en) A multi-source and resilient video on demand streaming system for a peer-to-peer subscriber community
CN103533451B (en) Method and system for regulating jitter buffer
CN107707937A (en) Time shift optimization method and system based on HLS protocol
CN101296184B (en) Method, system and device for data transmission
CN106792034A (en) Live method and mobile terminal is carried out based on mobile terminal
CN101499918A (en) Adaptive stream media playing method, apparatus, system and mobile terminal
CN105376607A (en) Live video method and device in network jittering environment
WO2013124790A1 (en) Methods and apparatus for managing network resources used by multimedia streams in a virtual pipe
CN102209237B (en) Method for reducing overlapping of frame I in on demand of live media stream and video management server
WO2014048244A1 (en) Self-adaptive rate method and device for http streaming media
CN102665131A (en) Video buffer method for receiving end of network video service system
CN104320716B (en) A kind of video method of uplink transmission collaborative based on multiple terminals collaboration
CN105578201B (en) A kind of system and method for realizing HLS live streaming code check number dynamic adjustment
CN105392023A (en) Video live broadcasting method and device in network jitter environment
CN109413456A (en) It is a kind of to assume code rate Adaptable System and method towards the dynamic self-adapting Streaming Media based on HTTP more
WO2017084277A1 (en) Code stream self-adaption method and system for online media service
CN103986914A (en) Code rate self-adaption method based on number of client sides in wireless video monitoring system
CN106453270B (en) Adaptive Transmission algorithm based on PI control Streaming Media
WO2020135562A1 (en) Multicast method, device, apparatus, and computer storage medium
CN102387409A (en) Method for video playing and based on stream media system
CN107465679A (en) A kind of streaming media control method

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

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

PE01 Entry into force of the registration of the contract for pledge of patent right