CN103297452B - A kind of in the Internet issue and the method and system of live broadcast stream media - Google Patents
A kind of in the Internet issue and the method and system of live broadcast stream media Download PDFInfo
- Publication number
- CN103297452B CN103297452B CN201210045413.2A CN201210045413A CN103297452B CN 103297452 B CN103297452 B CN 103297452B CN 201210045413 A CN201210045413 A CN 201210045413A CN 103297452 B CN103297452 B CN 103297452B
- Authority
- CN
- China
- Prior art keywords
- stream
- media
- streaming media
- module
- medium data
- 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.)
- Expired - Fee Related
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The present invention discloses a kind of issue and the method for live broadcast stream media in the Internet, the method is issued and the system of live broadcast stream media in the Internet based on a kind of, including issue client terminal, server end and client end of playing back, issue client terminal uses HTTP method and server end mutual and uploads Streaming Media piecemeal to server end;Server end merges according to the Streaming Media split time that sets and stores described Streaming Media piecemeal as Streaming Media segmentation, and creates the index of corresponding multiple Streaming Media striping order;Client end of playing back is mutual with server end and plays out from server end download Streaming Media segmentation according to indexed sequential.The inventive method is based on http protocol system;Can lower coupling, non-intruding, simple and collection terminal application integration;It is prone on various terminal platforms realize;The time delay of real-time live broadcast is low, vigorousness good, zmodem;Support in the Internet large scale deployment, support CDN deployment way.
Description
Technical field
The present invention relates to networking technology area, particularly relate to issue and the direct seeding technique of a kind of internet stream media.
Background technology
Internet stream media technology is that the mode using stream transmission transmits multimedia file, on the internet continuous print
The multimedia messages such as audio frequency and video are stored in web medium server after overcompression processes, same download for internet client
Shi Huifang, and downloaded without waiting for whole multimedia files.Real time flow medium is live is to gather the same of audio/video information
Time, use the media information that stream media technology is issued and transmission is gathering, enable the client to by the Internet low delay ground
The media information that playback is gathering.
The realization of the internet stream media real-time live broadcast of prior art mainly includes following link: gathers and encodes
(Encode): gather audio/video information, use specific coding algorithm, Voice & Video information is compressed;Multichannel merges
(Muxing): use concrete Container Format, the audio/video information after coding is incorporated in concrete files in stream media container;Issue
(Publish): use concrete transmission and control protocol, file is transmitted as a stream in web medium server;Pay
(Delivery): use concrete transmission and control protocol, the Streaming Media of client downloads web medium server;Playback
(Playback): client is decoded according to the file container format of Streaming Media and the encryption algorithm of audio/video information
(Demuxing and Decode) reduction present gathered audio/video information.
Prior art is in the Internet, and especially mobile Internet, the links institute of Streaming Media real-time live broadcast is widely used
Technology, standard and scheme as follows: audio coding mode has: AMR, AAC, MP3, Vorbis etc.;Video coding mode has:
MPEG-2, MPEG-4, H.263, H.264, VP6/8 etc.;Document container includes: MP4,3GPP, FLV, ASF, WebM, MPEG-TS
Deng;Streaming Media is issued the mode that used and is placed one's entire reliance upon the realization of streaming media server, according to different streaming media servers
Realize, it is therefore possible to use agreement have RTP, RTMP or proprietary protocol;Streaming Media pays widely used agreement to be had: RTP/
RTSP, RTMP, MMS etc.;Client playback uses all kinds of media players to realize, as Flash Player, HTML5 support
The built-in player of mobile platform and other player application journeys such as the built-in player of browser, iPhone/iPad and Android
Sequence.
In prior art, Real-time Transport Protocol uses UDP transmission, relates to the complexity such as Firewall Traversing;RTMP agreement is that Adobe is public
The low delay agreement based on TCP transmission of department's invention, default port is 1935, and its protocol realization details is the openest,
Therefore place one's entire reliance upon its server and client side realization;Equally, MMS depends on media server and the client reality of Microsoft
Existing, use UDP/TCP transmission, default port is 1755, also relates to the complexity of Firewall Traversing.The above pays agreement
When guaranteed qos (service quality), it is both needed to use complex control protocol, needs proprietary streaming media server to realize,
To provide service.
Therefore, for the deficiencies in the prior art, the company such as Fructus Mali pumilae also been proposed some Streaming Medias based on http protocol and hands over
Pay agreement: as, Http Live Streaming(refer to Fig. 1), Http Dynamic Streaming etc..Assist based on HTTP
The Streaming Media payment agreement of view, when paying media content, only depends on common http server, uses 80 ports, be not related to
The complexity of Firewall Traversing, can use the safety measures such as encryption or certificate that http protocol race supported simultaneously.Wherein phase
Than have employed, the scheme of Http Dynamic Streaming, the Http Live Streaming of more privately owned implementations is more
For succinctly, the mobile client at iPhone/iPad and Android more than 4.0 has the support of built-in player at present, and
And have increasing player to start to support this agreement.
Http Live Streaming provides the most succinct and graceful, Streaming Media delivery scheme based on HTTP.
Http Live Streaming is the streaming media communication agreement based on HTTP being proposed by Apple and realizing.This agreement will
Whole Media Stream is divided into one group of continuous print and is available for the small documents segmentation that HTTP downloads, and segmentation carries with MPEG-TS Container Format, full
The requirement of foot player streaming playback;There is provided the index with m3u8 as reference format, as the index of this set of segmentation simultaneously.Visitor
Family end asks m3u8 playlist by http server, according to the index in list, downloads segmentation successively.Downloading one
After segmentation, client can download subsequent segment, while play out in limit.Usual each split fix is the carrying audio frequency and video of 10 seconds
Media, it is ensured that at seriality and the rational resource overhead of client terminal playing, and time delay can be kept at about 30 seconds.Separately
Outward, server can provide the segmentation group of optional different rates according to different network rates, to adapt to heterogeneous networks speed
Requirement.Playlist constantly can be updated, to realize real-time live broadcast while providing access.Due to Http Live
Streaming only uses standard Http agreement, therefore different from RTP, possesses the ability passing through fire wall and proxy server;With
Time disclosure satisfy that CDN(Content Delivery Network) demand disposed.
Http Live Streaming system is formed (ginseng by the segmented program of server end, http server and client
See accompanying drawing 1).Server segment program is responsible for the files in stream media recorded or real-time media stream are carried out segmentation, and generates
Playlist;Http server provides HTTP request service for playlist and segmental file;Client is obtained by HTTP request
Take playlist and Streaming Media segmental file plays back.
But, Http Live Streaming not definition and offer are sent out to server end in real time by acquisition of media end
The method and system of cloth Streaming Media.The issue of the most various Http Live Streaming still relies on streaming media service
Implement, use mode based on RTP, RTMP or proprietary protocol to support from collection terminal to media server end real-time release stream
Media.As can be seen here, Http Live Streaming there is also following two defect:
1. place one's entire reliance upon the realization of specific streaming media server, and the client issuing interface provided.To specific
The introducing of streaming media service destroys the succinct and graceful of Http Live Streaming scheme itself;Depend on specific client
End issuing interface, causes realizing and integrated complexity of collection terminal;
2., when using the distribution scheme depending on RTP/RTSP streaming media communication agreement, its control protocol realizes complexity,
Causing collection terminal and the realization of server end and the integrated complexity that is respectively provided with, fault-tolerant ability is limited, and system is unstable.
Summary of the invention
For above-mentioned the deficiencies in the prior art, the present invention provides a kind of time delay, vigorousness, zmodem and can be simply
The be based entirely on http protocol system integrated with collection terminal and client the Internet issue and the method for live broadcast stream media and
System.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of in the Internet issue and the method for live broadcast stream media, it is characterised in that the method includes issuing visitor based on one
The Internet of family end, server end and client end of playing back is issued and the system of live broadcast stream media, comprises the following steps:
I. issue client terminal reading media data, carry out media data resolving acquisition audio stream and/or video stream data;
Ii. issue client terminal merges formation Streaming Media according to the form set to described audio stream and/or video flowing
Data, then according to the stream medium data piecemeal time generation stream medium data piecemeal preset;
Iii. issue client terminal uses HTTP method that described stream medium data piecemeal is uploaded onto the server end;
Iv. server end stores stream medium data piecemeal and builds Streaming Media according to the stream medium data split time preset
Data sectional file;Meanwhile, server end generates corresponding stream medium data segmental file order and the index of storage location;
V. client end of playing back uses HTTP method to index with server end interaction request, then according to index is from server end
Download stream medium data segmental file and play out simultaneously.
Further, described issue client terminal needs to obtain the URL, URL issued and represents depositing of a stream medium data
Storage space is put and at the path and name of designated storage location;Described URL generates according to predefined rule.
Preferably, described issue client terminal needs to obtain the URL, URL issued and represents the storage of a stream medium data
Position and at the path and name of designated storage location;Described URL is obtained by request server end, server end apply
The URL that distribution is issued, issue client terminal is by additional parameter in URL, or the head additional parameter in HTTP request, states institute
Issue beginning and the end of stream medium data piecemeal, and the sequence number of uploading stream media data piecemeal.
Preferably, the described stream medium data piecemeal time preset is 1 second, the described stream medium data segmentation preset
Time is 10 seconds;The Streaming Media of server end issues plug-in unit using storage position that server end is configured as root, with URL
Path sections is as the path of relative root, using the name in URL as base file name;The Streaming Media of server end is issued and is inserted
Part is known the beginning that Streaming Media issues according to the parameter in request URL or the parameter in request header, is terminated and upload Streaming Media
The sequence number of piecemeal, according to the description information represented by these parameters, creates index, writes Streaming Media segmental file, update index.
Preferably, after described received server-side to the HTTP request of issue client terminal, HTTP request is processed, so
Backward issue client terminal returns the process state to HTTP request represented with HTTP conditional code.
For realizing said method, present invention additionally comprises following system:
A kind of in the Internet issue and the system of live broadcast stream media, including server end and client end of playing back, its feature exists
In:
Also include issue client terminal, read and resolve the multimedia file exported in real time, again with setting
Form carries out the merging of Media Stream, and generates stream medium data piecemeal by the stream medium data piecemeal time preset, then with
HTTP method is uploaded to described server end;
Described server end calls Streaming Media process plug-in unit and processes the stream medium data piecemeal from issue client terminal, storage
Deposit stream medium data piecemeal and build stream medium data segmental file according to the stream medium data split time preset;Meanwhile, institute
State server end and generate corresponding stream medium data segmental file order and the index of storage location;
Described client end of playing back uses HTTP method to obtain described index from server end, then downloads according to described index
Streaming Media segmentation streaming media segmentation simultaneously play out.
Preferably, the described system with live broadcast stream media of issuing in the Internet also includes acquisition of media end, is used for gathering
And generate media data and media data is transferred to described issue client terminal.
Preferably, described issue client terminal includes media input module, issue client terminal audio coding module, issues client
End video encoding module, issue client terminal Streaming Media processing module and release module;Described media input module reads audio stream
And/or video stream data this audio stream and/or video stream data are transmitted to described issue client terminal Streaming Media processing module;
Described issue client terminal Streaming Media processing module calls issue client terminal audio coding module and/or issue client terminal Video coding
Module recompiles and carries out according to the form set the merging of Media Stream to audio stream and/or video stream data, and by presetting
The stream medium data piecemeal time generate stream medium data piecemeal.
Preferably, described server end includes that web service module, server flows medium process module and server store
Module, issue client terminal uses HTTP method and web service module mutual and uploads described Streaming Media piecemeal;Server flows matchmaker
Body processing module merges described Streaming Media piecemeal according to the Streaming Media split time set and as Streaming Media segmentation and generates corresponding stream
Media data segmental file order and the index of storage location, store respectively to server storage module.
Preferably, described client end of playing back includes delivery module, client end of playing back Streaming Media processing module, client end of playing back
Audio coding module, client end of playing back video encoding module and playing module;Described delivery module uses HTTP method with described
Server end is mutual and downloads Streaming Media segmental file, client end of playing back Streaming Media processing module pair according to index from server end
Streaming Media carries out decomposing acquisition audio stream and/or video flowing, and client end of playing back Streaming Media processing module calls client end of playing back sound
Frequently coding module and/or client end of playing back video encoding module are to being decoded described in audio stream and/or video flowing and passing through to broadcast
Amplification module plays out.
Compared with prior art, the method and system with live broadcast stream media of issuing in the Internet of the present invention have as follows
Advantageous Effects: be based entirely on http protocol system, does not relies on proprietary streaming media server and realizes, and server end only needs
Want http server as the target issued and the provider of direct broadcast service;Can lower coupling, non-intruding, simple and collection terminal
Application integration;It is prone on various terminal platforms realize, such as: the terminals such as iPhone/iPad, Android, Windows, Linux
Platform;The demands such as the time delay low, vigorousness good, the zmodem that meet the online real-time live broadcast of Streaming Media;Can support in the Internet
Large scale deployment, support CDN deployment way, possess scalability;Possesses the ability passing through fire wall and proxy server.
Accompanying drawing explanation
Fig. 1 is the structure chart of existing internet stream media real-time live broadcast system;
Fig. 2 is the flow chart that the present invention issues the method with live broadcast stream media in the Internet;
Fig. 3 is that the present invention issues in the Internet and the system construction drawing of live broadcast stream media;
Fig. 4 is the sequential chart that the issue client terminal of the present invention communicates with server end;
Fig. 5 is the software flow pattern that the issue client terminal of the present invention is mutual with server end.
Detailed description of the invention
Below in conjunction with the drawings and specific embodiments, the present invention will be further described.
Refer to Fig. 3, the present invention issues in the Internet and the system of live broadcast stream media, including issue client terminal 1, server
End 2 and client end of playing back 3;
Issue client terminal 1, reads in real time and resolves the multimedia file exported, again enter with the form set
The merging of row Media Stream, and generate stream medium data piecemeal by the stream medium data piecemeal time preset, then with HTTP method
It is uploaded to described server end 2;Issue client terminal 1 includes media input module 11, issue client terminal audio coding module 12, sends out
Cloth client video encoding module 13, issue client terminal Streaming Media processing module 14 and release module 15;Described media input mould
Block 11 reads audio stream and/or video stream data and this audio stream and/or video stream data is transmitted to described issue client terminal
Streaming Media processing module 14;Described issue client terminal Streaming Media processing module 14 calls issue client terminal audio coding module 12
And/or audio stream and/or video stream data are recompiled by issue client terminal video encoding module 13 and according to set form
Carry out the merging of Media Stream, and generate stream medium data piecemeal by the stream medium data piecemeal time preset.
Described server end 2 calls Streaming Media process plug-in unit and processes the stream medium data piecemeal from issue client terminal 1,
Store stream medium data piecemeal and build stream medium data segmental file according to the stream medium data split time preset;Meanwhile,
Server end 2 generates corresponding stream medium data segmental file order and the index of storage location;Server end 2 includes web service
Module 21, server flows medium process module 22 and server store module 23, and issue client terminal 1 uses HTTP method and webpage
Service module 21 is mutual and uploads described Streaming Media piecemeal;Server flows medium process module 22 is according to the Streaming Media segmentation set
Time merges described Streaming Media piecemeal and is Streaming Media segmentation and generates corresponding stream medium data segmental file order and storage location
Index, store respectively to server store module 23.
Described client end of playing back 3 uses HTTP method to obtain described index from server end 2, then according under described index
Current-carrying partitioning streaming media segmentation simultaneously play out;Client end of playing back 3 includes delivery module 31, client end of playing back stream
Medium process module 32, client end of playing back audio coding module 33, client end of playing back video encoding module 34 and playing module 35;
Described delivery module 31 uses HTTP method mutual with described server end 2 and downloads Streaming Media according to index from server end 2
Segmental file, client end of playing back Streaming Media processing module 32 streaming media carries out decomposing acquisition audio stream and/or video flowing, plays
Client Streaming Media processing module 32 calls client end of playing back audio coding module 33 and/or client end of playing back video encoding module
It is decoded described in 34 pairs of audio streams and/or video flowing and passes through playing module 35 playing out.
In said system, media input module 11, issue client terminal audio coding module 12, issue client terminal Video coding
Module 13, issue client terminal Streaming Media processing module 14 and release module 15, web service module 21, server flows media handling
Module 22, server store module 23, delivery module 31, client end of playing back Streaming Media processing module 32, client end of playing back audio frequency
Coding module 33, client end of playing back video encoding module 34 and playing module 35 may each be hardware module or software module.
Said system can also be integrated with collecting device flexibly: described system also includes acquisition of media end 4, is used for gathering
And generate media data and media data is transferred to described issue client terminal 1, described acquisition of media end 4 includes acquisition of media mould
Block 41, medium process module 42;Acquisition of media end 4 also includes that corresponding collection terminal audio coding module 43 and/or collection terminal regard
Frequently coding module 44, described medium process module 42 calls above-mentioned collection terminal audio coding module 43 and/or collection terminal video
Coding module 44 generates the media file of specific format, such as 3gpp, mp4, mov etc.;Medium process module 42 is at output media literary composition
Can be after generating complete media file, directly export whole media file during part, it is also possible to by complete media file
It is transmitted according to after specific time slice;More excellent, described medium process module 42 is in generating portion media file segmentation
Real time output media file fragmentation afterwards.Collection terminal 4 can be single hardware module, it is also possible to be to be directly integrated in issue visitor
Software within family end 1 or hardware module.The media file write of collection terminal 4 output gathers the local Socket of client 1 or writes
After entering pipeline or writing shared drive or call media input module 11 access interface function, by described media input module 11
Read.
In actual implementation process:
The issue client terminal Streaming Media processing module 14 of issue client terminal 1 can carry out matchmaker with MPEG-TS Container Format again
The merging of body stream, and press the time window generation Streaming Media piecemeal of 1s.
The release module 15 of issue client terminal 1 can generate according to predefined rule or requested webpage server obtains
Pass URL address;Release module, by additional URL parameter or HTTP request header information, states opening of issued Streaming Media segmentation
Begin and terminate, and uploading the adding description information such as sequence number of Streaming Media piecemeal;URL represents the position of a streaming media resource,
Including issued Streaming Media at the path and name of designated storage location.
Web service module 21, according to the process state of the request of release module 15, returns http response, and response is with HTTP
Conditional code represents process state, such as: success (200), denied access (403/405), server mistake (500) etc..
Server flows medium process module 22 can generate Streaming Media segmentation according to the time window of 10s, and according to Http
Live Streaming agreement produces index.
Server store module 23 in addition to file system, it would however also be possible to employ other distributed memory systems, as MongoDB
Redis etc., thus meet the server end distributed deployment demand providing live;Meanwhile, can be by the Streaming Media segmentation of storage
File and index are synchronized to DCN, use DCN scheme to provide retractility and the autgmentability of system.
Issue client terminal and client end of playing back, for the access of http server, can use the safety of http protocol standard
Measure carries out write protection, such as: basic access authentication (Basic Access Authentication), digest access authentication
(Digest Access Authentication) and HTTPS etc..
Refer to Fig. 3, below describe the particular hardware embodiment of present system:
Issue client terminal 1 is concrete terminal or mobile-terminal platform, the operating system of use may is that ios,
Android, Windows or Linux;This issue client terminal 1 includes media collection module 41, medium process module 42, collection terminal
Audio coding module 43, collection terminal video encoding module 44, media input module 11, issue client terminal audio coding module 12,
Issue client terminal video encoding module 13, issue client terminal Streaming Media processing module 14 and release module 15.Described acquisition module
41 for photographic head, mike and both control program accordingly;Described medium process module 42, collection terminal audio coding module
43 and collection terminal video encoding module 44 be integrated into one shooting application program;Described media input module 11, issue client terminal
Audio coding module 12, issue client terminal video encoding module 13, issue client terminal Streaming Media processing module 14 and release module
15 are integrated into an issue client terminal program.
Server end 2 is server computer, including web service module 21, server flows medium process module 22 and service
Device stores module 23;Described web service module 21 be provide HTTP service http server software, as Apache,
The softwares such as Lighttpd, Nginx;The HTTP of concrete web service module 21 according to described server flows medium process module 22
The Streaming Media that implementation method is write processes plug-in unit;It is distributed memory system that described server stores module 23.
Client end of playing back 3 is concrete terminal or mobile-terminal platform, the operating system of use may is that ios,
Android, Windows or Linux;Described client end of playing back 3 includes delivery module 31, client end of playing back Streaming Media processing module
32, client end of playing back audio coding module 33, client end of playing back video encoding module 34 and playing module 35;Described delivery module
31 is web browser;Described client end of playing back Streaming Media processing module 32, client end of playing back audio coding module 33, broadcasting visitor
Family end video encoding module 34 and playing module 35 are integrated into player software, including: the built-in player of HTML5 browser,
The built-in player of the mobile-terminal platforms such as iPad/iPhone and Android, Flash Player and other based on Windows or
The DST PLAYER application of Linux personal terminal platform.
Above-mentioned software and hardware system based on the present invention, the present invention issues the method with live broadcast stream media (such as Fig. 2 in the Internet
Shown in Fig. 5) include following process:
I. shooting application program generates and exports multimedia file (or write this locality Socket, pipeline, shared drive etc.,
Or call Streaming Media issue client terminal interface function);
Ii. issue client terminal program reads multimedia file (or reading local Socket, pipeline, shared drive etc.);
Iii. issue client terminal program definition multimedia file, obtains audio stream and/or video stream data respectively;
Iv. issue client terminal program re-starts merging according to MPEG-TS Container Format becomes stream medium data;
V. issue client terminal program is arranged according to transmission time window, and the stream medium data being combined carries out piecemeal, produces
Stream medium data piecemeal;
Vi. issue client terminal program uses HTTP method request server computer to store stream medium data piecemeal, with HTTP
Stream medium data piecemeal is uploaded onto the server computer by the URL that server software is specified;
Vii., after http server software receives the HTTP request of Streaming Media issue client terminal, call Streaming Media and process slotting
This HTTP request is processed by part;
Viii. Streaming Media process plug-in unit is according to server configuration information, such as storage position, stream medium data segmentation duration
Deng, merging stream medium data piecemeal is stream medium data segmentation, and the storage position write specified in distributed memory system
Stream medium data segmentation, generates corresponding stream medium data segmental file order and the index of storage location simultaneously;
Ix. the http server software process state to issue client terminal PROGRAMMED REQUESTS, return http response, respond with
HTTP conditional code represents process state, such as: success (200), denied access (403/405), server mistake (500) etc.;
X. client end of playing back web browser accesses http server software, and according to specifying URL request index, plays
Device downloads stream medium data segmentation according to index, and the sound that play stream media data segmental file is comprised while downloading regards
Frequently Media Stream.
Fig. 4 is the sequential chart that the issue client terminal of the present invention communicates with server end, and its process prescription is as follows:
Issue client terminal:
During configuration Streaming Media segmentation a length of 10 seconds, during Streaming Media piecemeal a length of 1 second;URL preparation package is designed as:
http://{domain_name}/path/name;HTTP request URL parameter part or head can be appended below description information:
Start to flow URL:http: // { domain_name}/path/name?command=start
Terminate stream URL:http: // { domain_name}/path/name?command=stop&segment=n&
Chunk=m, represents that the Streaming Media piecemeal finally uploaded is the m second piecemeal of the n-th Streaming Media segmentation;
Transmission stream URL:http: // { domain_name}/path/name?command=trans&segment=n&
Chunk=m, represents that the Streaming Media piecemeal currently uploaded is the m second piecemeal of the n-th Streaming Media segmentation;When n is equal to 0, represent
Upload first Streaming Media segmentation;When m is equal to 0, represent first piecemeal uploading this Streaming Media segmentation, when m is equal to 9,
Represent last piecemeal uploading this Streaming Media segmentation;
Server end:
Streaming Media processing module reading configuration file, the root of acquisition server storage module memory location, such as/
{root_dir};
Streaming Media processing module analysis request URL obtains path and name in URL;
Streaming Media processing module analysis request URL obtains URL parameter read requests: as command=start ,/
{ root_dir}/path creates name.m3u8 index file, and writes file header;Work as command=trans&segment=n&
During chunk=m ,/root_dir}/path will ask volume data to write file name-n.ts, if during m=9,
Name.m3u8 adds the index of the n-th Streaming Media segmental file;As command=stop&segment=n&chunk=m,
Write end-of-file mark at name.m3u8, if m is not equal to 9, before write end of file labelling, write last stream matchmaker
The index of body segmental file.
When writing successfully, return HTTP 200 by web service module and respond;When writing unsuccessfully, pass through web service
Module returns HTTP 500 and responds;During authorization failure, return HTTP 403 by web service module and respond;During non-PUT method,
Return HTTP 405 by web service module to respond.
Compared with prior art, the method and system with live broadcast stream media of issuing in the Internet of the present invention have as follows
Advantageous Effects: be based entirely on http protocol system, does not relies on proprietary streaming media server and realizes, and server end only needs
Want http server as the target issued and the provider of direct broadcast service;Can lower coupling, non-intruding, simple and collection terminal
Application integration;It is prone on various terminal platforms realize, such as: the terminals such as iPhone/iPad, Android, Windows, Linux
Platform;The demands such as the time delay low, vigorousness good, the zmodem that meet the online real-time live broadcast of Streaming Media;Can support in the Internet
Large scale deployment, support CDN deployment way, possess scalability;Possesses the ability passing through fire wall and proxy server;Separately
Outward, stream medium data piecemeal of the present invention is significantly less than stream medium data segmentation, and remerging piecemeal after therefore piecemeal is uploaded is segmentation
Method, it is possible to ensure that stream medium data piecemeal uploads onto the server end more rapidly and effectively, and the present invention will flow matchmaker
When volume data piecemeal merges into stream medium data segmentation, can close according to storage position, stream medium data segmentation duration etc.
And, method is flexible and varied.
Above-described embodiment is the preferred embodiment for the present invention, and its principles all are identical with the present embodiment with basic structure or approximate
, all within scope.
Claims (10)
1. issue and the method for live broadcast stream media in the Internet for one kind, it is characterised in that the method includes issuing client based on one
The Internet of end, server end and client end of playing back is issued and the system of live broadcast stream media, comprises the following steps:
I. issue client terminal reading media data, carry out media data resolving acquisition audio stream and/or video stream data;
Ii. issue client terminal merges formation stream matchmaker according to MPEG-TS Container Format to described audio stream and/or video flowing
Volume data, then according to the stream medium data piecemeal time generation stream medium data piecemeal preset;
Iii. issue client terminal uses HTTP method that described stream medium data piecemeal is uploaded onto the server end;
Iv. server end stores stream medium data piecemeal and calls Streaming Media process plug-in unit according to server configuration information merging stream
Media data piecemeal is stream medium data segmentation and then builds stream medium data segmental file, and at distributed memory system middle finger
Fixed storage position write stream medium data segmentation;Meanwhile, server end generate corresponding stream medium data segmental file order and
The index of storage location;Wherein, server configuration information includes: storage position, stream medium data segmentation duration;
V. client end of playing back uses HTTP method to index with server end interaction request, then according to index is from server end
Current-carrying media data segmental file also plays out simultaneously.
2. according to issuing in the Internet and the method for live broadcast stream media described in claim 1, it is characterised in that: issue client
End needs to obtain the URL, URL issued and represents the storage position of a stream medium data and in the path of designated storage location
And name;Described URL generates according to predefined rule.
3. according to issuing in the Internet and the method for live broadcast stream media described in claim 1, it is characterised in that: issue client
End needs to obtain the URL, URL issued and represents the storage position of a stream medium data and in the path of designated storage location
And name;Described URL is obtained by request server end, server end application distribution the URL issued, issue client terminal leads to
Cross additional parameter in URL, or the head additional parameter in HTTP request, state the beginning of issued stream medium data piecemeal
And end, and the sequence number of uploading stream media data piecemeal.
4. according to issuing in the Internet and the method for live broadcast stream media described in claim 2 or 3, it is characterised in that: described
The stream medium data piecemeal time preset be 1 second, the described stream medium data split time preset is 10 seconds;Server
The Streaming Media of end issues plug-in unit using storage position that server end is configured as root, using URL path sections as relatively
The path of root, using the name in URL as base file name;The Streaming Media of server end issues plug-in unit according to request URL
In parameter or parameter in request header know the beginning that Streaming Media is issued, the sequence number terminating and uploading Streaming Media piecemeal, root
According to the description information represented by these parameters, create index, write Streaming Media segmental file, update index.
5. according to issuing in the Internet and the method for live broadcast stream media described in claim 2 or 3, it is characterised in that: described
Received server-side to issue client terminal HTTP ask after, to HTTP request process, then return to issue client terminal
Return the process state to HTTP request represented with HTTP conditional code.
6. issuing in the Internet and a system for live broadcast stream media, including server end (2) and client end of playing back (3), it is special
Levy and be:
Also include issue client terminal (1), read and resolve the multimedia file exported in real time, again with the lattice set
Formula carries out the merging of Media Stream, and generates stream medium data piecemeal by the stream medium data piecemeal time preset, then with HTTP
Method is uploaded to described server end (2);
Described server end (2) calls Streaming Media process plug-in unit and processes the stream medium data piecemeal from issue client terminal (1),
Store stream medium data piecemeal and build stream medium data segmental file according to the stream medium data split time preset;Meanwhile,
Described server end (2) generates corresponding stream medium data segmental file order and the index of storage location;
Described client end of playing back (3) uses HTTP method to obtain described index from server end (2), then according to described index
Download Streaming Media segmentation and streaming media segmentation simultaneously plays out.
7. according to issuing in the Internet and the system of live broadcast stream media described in claim 6, it is characterised in that: also include matchmaker
Body collection terminal (4), is used for gathering and generating media data and media data is transferred to described issue client terminal (1).
8. according to issuing in the Internet and the system of live broadcast stream media described in claim 6, it is characterised in that: described issue
Client (1) includes media input module (11), issue client terminal audio coding module (12), issue client terminal Video coding mould
Block (13), issue client terminal Streaming Media processing module (14) and release module (15);Described media input module (11) reads sound
Frequency stream and/or video stream data also transmit this audio stream and/or video stream data to described issue client terminal Streaming Media
Reason module (14);Described issue client terminal Streaming Media processing module (14) call issue client terminal audio coding module (12) and/
Or audio stream and/or video stream data are recompiled by issue client terminal video encoding module (13) and according to set form
Carry out the merging of Media Stream, and generate stream medium data piecemeal by the stream medium data piecemeal time preset.
9., according to issuing in the Internet and the system of live broadcast stream media described in claim 6 to 8 any one, its feature exists
In: described server end (2) includes that web service module (21), server flows medium process module (22) and server store mould
Block (23), issue client terminal (1) uses HTTP method and web service module (21) mutual and uploads described Streaming Media piecemeal;
Server flows medium process module (22) merges described Streaming Media piecemeal according to the Streaming Media split time set and divides as Streaming Media
Section also generates corresponding stream medium data segmental file order and the index of storage location, stores respectively to server storage module
(23).
10. according to issuing in the Internet and the system of live broadcast stream media, its feature described in claim 6 to 8 any one
It is: described client end of playing back (3) includes delivery module (31), client end of playing back Streaming Media processing module (32), plays client
End audio coding module (33), client end of playing back video encoding module (34) and playing module (35);Described delivery module (31)
Use HTTP method and described server end (2) mutual and download Streaming Media segmental file according to index from server end (2),
Client end of playing back Streaming Media processing module (32) streaming media carries out decomposing acquisition audio stream and/or video flowing, client end of playing back
Streaming Media processing module (32) calls client end of playing back audio coding module (33) and/or client end of playing back video encoding module
(34) to being decoded described in audio stream and/or video flowing and pass through playing module (35) playing out.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210045413.2A CN103297452B (en) | 2012-02-24 | 2012-02-24 | A kind of in the Internet issue and the method and system of live broadcast stream media |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210045413.2A CN103297452B (en) | 2012-02-24 | 2012-02-24 | A kind of in the Internet issue and the method and system of live broadcast stream media |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103297452A CN103297452A (en) | 2013-09-11 |
CN103297452B true CN103297452B (en) | 2016-08-24 |
Family
ID=49097769
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210045413.2A Expired - Fee Related CN103297452B (en) | 2012-02-24 | 2012-02-24 | A kind of in the Internet issue and the method and system of live broadcast stream media |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103297452B (en) |
Families Citing this family (43)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103501392A (en) * | 2013-10-16 | 2014-01-08 | 江西省文明手机台传播有限责任公司 | Method for performing real-time audio and video shooting and live broadcast by using mobile phone |
CN104661058B (en) * | 2013-11-20 | 2018-01-16 | 深圳市云帆世纪科技有限公司 | Data flow transmission method, client and the VOD system of MP4 video request programs |
US8955027B1 (en) * | 2013-11-21 | 2015-02-10 | Google Inc. | Transcoding media streams using subchunking |
US10917682B2 (en) * | 2013-12-11 | 2021-02-09 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and system for synchronizing media streams |
CN103841468B (en) * | 2014-02-27 | 2018-04-20 | 北京六间房科技有限公司 | Real time flow medium data transmission method |
CN105100954B (en) * | 2014-05-07 | 2018-05-29 | 朱达欣 | A kind of alternate acknowledge system and method based on internet communication and live streaming media |
CN104284204B (en) * | 2014-09-25 | 2019-02-15 | 中兴通讯股份有限公司 | A kind of fast channel switching method, system and terminal, server |
CN104822079B (en) * | 2014-12-31 | 2018-12-04 | 北京奇艺世纪科技有限公司 | A kind of real-time release method and system of video file |
CN104717552B (en) * | 2015-03-31 | 2018-08-03 | 北京奇艺世纪科技有限公司 | The dissemination method and device of a kind of audio and video for live streaming |
CN104994143B (en) * | 2015-06-19 | 2018-06-19 | 小米科技有限责任公司 | Document down loading method and device |
CN106330845A (en) * | 2015-07-02 | 2017-01-11 | 中兴通讯股份有限公司 | Method and apparatus for transmitting streaming media data |
WO2017097691A1 (en) * | 2015-12-07 | 2017-06-15 | Net Insight Intellectual Property Ab | Adaptive bitrate (abr) adjustments for live over the top (ott) distribution |
CN105898376A (en) * | 2015-12-11 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Online video stream play method, device and system |
CN105577645A (en) * | 2015-12-11 | 2016-05-11 | 中国科学院声学研究所 | Agent-based HLS client-end device and realization method thereof |
CN105657443A (en) * | 2015-12-30 | 2016-06-08 | 深圳市云宙多媒体技术有限公司 | Live broadcast and time shifting playing method and system |
CN105657440B (en) * | 2016-01-05 | 2018-11-13 | 福建星网智慧科技股份有限公司 | A kind of method and system of net cast |
CN105893856A (en) * | 2016-03-30 | 2016-08-24 | 苏州美天网络科技有限公司 | Streaming media intelligent data storage system |
CN105635188B (en) * | 2016-03-31 | 2019-07-09 | 深圳市矽伟智科技有限公司 | A kind of visual content distribution method and system |
CN106993016B (en) * | 2016-07-20 | 2019-04-02 | 平安科技(深圳)有限公司 | Network request and the treating method and apparatus of response |
CN106303754A (en) * | 2016-08-04 | 2017-01-04 | 天脉聚源(北京)传媒科技有限公司 | A kind of audio data play method and device |
CN106488262A (en) * | 2016-10-21 | 2017-03-08 | 安徽协创物联网技术有限公司 | A kind of net cast circulation code system |
CN106507181B (en) * | 2016-11-30 | 2019-11-05 | 北京酷我科技有限公司 | A method of being obtained and stored in line video data |
CN106685942B (en) * | 2016-12-20 | 2020-07-24 | 徐亮 | Video live broadcast playback system and video live broadcast playback method |
CN106953892B (en) * | 2017-02-14 | 2020-08-07 | 北京时间股份有限公司 | Method, device and system for acquiring file |
CN108574860B (en) * | 2017-03-07 | 2021-12-03 | 阿里巴巴(中国)有限公司 | Multimedia resource playing method and device |
CN107197386B (en) * | 2017-05-31 | 2020-04-21 | 西安理工大学 | Cross-platform video playing implementation method without client |
CN109151494B (en) * | 2017-06-19 | 2021-07-09 | 杭州萤石网络有限公司 | Multimedia data transmission method, multimedia acquisition equipment and server |
CN107277558B (en) * | 2017-06-19 | 2020-03-31 | 网宿科技股份有限公司 | Player client, system and method for realizing synchronization of live video |
WO2018234080A1 (en) * | 2017-06-20 | 2018-12-27 | Telefonaktiebolaget Lm Ericsson (Publ) | Apparatuses and methods for live uplink adaptive streaming |
CN107197363B (en) * | 2017-07-04 | 2020-07-10 | 武汉斗鱼网络科技有限公司 | Video playing method and device |
AU2018352483B2 (en) * | 2017-10-19 | 2023-08-17 | Lazar Entertainment Inc. | Systems and methods for broadcasting live media streams |
CN108235151A (en) * | 2017-12-29 | 2018-06-29 | 北京奇虎科技有限公司 | A kind of method and apparatus of net cast |
CN110493627B (en) * | 2018-05-15 | 2022-06-14 | 阿里巴巴(中国)有限公司 | Multimedia content synchronization method and device |
CN108989426B (en) * | 2018-07-17 | 2021-04-06 | 深圳市网心科技有限公司 | HLS protocol-based stream pulling method, system, client and storage medium |
CN111654725B (en) * | 2019-03-04 | 2021-12-21 | 北京开广信息技术有限公司 | Real-time receiving method and client of media stream |
CN109756757B (en) * | 2019-03-21 | 2021-07-13 | 北京数码视讯软件技术发展有限公司 | Live broadcast data processing method and device, live broadcast method and device and live broadcast server |
CN110417735B (en) * | 2019-06-24 | 2020-09-11 | 特斯联(北京)科技有限公司 | Smart city streaming media management network and method thereof |
CN110545439A (en) * | 2019-08-29 | 2019-12-06 | 中邮科通信技术股份有限公司 | Rtmp multi-concurrent live broadcast system and method based on streaming media service |
CN111064973A (en) * | 2019-11-28 | 2020-04-24 | 湖北工业大学 | Live broadcast system based on IPV9 |
CN111597153A (en) * | 2020-05-13 | 2020-08-28 | 湖南国科微电子股份有限公司 | HLS-based file management method and device, electronic equipment and storage medium |
CN111629283B (en) * | 2020-05-14 | 2023-04-07 | 武汉群宇科技有限公司 | Multi-stream media gateway service system and method |
CN112532719B (en) * | 2020-11-26 | 2024-04-02 | 腾讯科技(深圳)有限公司 | Information stream pushing method, device, equipment and computer readable storage medium |
CN112533016B (en) * | 2020-11-27 | 2021-12-14 | 四川弘和通讯有限公司 | Method for triggering mobile phone HTML5 low-delay live video based on early warning information |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101127989A (en) * | 2007-09-11 | 2008-02-20 | 中兴通讯股份有限公司 | A method for supporting hypertext transmission stream media service of mobile phone |
CN101184195A (en) * | 2007-12-25 | 2008-05-21 | 腾讯科技(深圳)有限公司 | Audio/video living broadcast system and method |
CN101282348A (en) * | 2007-04-06 | 2008-10-08 | 上海晨兴电子科技有限公司 | Method for implementing flow medium function using HTTP protocol |
CN101420452A (en) * | 2008-12-05 | 2009-04-29 | 深圳市迅雷网络技术有限公司 | Video file publishing method and device |
CN101951412A (en) * | 2010-10-15 | 2011-01-19 | 上海交通大学 | Multi-sub-stream media transmission system based on HTTP protocol and transmission method thereof |
CN102055773A (en) * | 2009-11-09 | 2011-05-11 | 华为技术有限公司 | Method for realizing HTTP-based stream media service, system and network equipment |
CN102130958A (en) * | 2011-03-22 | 2011-07-20 | 宋健 | Method and system for video live broadcasting in small file slice mode based on hypertext transport protocol (HTTP) |
-
2012
- 2012-02-24 CN CN201210045413.2A patent/CN103297452B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101282348A (en) * | 2007-04-06 | 2008-10-08 | 上海晨兴电子科技有限公司 | Method for implementing flow medium function using HTTP protocol |
CN101127989A (en) * | 2007-09-11 | 2008-02-20 | 中兴通讯股份有限公司 | A method for supporting hypertext transmission stream media service of mobile phone |
CN101184195A (en) * | 2007-12-25 | 2008-05-21 | 腾讯科技(深圳)有限公司 | Audio/video living broadcast system and method |
CN101420452A (en) * | 2008-12-05 | 2009-04-29 | 深圳市迅雷网络技术有限公司 | Video file publishing method and device |
CN102055773A (en) * | 2009-11-09 | 2011-05-11 | 华为技术有限公司 | Method for realizing HTTP-based stream media service, system and network equipment |
CN101951412A (en) * | 2010-10-15 | 2011-01-19 | 上海交通大学 | Multi-sub-stream media transmission system based on HTTP protocol and transmission method thereof |
CN102130958A (en) * | 2011-03-22 | 2011-07-20 | 宋健 | Method and system for video live broadcasting in small file slice mode based on hypertext transport protocol (HTTP) |
Non-Patent Citations (1)
Title |
---|
"HTTP直播流媒体安全传输方法研究";姚宝岩;《电脑知识与技术》;20111031;正文第2节 * |
Also Published As
Publication number | Publication date |
---|---|
CN103297452A (en) | 2013-09-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103297452B (en) | A kind of in the Internet issue and the method and system of live broadcast stream media | |
CN202872837U (en) | System for Internet publishing and streaming media live broadcasting | |
US8874778B2 (en) | Live streaming media delivery for mobile audiences | |
CA2870059C (en) | Methods and systems for real-time transmuxing of streaming media content | |
CN107454101B (en) | System and method for content storage and transmission for downloading and streaming | |
KR102009611B1 (en) | Directory Restriction Based System and Method for Storing Media Segments | |
US9596522B2 (en) | Fragmented file structure for live media stream delivery | |
CN103828325B (en) | The statistic multiplexing of streaming media | |
CN106685942A (en) | Video live and replaying system and video live and replaying method | |
US9832492B2 (en) | Distribution of adaptive bit rate video streaming via hyper-text transfer protocol | |
CN109587514B (en) | Video playing method, medium and related device | |
CN108234997A (en) | Time-delay measuring method, equipment, system and the computer-readable medium of live video | |
CA2870865C (en) | Server side crossfading for progressive download media | |
CN105100954A (en) | Interactive response system and method based on Internet communication and streaming media live broadcast | |
KR20140097580A (en) | Audio splitting with codec-enforced frame sizes | |
CN114365503A (en) | Live media content delivery system and method | |
CN102065339A (en) | Method and system for playing audio and video media stream | |
US20110299586A1 (en) | Quality adjustment using a fragmented media stream | |
CN109104614A (en) | A kind of live streaming caching system and method | |
EP2773078A1 (en) | Method, system and devices for multimedia content delivery using adaptive streaming | |
CN107566851A (en) | A kind of video segment storage method and system accessed applied to media data | |
CN105191324A (en) | Communication apparatus, communication data generation method, and communication data processing method | |
JP2005094769A (en) | Apparatus and method for providing high speed download service of multimedia contents | |
Popescu et al. | Video distribution networks: architectures and system requirements | |
KR100820350B1 (en) | Multi contaniner format integration streaming server and streaming method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160824 Termination date: 20170224 |
|
CF01 | Termination of patent right due to non-payment of annual fee |