CN107465679A - A kind of streaming media control method - Google Patents
A kind of streaming media control method Download PDFInfo
- Publication number
- CN107465679A CN107465679A CN201710665812.1A CN201710665812A CN107465679A CN 107465679 A CN107465679 A CN 107465679A CN 201710665812 A CN201710665812 A CN 201710665812A CN 107465679 A CN107465679 A CN 107465679A
- Authority
- CN
- China
- Prior art keywords
- client
- streaming media
- media server
- transmission
- stream
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/61—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
- H04L65/612—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for unicast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/61—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
- H04L65/613—Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for the control of the source by the destination
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/65—Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of streaming media control method, comprise the following steps:Streaming media server receives the files in stream media playing request that client is sent, using stream medium data blocks of the network maximum achievable rate V to client transmissions content size as m+k, and from the t0+t moment, transmission cycle is used as using t, the initial time in each cycle starts respectively, using stream medium data blocks of the network maximum achievable rate V to one content size of client transmissions as k, until files in stream media end of transmission or the stopping playing request of client transmission is received.The present invention does not interfere with the video display effect of client, it is higher to network harm tolerance, improve the video display effect of client in Real Time Streaming mode, more preferable stream media quality and viewing experience are brought to user, and reduces the waste in sequential control design method mode to network and server resource.
Description
Technical field
The present invention relates to a kind of control method, specifically a kind of streaming media control method.
Background technology
Stream media technology refers to that multi-medium data is transmitted with streaming manner by network from service end to client, together
When, client can receive multimedia data stream while the technology played out.RTP (Real-
TimeTransportProtocol, RTP)/real-time streaming protocol (RealTimeStreamingProtocol, RTSP) and HTTP be
Two kinds of fluidization techniques being widely used at present.Because RTP/RTSP fluidization techniques can support live broadcast service well, and F.F.,
Rewind etc. operates, at present, the interactive individual character TV in part(InteractivePersonalityTelevision,IPTV)It is and big
Partial video program uses RTP/RTSP fluidization techniques, and RTP/RTSP fluidization techniques are normally based on RTP/ UDPs
(UserDataProtocol,UDP)Transmission, server is by code rate push code stream.But RTP/RTSP fluidization techniques are to net
The adaptability of network is poor, and the packet loss of network, shake easily cause the loss of video message, when in turn resulting in user's watching video
There is mosaic and the phenomenon paused, if however, fluidization technique used by current IPTV and video frequency program carried out big
The replacing of scale is instead of RTP/RTSP, not only to need largely to the retrofit work of existing network, and it is original to lose RTP/RTSP
Advantage.
The content of the invention
It is an object of the invention to provide a kind of streaming media control method, to solve what is proposed in above-mentioned background technology
Problem.
To achieve the above object, the present invention provides following technical scheme:
A kind of streaming media control method, comprises the following steps:Streaming media server receives the Streaming Media text that client is sent
Part playing request, using stream medium data blocks of the network maximum achievable rate V to client transmissions content size as m+k, and from t0+
T rises, and using t as transmission cycle, the initial time in each cycle starts respectively, with network maximum achievable rate V to visitor
The stream medium data block that a content size is k is transmitted at family end, until files in stream media end of transmission or receives client
The stopping playing request of transmission;Wherein, each stream medium data block is sequentially generated by files in stream media according to playing sequence, and m+k is
The size of client-cache capacity;T0 value is m and the average achievable rate of network ratio, and t value is k and Streaming Media text
The code rate V0 of part ratio;Client sends order request using real-time streaming protocol RTMP agreements to streaming media server;
The streaming media server is established TCP with the client and is connected, and utilized in fact based on TCP connections according to the order request
When host-host protocol Real-time Transport Protocol send the video flowing that the order request is asked;The client receives the video flowing to enter
Row is played, and the buffer memory occupancy situation of video flowing is received according to the client, using RTMP agreements to the stream
Flow control signaling corresponding to media server transmission;The streaming media server according to the flow control signaling, pause or
Person continues to send asked video flowing using Real-time Transport Protocol based on TCP connections.
As the further scheme of the present invention:Streaming media server is based on transmission control protocol TCP to client transmissions stream
Media data block.
As the further scheme of the present invention:The client obtains real-time messages transmission association from the streaming media server
RTMP Streaming Medias are discussed, the access mandate of the streaming media server is obtained ahead of time in the target network identity of the client.
As the further scheme of the present invention:The buffer memory for also including receiving video flowing according to the client takes
Situation, using flow control signaling corresponding to RTMP agreements to streaming media server transmission, specifically include:When the caching
Memory footprint meets predetermined upper bound condition, and the client is sent temporary using RTMP agreements to the streaming media server
Stop paying out the flow control signaling sent;The flow control signaling that the streaming media server is sent according to the pause, pause are sent
The video flowing asked;It is data cached as video playback gradually reduces in the case of video flowing pause is sent, deposited when described
Reservoir occupancy meets predetermined lower limit condition, and the client is sent using RTMP agreements to the streaming media server to be continued
The flow control signaling of transmission;The streaming media server continues to be based on TCP according to the flow control signaling for continuing to send
Connection sends asked video flowing using Real-time Transport Protocol.
As further scheme of the invention:Also include, the client is taken using RTMP agreements to the Streaming Media
Business device sends the flow control signaling of F.F. or rewind, and empties the video flowing of the buffer memory current cache;It is described
Streaming media server sends the video flowing of institute's F.F. or rewind based on TCP connections using Real-time Transport Protocol.
Compared with prior art, the beneficial effects of the invention are as follows:The present invention does not interfere with the video display effect of client,
It is higher to network harm tolerance, the video display effect of client in Real Time Streaming mode is improved, is brought to user
More preferable stream media quality and viewing experience, and reduce the wave in sequential control design method mode to network and server resource
Take.
Embodiment
The technical scheme in the embodiment of the present invention is clearly and completely described below, it is clear that described embodiment
Only part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the common skill in this area
The every other embodiment that art personnel are obtained under the premise of creative work is not made, belong to the model that the present invention protects
Enclose.
In the embodiment of the present invention, a kind of streaming media control method, comprise the following steps:Streaming media server receives visitor
The files in stream media playing request that family end is sent, using streams of the network maximum achievable rate V to client transmissions content size as m+k
Media data block, and from the t0+t moment, using t as transmission cycle, the initial time in each cycle starts respectively, with network
Maximum achievable rate V is to the stream medium data block that one content size of client transmissions is k, until files in stream media end of transmission
Or receive the stopping playing request of client transmission;Wherein, each stream medium data block is suitable according to playing by files in stream media
Sequence sequentially generates, and m+k is the size of client-cache capacity;T0 value is m and the average achievable rate of network ratio, t's
Value is the code rate V0 of k and files in stream media ratio;Client is taken using real-time streaming protocol RTMP agreements to Streaming Media
Business device sends order request;The streaming media server is established TCP with the client and is connected according to the order request, and
The video flowing asked based on TCP connections using the realtime transmission protocol RTP agreement transmission order request;Client's termination
The video flowing is received to play out, and the buffer memory occupancy situation of video flowing is received according to the client, is utilized
Flow control signaling corresponding to RTMP agreements to streaming media server transmission;The streaming media server is according to the flow
Control signaling, suspend or continue to send asked video flowing using Real-time Transport Protocol based on TCP connections.
Streaming media server is based on transmission control protocol TCP to client transmissions stream medium data block.
The client obtains real-time messages host-host protocol RTMP Streaming Medias, the client from the streaming media server
Target network identity the access mandate of the streaming media server is obtained ahead of time.
Also include the buffer memory occupancy situation that video flowing is received according to the client, using RTMP agreements to described
Flow control signaling corresponding to streaming media server transmission, is specifically included:When the buffer memory occupancy meet it is predetermined
Upper bound condition, the client send the flow control signaling of pause transmission using RTMP agreements to the streaming media server;
The flow control signaling that the streaming media server is sent according to the pause, pause send asked video flowing;Video flowing
Pause send in the case of, it is data cached as video playback gradually reduces, when the buffer memory occupancy meet it is predetermined
Lower limit condition, the client send the flow control signaling for continuing to send using RTMP agreements to the streaming media server;
The streaming media server continues to send using Real-time Transport Protocol based on TCP connections according to the flow control signaling for continuing to send
The video flowing asked.
Also include, the client sends the flow of F.F. or rewind using RTMP agreements to the streaming media server
Control signaling, and empty the video flowing of the buffer memory current cache;The streaming media server is utilized based on TCP connections
Real-time Transport Protocol sends the video flowing of institute's F.F. or rewind.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie
In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power
Profit requires rather than described above limits, it is intended that all in the implication and scope of the equivalency of claim by falling
Change is included in the present invention.Moreover, it will be appreciated that although the present specification is described in terms of embodiments, not each
Embodiment only includes an independent technical scheme, and this narrating mode of specification is only this area for clarity
Technical staff should be using specification as an entirety, and the technical solutions in the various embodiments may also be suitably combined, forms this
The other embodiment that art personnel are appreciated that.
Claims (5)
1. a kind of streaming media control method, it is characterised in that comprise the following steps:Streaming media server receives client hair
The files in stream media playing request sent, using Streaming Media numbers of the network maximum achievable rate V to client transmissions content size as m+k
According to block, and from the t0+t moment, using t as transmission cycle, the initial time in each cycle starts respectively, can with network maximum
Up to speed V to the stream medium data block that one content size of client transmissions is k, until files in stream media end of transmission or connect
Receive the stopping playing request of client transmission;Wherein, each stream medium data block by files in stream media according to playing sequence successively
Generation, m+k are the size of client-cache capacity;T0 value is m and the average achievable rate of network ratio, and t value is k
With the code rate V0 of files in stream media ratio;Client is sent using real-time streaming protocol RTMP agreements to streaming media server
Order request;The streaming media server is established TCP with the client and is connected, and connected based on TCP according to the order request
Connect the video flowing for sending the order request using realtime transmission protocol RTP agreement and being asked;The client regards described in receiving
Frequency stream utilizes RTMP agreements to play out, and according to the buffer memory occupancy situation of client reception video flowing
To flow control signaling corresponding to streaming media server transmission;The streaming media server controls according to the flow to be believed
Order, suspend or continue to send asked video flowing using Real-time Transport Protocol based on TCP connections.
2. streaming media control method according to claim 1, it is characterised in that streaming media server is based on transmission and controlled
Agreement TCP processed is to client transmissions stream medium data block.
3. streaming media control method according to claim 1, it is characterised in that the client is from the Streaming Media
Server obtains real-time messages host-host protocol RTMP Streaming Medias, and the stream matchmaker is obtained ahead of time in the target network identity of the client
The access mandate of body server.
4. streaming media control method according to claim 1, it is characterised in that also include being terminated according to the client
The buffer memory occupancy situation of video flowing is received, is controlled using flow corresponding to RTMP agreements to streaming media server transmission
Signaling, specifically include:When the buffer memory occupancy meets predetermined upper bound condition, the client utilizes RTMP agreements
The flow control signaling of pause transmission is sent to the streaming media server;The streaming media server is sent according to the pause
Flow control signaling, pause sends asked video flowing;It is data cached as video is broadcast in the case of video flowing pause is sent
Put and gradually reduce, when the buffer memory occupancy meets predetermined lower limit condition, the client using RTMP agreements to
The streaming media server sends the flow control signaling for continuing to send;The streaming media server continues what is sent according to described
Flow control signaling, continue to send asked video flowing using Real-time Transport Protocol based on TCP connections.
5. streaming media control method according to claim 1, it is characterised in that also include, the client utilizes
RTMP agreements send the flow control signaling of F.F. or rewind to the streaming media server, and empty the buffer memory
The video flowing of current cache;The streaming media server sends regarding for institute's F.F. or rewind based on TCP connections using Real-time Transport Protocol
Frequency flows.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710665812.1A CN107465679A (en) | 2017-08-07 | 2017-08-07 | A kind of streaming media control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710665812.1A CN107465679A (en) | 2017-08-07 | 2017-08-07 | A kind of streaming media control method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107465679A true CN107465679A (en) | 2017-12-12 |
Family
ID=60547559
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710665812.1A Pending CN107465679A (en) | 2017-08-07 | 2017-08-07 | A kind of streaming media control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107465679A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110213308A (en) * | 2018-02-28 | 2019-09-06 | 杭州海康威视数字技术股份有限公司 | A kind of method and device of decoding video data |
CN110234020A (en) * | 2018-03-06 | 2019-09-13 | 优酷网络技术(北京)有限公司 | Video broadcasting method and device |
CN110278195A (en) * | 2019-05-23 | 2019-09-24 | 视联动力信息技术股份有限公司 | A kind of data transmission method and device based on view networking |
CN110753237A (en) * | 2019-11-05 | 2020-02-04 | 北京金和网络股份有限公司 | Method and device for saving upstream bandwidth flow of streaming media server |
-
2017
- 2017-08-07 CN CN201710665812.1A patent/CN107465679A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110213308A (en) * | 2018-02-28 | 2019-09-06 | 杭州海康威视数字技术股份有限公司 | A kind of method and device of decoding video data |
CN110234020A (en) * | 2018-03-06 | 2019-09-13 | 优酷网络技术(北京)有限公司 | Video broadcasting method and device |
CN110234020B (en) * | 2018-03-06 | 2021-11-19 | 阿里巴巴(中国)有限公司 | Video playing method and device |
CN110278195A (en) * | 2019-05-23 | 2019-09-24 | 视联动力信息技术股份有限公司 | A kind of data transmission method and device based on view networking |
CN110278195B (en) * | 2019-05-23 | 2020-12-11 | 视联动力信息技术股份有限公司 | Data transmission method and device based on video network |
CN110753237A (en) * | 2019-11-05 | 2020-02-04 | 北京金和网络股份有限公司 | Method and device for saving upstream bandwidth flow of streaming media server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104618690B (en) | A kind of method and system of HD video real-time VOD and history playback | |
US6978306B2 (en) | Multi-tier video delivery network | |
JP5069240B2 (en) | Multiple data channel transfer systems and methods | |
US10263875B2 (en) | Real-time processing capability based quality adaptation | |
CN107465679A (en) | A kind of streaming media control method | |
US8627390B2 (en) | Method and device for providing programs to multiple end user devices | |
US20140108622A1 (en) | Streaming media transmission method, device, and system | |
CN102811368A (en) | Mobile video live broadcasting system | |
CN101018318A (en) | A stream media system, signaling forward device and stream media transmission method | |
CN104427400A (en) | Streaming media transmission method and system, and streaming media server | |
KR20070104797A (en) | Method of progressive streaming using a real-time streaming protocol | |
CN104320716B (en) | A kind of video method of uplink transmission collaborative based on multiple terminals collaboration | |
CN103338411A (en) | Method and apparatus to manage the operation of an adaptive streaming client | |
US20120233346A1 (en) | Method, apparatus and system for rapid acquisition of multicast realtime transport protcol sessions | |
CN108063911B (en) | Video conference capacity expansion method | |
CN108259933A (en) | A kind of plug-flow platform that can support 3 kinds of business functions | |
CN107396172A (en) | The method that low latency throws screen | |
CN101287095A (en) | Implementing method and system for recorded broadcast service of stream media of meeting television | |
CN114501052B (en) | Live broadcast data processing method, cloud platform, computer equipment and storage medium | |
CN100544437C (en) | A kind of bandwidth adapting system of streaming media | |
KR101164746B1 (en) | System and method for compensating consecutive palyback delay of video playback service based on real-time streaming protocol | |
CN103139188B (en) | Flow-medium transmission method and system | |
US20130132579A1 (en) | Method and apparatus for random access to multimedia content in wireless communication system | |
CN102378066B (en) | A kind of method and system for realizing low bit- rate high definition program request | |
Wang et al. | A study of live video streaming system for mobile devices |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171212 |
|
WD01 | Invention patent application deemed withdrawn after publication |