CN103957469B - Based on the Internet video-on-demand method and system for turning encapsulation in real time - Google Patents

Based on the Internet video-on-demand method and system for turning encapsulation in real time Download PDF

Info

Publication number
CN103957469B
CN103957469B CN201410216659.0A CN201410216659A CN103957469B CN 103957469 B CN103957469 B CN 103957469B CN 201410216659 A CN201410216659 A CN 201410216659A CN 103957469 B CN103957469 B CN 103957469B
Authority
CN
China
Prior art keywords
stream media
files
video
media
source format
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
CN201410216659.0A
Other languages
Chinese (zh)
Other versions
CN103957469A (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.)
Baishitong Network TV Technology Development Co Ltd
Original Assignee
Baishitong Network TV Technology Development 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 Baishitong Network TV Technology Development Co Ltd filed Critical Baishitong Network TV Technology Development Co Ltd
Priority to CN201410216659.0A priority Critical patent/CN103957469B/en
Publication of CN103957469A publication Critical patent/CN103957469A/en
Application granted granted Critical
Publication of CN103957469B publication Critical patent/CN103957469B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention provides a kind of based on the Internet video-on-demand method and system that turn encapsulation in real time, methods described has including step:Selected source format files in stream media is preserved to a kind of files in stream media of code check;When receiving user's order request, user's order request corresponding the source format files in stream media and object format are analyzed;The source format files in stream media is decapsulated, corresponding source format audio/video flow is extracted;The source format audio/video flow is packaged into by object format files in stream media according to the object format;The object format files in stream media is distributed to playback terminal.Whereby, the present invention turns encapsulation technology by real-time video, only preserves a kind of selected source format files in stream media to a kind of files in stream media of code check within the storage system, can greatly reduce storage overhead;And the present invention is not required to streaming media files and is decoded and re-encoded, and encapsulation format need to only be done and once changed, and will not bring playout-delay.

Description

Based on the Internet video-on-demand method and system for turning encapsulation in real time
Technical field
The present invention relates in internet video program request and digital media technology, more particularly to it is a kind of based on turning encapsulation in real time Internet video-on-demand method and system.
Background technology
Present digital media content is in DTV, and the field such as Web TV and mobile TV has been obtained for widely should With.But there are many standards on transmission technology.In recent years, because only needing to use common HTTP (HyperText Transport Protocol, the Internet transport protocol) server, the Streaming Media based on http protocol Program request technology has obtained great development.It is broadly divided into two major classes, and one is HTTP progressive downloads, and another is HTTP adaptive Stream media technology.And HTTP adaptive stream medias technology can preferably adapt to play network, band because it supports multi code Rate of Chinese character switching Carry out more preferable Consumer's Experience and be used widely.
Current HTTP adaptive stream medias agreement mainly has the HLS of apple, and (HTTP live Streaming, hypertext is straight Broadcast stream), the MSS (Microsoft Smooth Streaming) of Microsoft, ADOBE HDS (HTTP Dynamic Streaming) and later MPEG DASH (Dynamic Adaptive Streaming over HTTP), and wherein With being most widely used for HLS.Today constantly merged in network and terminal, it is desirable to which video format and host-host protocol are with applying ring Border difference and use various criterion requirement become more and more urgent.User wishes to access and watch video whenever and wherever possible, because This requires that video format and host-host protocol are freely changed in heterogeneous network.Present common practice is that video is encoded into different codes Rate, the file of different encapsulation format is preserved in the server, when user asks, directly obtains plane from HTTP server File.If supporting different agreements or different forms, the multiple copies of same code check file need to be just preserved.This way Although effectively, bringing great storage overhead.From the point of view of the development trend of internet video form intercommunication, exploitation is a kind of high Effect in real time turns encapsulation technology and is extremely necessary have wide practical use to adapt to different application environments.
In summary, prior art there will naturally be inconvenience and defect in actual use, and it is therefore necessary to improved.
The content of the invention
For above-mentioned defect, it is an object of the invention to provide a kind of based on the internet video program request for turning encapsulation in real time Method and system, it only preserves a kind of selected source format Streaming Media text to a kind of files in stream media of code check within the storage system Part, can greatly reduce storage overhead;And the present invention is not required to streaming media files and is decoded and re-encoded, and only need to be to encapsulation Form, which is done, once to be changed, and will not bring playout-delay.
To achieve these goals, the present invention provides a kind of based on the Internet video-on-demand method for turning encapsulation in real time, bag Include:
Storing step, selected source format files in stream media is preserved to a kind of files in stream media of code check;
Receiving step is asked, when receiving user's order request, user's order request is analyzed corresponding described Source format files in stream media and object format;
Decapsulation step, is decapsulated to the source format files in stream media, extracts corresponding source format audio/video flow;
Turn encapsulation step, the source format audio/video flow is packaged into by object format Streaming Media text according to the object format Part;
Issuing steps, playback terminal is distributed to by the object format files in stream media.
According to Internet video-on-demand method of the present invention, the source format files in stream media is MP4 formatted files And/or MPEG2-TS formatted files.
According to Internet video-on-demand method of the present invention, the decapsulation step further comprises:
The source format files in stream media is analyzed, corresponding source format audio/video flow and its media letter is extracted Breath, the media information includes media file coding information, time started or sequence number, selection time and/or video frame size;
The encapsulation step that turns further comprises:
According to the object format and the media information, the source format audio/video flow is packaged into the object format Files in stream media.
According to Internet video-on-demand method of the present invention, also include after the decapsulation step:
Judgment step, it is to obtain the object format files in stream media or playlist to judge user's order request File, if obtain the object format files in stream media then perform it is described turn encapsulation step, otherwise perform following playlists Generation step;
Playlist generation step, according to the corresponding playlist text of the media information and pre-defined rule generation Part;
The issuing steps include:
The play list file is distributed to playback terminal.
According to Internet video-on-demand method of the present invention, the issuing steps further comprise:
The object format files in stream media or the play list file are subjected to http response encapsulation, and are distributed to The playback terminal.
Internet video-on-demand method according to claim 1, it is characterised in that it is described turn after encapsulation step and Also include before the issuing steps:
Encrypting step, the object format files in stream media is encrypted;
The issuing steps further comprise:
The object format files in stream media after encryption is distributed to playback terminal.
According to Internet video-on-demand method of the present invention, the Internet video-on-demand method is supported to be based on HTTP The adaptive stream media of agreement is played or progressive download video playback.
According to Internet video-on-demand method of the present invention, the source format files in stream media is stored in content distribution In the Edge Server or video server of network.
According to Internet video-on-demand method of the present invention, the Internet video-on-demand method is applied to turn in real time Package server, for there is a first content distribution network of caching system, the package server that turns in real time is deployed in described the One content distributing network rear end;
The request receiving step further comprises:
When receiving user's order request, if the first edge server of the first content distribution network is not deposited In the corresponding source format files in stream media of user's order request, then the first edge server by Hui Yuan from institute State and turn the package server acquisition source format files in stream media in real time and be buffered in the caching system, then perform the solution Encapsulation step;If it is corresponding to there is user's order request in the first edge server of the first content distribution network The source format files in stream media, then directly perform the decapsulation step.
According to Internet video-on-demand method of the present invention, the Internet video-on-demand method is applied to turn in real time Package server, for the second content distributing network without caching system, the package server that turns in real time is deployed in described the On the second edge server of two content distributing networks;
The request receiving step further comprises:
When receiving user's order request, the second edge server inquires about institute in book server storage system The corresponding source format files in stream media of user's order request is stated, and performs the decapsulation step.
The present invention also provides a kind of based on the internet Internet video-on-demand system for turning encapsulation in real time, includes:
Memory module, selected source format files in stream media is preserved for the files in stream media to a kind of code check;
Request receiving module, for when receiving user's order request, analyzing user's order request corresponding The source format files in stream media and object format;
Decapsulation module, for being decapsulated to the source format files in stream media, extracts corresponding source format sound and regards Frequency flows;
Turn package module, for the source format audio/video flow to be packaged into object format stream matchmaker according to the object format Body file;
Release module, for the object format files in stream media to be distributed into playback terminal.
Internet Internet video-on-demand system according to one's duty, the source format files in stream media is MP4 forms File and/or MPEG2-TS formatted files.
Internet Internet video-on-demand system according to one's duty, the decapsulation module is used for the source format Files in stream media is analyzed, and extracts corresponding the source format audio/video flow and its media information, and the media information includes Media file coding information, time started or sequence number, selection time and/or video frame size;
The package module that turns is used for according to the object format and the media information, by the source format audio/video flow It is packaged into the object format files in stream media.
Internet Internet video-on-demand system according to one's duty, in addition to:
Judge module, for judging that user's order request is to obtain the object format files in stream media or broadcasting Listing file, then transfers to the package module that turns to perform, otherwise transfers to following if obtaining the object format files in stream media Playlist generation module is performed;
Playlist generation module, for generating the corresponding playlist according to the media information and pre-defined rule File;
The release module, for the play list file to be distributed into playback terminal.
Internet Internet video-on-demand system according to one's duty, the release module is used for the object format Files in stream media or the play list file carry out http response encapsulation, and are distributed to the playback terminal.
Internet Internet video-on-demand system according to one's duty, in addition to:
Encrypting module, for the object format files in stream media for turning package module output to be encrypted;
The release module is used to the object format files in stream media after encryption being distributed to playback terminal.
Internet Internet video-on-demand system according to one's duty, the internet Internet video-on-demand system branch The adaptive stream media based on http protocol is held to play or progressive download video playback.
Internet Internet video-on-demand system according to one's duty, the source format files in stream media is stored in content In the Edge Server or video server of distribution network.
Internet Internet video-on-demand system according to one's duty, the internet Internet video-on-demand system should It is described to turn package server portion in real time for there is the first content distribution network of caching system for turning package server in real time Administration is in the first content distribution network rear end;
The request receiving module is used for when receiving user's order request, if the first content distribution network First edge server the corresponding source format files in stream media of user's order request, then first side is not present Edge server is obtained the source format files in stream media and is buffered in described slow by Hui Yuan from the package server that turns in real time In deposit system, then the decapsulation module is transferred to perform;If the first edge server of the first content distribution network There is the corresponding source format files in stream media of user's order request, then directly transfer to the decapsulation module to perform.
Internet Internet video-on-demand system according to one's duty, the internet Internet video-on-demand system should It is described to turn package server portion in real time for the second content distributing network without caching system for turning package server in real time Administration is on the second edge server of second content distributing network;
The request receiving module is used for when receiving user's order request, and the second edge server is at this Server storage system inquires about the corresponding source format files in stream media of user's order request, and transfers to the decapsulation Module is performed.
The present invention only preserves a kind of selected source format Streaming Media to a kind of files in stream media of code check within the storage system File, when receiving user's order request, analyzes the corresponding source format files in stream media of user's order request and object format, Source format audio/video flow is dressed up into the progress deblocking of source format files in stream media, then the circulation of source format audio frequency and video is distributed into target lattice User is distributed to after formula files in stream media.Whereby, the present invention turns encapsulation technology by real-time video, within the storage system to one kind The files in stream media of code check only preserves a kind of selected source format files in stream media, can greatly reduce storage overhead;And with reality When transcoding technology unlike, the present invention is not required to streaming media files and is decoded and re-encoded, and only encapsulation format need to be done Once change, the amount of calculation with respect to transcoding is many less, will not bring playout-delay.The present invention simultaneously support using http protocol as The progressive download video playback and adaptive stream media on basis are played.
Brief description of the drawings
Fig. 1 is structural representation of the present invention based on the Internet video-on-demand system for turning encapsulation in real time;
Fig. 2 is the structural representation that the present invention is preferably based on the Internet video-on-demand system for turning encapsulation in real time;
Fig. 3 is that Internet video-on-demand system of the present invention is applied in the configuration diagram for having caching CDN system;
Fig. 4 is that Internet video-on-demand system of the present invention is applied in the configuration diagram without caching CDN system;
Fig. 5 is flow chart of the present invention based on the Internet video-on-demand method for turning encapsulation in real time;
Fig. 6 is the flow chart that the present invention is preferably based on the Internet video-on-demand method for turning encapsulation in real time.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 is structural representation of the present invention based on the Internet video-on-demand system for turning encapsulation in real time, the internet Video on-demand system 100 is supported based on HTTP (HyperText Transfer Protocol, Hypertext Transport Protocol) agreement Adaptive stream media is played or progressive download video playback.The Internet video-on-demand system 100 includes storage mould Block 10, request receiving module 20, decapsulation module 30, turn package module 40 and release module 50, wherein:
Memory module 10, selected source format files in stream media is preserved for the files in stream media to a kind of code check.It is preferred that , the source format files in stream media is MP4 (MPEG-4Part14) formatted files and/or MPEG2 (Moving Pictures Experts Group2, dynamic image expert group 2)-TS (Timestamp, timestamp) formatted file.Preferably It is that source format files in stream media is stored in CDN (Content Delivery Network, content distributing network) edge service In device or video server.
Request receiving module 20, for when receiving user's order request, analyzing the corresponding source of user's order request Format stream media file and object format.
Decapsulation module 30, for being decapsulated to source format files in stream media, extracts corresponding source format audio frequency and video Stream.Preferably, decapsulation module 30 is used to analyze source format files in stream media, extracts corresponding source format audio frequency and video Stream and its media information, the media information include media file coding information, time started or sequence number, selection time and/or Video frame size etc..
Turn package module 40, for source format audio/video flow to be packaged into object format Streaming Media text according to object format Part.Preferably, turning package module 40 is used for according to object format and media information, and source format audio/video flow is packaged into target Format stream media file.Difference is had according to selected streaming media playing agreement difference, then packaged media file format.For example, apple Fruit HLS uses MPEG2TS file formats, and Microsoft MSS and ADOBE HAD uses MP4 file formats.
Release module 50, the playback terminal for object format files in stream media to be distributed to user, the playback terminal Can be mobile phone, television set, tablet personal computer etc..Preferably, release module 50 be used for object format files in stream media or Play list file carries out http response encapsulation, and is distributed to playback terminal.
The emphasis of the present invention is only to preserve a media file copy on a storage device, and can provide a variety of Streaming Medias The support that agreement is played, and can effectively reduce netcast delay.The present invention's turns packing service in real time, works in HTTP clothes It is engaged in inside device.The present invention can effectively reduce system storage consumption, and can support simultaneously under gradual based on http protocol Carry video playback and adaptive stream media is played.The present invention proposes that one kind turns encapsulation technology in real time, within the storage system to one kind The files in stream media of code check only preserves a kind of selected source format, reaches the purpose for saving storage, by turning encapsulation in real time, supports HTTP adaptive stream medias agreement is played.This method is different from real-time transcoding, is not required to streaming media files and is decoded and compiled again Code, need to only do to encapsulation format and once change, many less with respect to transcoding amount of calculation, will not bring playout-delay.
Fig. 2 is the structural representation that the present invention is preferably based on the Internet video-on-demand system for turning encapsulation in real time, described mutual Networked video VOD system 100 supports the adaptive stream media based on http protocol to play or progressive download video playback. The Internet video-on-demand system 100 includes memory module 10, request receiving module 20, decapsulation module 30, turn encapsulation Module 40, release module 50, judge module 60 and playlist generation module 70, wherein:
Memory module 10, selected source format files in stream media is preserved for the files in stream media to a kind of code check.It is preferred that , the source format files in stream media is MP4 formatted files and/or MPEG2-TS formatted files.It is preferred that source format stream Media file is stored in CDN Edge Server or video server.
The selected source format file preserved on selection video server or CDN Edge Server, it is desirable to including:1st, it is real When calculate simple;2nd, the metadata comprising stream description;3rd, common format, have correlation is created in statistical tool.Three more than It is individual to require, there are following two common formats may be selected, MP4 file formats and MPEG2-TS file formats.Both file formats It is each advantageous, played for progressive download, support that the terminal of MP4 file formats is more, and also the former is for the branch of multi code Rate of Chinese character Hold relatively more preferably, and MPET2-TS file formats can preferably preserve user metadata, to being cut into slices by TS based on HLS protocol For, calculate in real time simpler.
Request receiving module 20, for when receiving user's order request, analyzing the corresponding source of user's order request Format stream media file and object format.
Decapsulation module 30, for being decapsulated to source format files in stream media, extracts corresponding source format audio frequency and video Stream.Preferably, decapsulation module 30 is used to analyze source format files in stream media, extracts corresponding source format audio frequency and video Stream and its media information, media information include media file coding information, time started or sequence number, selection time and/or video Frame sign etc..
Judge module 60, for judging that user's order request is to obtain object format files in stream media or playlist text Part, then transfers to turn package module 40 to perform, otherwise transfers to following playlists to generate if obtaining object format files in stream media Module 70 is performed.
Playlist generation module 70, for generating corresponding play list file according to media information and pre-defined rule. Different according to selected streaming media playing agreement, playlist content is different.Apple HLS uses M3U8, Microsoft MSS and ADOBE HAD use manifest files.In order to improve playing efficiency, network delay is reduced, simultaneously because play list file Very little, can typically be previously generated.Due to the multi code Rate of Chinese character adaptive characteristic of the adaptive class stream media protocols of HTTP, stream description information one As generated by program publisher, streaming media server will not be produced, and only provide broadcasting for contents list information, i.e. certain code check Emplace list file.
Turn package module 40, for source format audio/video flow to be packaged into object format Streaming Media text according to object format Part.Preferably, turning package module 40 is used for according to object format and media information, and source format audio/video flow is packaged into target Format stream media file.
Release module 50, for object format files in stream media and/or play list file to be distributed into playback terminal.It is excellent Choosing, release module 50 is used to object format files in stream media or play list file carrying out http response encapsulation, and It is distributed to the playback terminal of user.
It is preferred that the Internet video-on-demand system still alternatively includes encrypting module 80, the encryption mould Block 80 is used to the object format files in stream media for turning package module output is encrypted, and realizes DRM (Digital Right Management, digital copyright management).
The release module 50 is used to the object format files in stream media after encryption being distributed to playback terminal.
Fig. 3 is that Internet video-on-demand system of the present invention is applied in the configuration diagram for having caching CDN system.Internet is regarded Frequency broadcast system 100 is applied to turn package server in real time, for there is the first CDN of caching system, turns package server in real time It is deployed in the first CDN rear ends.The request receiving module 20 of Internet video-on-demand system 100 please for that ought receive user's program request When asking, if the corresponding source format files in stream media of user's order request or broadcasting is not present in the first CDN first edge server Listing file, then first edge server source format files in stream media or broadcasting are obtained from turning package server in real time by Hui Yuan Listing file is simultaneously buffered in caching system, then transfers to decapsulation module 30 to perform.If the first CDN first edge server is deposited In the corresponding source format files in stream media of user's order request, then decapsulation module 30 is directly transferred to perform.
Fig. 4 is that Internet video-on-demand system of the present invention is applied in the configuration diagram without caching CDN system.Internet is regarded Frequency broadcast system 100 is applied to turn package server in real time, for the 2nd CDN without caching system, turns package server in real time On the second edge server for being deployed in the 2nd CDN.The request receiving module 20 of Internet video-on-demand system 100, which is used to work as, to be connect When receiving user's order request, second edge server is in the corresponding source lattice of book server storage system inquiry user's order request Formula files in stream media, and transfer to decapsulation module 30 to perform.For example, when user initiates order request, Edge Server is in this clothes MP4 files are found in device storage system of being engaged in, and turn to be packaged into MPEG-TS section offer services.
The advantage of the invention for turning the video file that existing pre-generatmg multiple format is compared in encapsulation in real time is as follows:
1st, storage is saved:When a variety of HTTP stream media formats are supported, each stream media format must be in storage system Independent copy is preserved in system, great storage overhead is accordingly brought.And using encapsulation technology is turned in real time, only need to be in storage system In a kind of selected source format file is preserved to the file of each code check., only need to be particularly in the CDN system without caching Piece of content copy is preserved in Edge Server, storage overhead will be significantly reduced.
2nd, more preferable protocol extension:When new HTTP stream media protocols need to be supported, it is not required to enter All Files Row is encapsulated or recoded again, it is only necessary to which increase turns package module accordingly on HTTP server.
3rd, more preferable CDN is supported:No matter CDN (Content Delivery Network, Content Delivery Network) system is No support content caching, turning encapsulation technology in real time can all support very well.CDN system for supporting caching, can increase in CDN rear ends Plus turning package server in real time as source server, the content after turning encapsulation enters CDN system, and CDN can be made to obtain more Efficient content distribution ability.To the CDN system without caching, then selected source format text can be preserved on CDN Edge Servers Part, and increase turns package module in real time on Edge Server.
4th, DRM is supported:Due to the unicast characteristic of HTTP stream media protocols, DRM can be integrated into and turned in real time in packing service, Dynamic encryption request content.
5th, without real-time transcoding, playout-delay will not be brought:Different from real-time transcoding, it is not required to streaming media files and is solved Code and re-encoding, need to only do to encapsulation format and once change, many less with respect to transcoding amount of calculation, will not bring playout-delay.
Fig. 5 is flow chart of the present invention based on the Internet video-on-demand method for turning encapsulation in real time, internet video program request Method supports the adaptive stream media based on http protocol to play or progressive download video playback.It can by such as Fig. 1 or Internet video-on-demand system 100 shown in Fig. 2 is realized, including step has:
Step S501, storing step preserves selected source format files in stream media to a kind of files in stream media of code check.It is excellent Choosing, source format files in stream media is MP4 formatted files and/or MPEG2-TS formatted files.
Step S502, asks receiving step, when receiving user's order request, analyzes user's order request corresponding Source format files in stream media and object format.
Step S503, decapsulation step is decapsulated to source format files in stream media, is extracted corresponding source format sound and is regarded Frequency flows.This step is preferably, and source format files in stream media is analyzed, and extracts corresponding source format audio/video flow and its matchmaker Body information, media information includes media file coding information, time started or sequence number, selection time and/or video frame size.
Step S504, turns encapsulation step, and source format audio/video flow is packaged into object format Streaming Media according to object format File.This step is preferably, and according to object format and media information, source format audio/video flow is packaged into object format stream matchmaker Body file.Difference is had according to selected streaming media playing agreement difference, then packaged media file format.For example, apple HLS is used MPEG2TS file formats, Microsoft MSS and ADOBE HAD uses MP4 file formats.
Object format files in stream media is distributed to playback terminal by step S505, issuing steps.Preferably, by target Format stream media file or play list file carry out http response encapsulation, and are distributed to playback terminal.
Fig. 6 is the flow chart that the present invention is preferably based on the Internet video-on-demand method for turning encapsulation in real time, internet video Order method supports the adaptive stream media based on http protocol to play or progressive download video playback, and it can be by such as scheming Internet video-on-demand system 100 shown in 2 is realized, including step has:
Step S601, storing step preserves selected source format files in stream media to a kind of files in stream media of code check.It is excellent Choosing, source format files in stream media is MP4 formatted files and/or MPEG2-TS formatted files.
The selected source format file preserved on selection video server or CDN Edge Server, it is desirable to including:1st, it is real When calculate simple;2nd, the metadata comprising stream description;3rd, common format, have correlation is created in statistical tool.Three more than It is individual to require, there are following two common formats may be selected, MP4 file formats and MPEG2-TS file formats.Both file formats It is each advantageous, played for progressive download, support that the terminal of MP4 file formats is more, and also the former is for the branch of multi code Rate of Chinese character Hold relatively more preferably, and MPET2-TS file formats can preferably preserve user metadata, to being cut into slices by TS based on HLS protocol For, calculate in real time simpler.
Step S602, asks receiving step, when receiving user's order request, analyzes user's order request corresponding Source format files in stream media and object format.
Step S603, decapsulation step is decapsulated to source format files in stream media, is extracted corresponding source format sound and is regarded Frequency flows.This step is preferably, and source format files in stream media is analyzed, and extracts corresponding source format audio/video flow and its matchmaker Body information, media information includes media file coding information, time started or sequence number, selection time and/or video frame size.
Step S604, judgment step, it is to obtain object format files in stream media or played column to judge user's order request List file, encapsulation step S605 is turned if obtaining object format files in stream media and then performing, and otherwise performs following playlist lifes Into step S607.
Step S605, turns encapsulation step, and source format audio/video flow is packaged into object format Streaming Media according to object format File.This step is preferably, and according to object format and media information, source format audio/video flow is packaged into object format stream matchmaker Body file.
Object format files in stream media is encrypted step S606, encrypting step.
Step S607, playlist generation step generates corresponding playlist text according to media information and pre-defined rule Part.Different according to selected streaming media playing agreement, playlist content is different.Apple HLS uses M3U8, Microsoft MSS and ADOBE HAD use manifest files.In order to improve playing efficiency, network delay is reduced, simultaneously because play list file Very little, can typically be previously generated.Due to the multi code Rate of Chinese character adaptive characteristic of the adaptive class stream media protocols of HTTP, stream description information one As generated by program publisher, streaming media server will not be produced, and only provide broadcasting for contents list information, i.e. certain code check Emplace list file.
Object format files in stream media or play list file after encryption is distributed to by step S608, issuing steps Playback terminal.
In an embodiment of the present invention, Internet video-on-demand method is applied to turn package server in real time, slow for having The first content distribution network of deposit system, turns package server and is deployed in first content distribution network rear end in real time.The request Receiving step S502 or S602 further comprise:
When receiving user's order request, if user's point is not present in the first edge server of first content distribution network The corresponding source format files in stream media of request is broadcast, then first edge server obtains source by Hui Yuan from the real-time package server that turns Format stream media file is simultaneously buffered in caching system, then perform decapsulation step.If the first side of first content distribution network There is the corresponding source format files in stream media of user's order request in edge server, then directly perform decapsulation step.
In an alternative embodiment of the invention, Internet video-on-demand method is applied to turn package server in real time, for nothing Second content distributing network of caching system, turns the second edge clothes that package server is deployed in the second content distributing network in real time It is engaged on device.Request the receiving step S502 or S602 further comprise:
When receiving user's order request, second edge server please in the inquiry user program request of book server storage system Corresponding source format files in stream media is sought, and performs decapsulation step.
Specific embodiments of the present invention are described with a business application below.In this application, it is while supporting MP4 Progressive download is played and HLS is played, and source format file uses MP4, is turned package server and is realized what is cut into slices from MP4 file to TS Form is changed and exports http response, specifically includes following steps:
1st, the HTTP module of server is received after the order request that user proposes, analyzes the request URL (Uniform of user Resoure Locator:URL), broadcast information, including source format (MP4) filename are obtained from URL, is cut Piece time started or section start sequence number, object format file type (TS), optional play list file type.
2nd, decapsulation module is analyzed source format file (MP4), extracts media information, including media file coding letter Breath, duration and video frame size, time started, if key frame, the information such as starting position in MP4 files.
3rd, it is to obtain object format file (TS sections) or play list file to judge request, and takes corresponding step It is further processed.
4th, according to user's request section time started or sequence number, the audio/video frames in package module selection time and duration are simultaneously It is packaged into MPEG-TS files.
5th, the media information that optional playlist module is obtained according to step 2, and played according to certain rule generation Listing file.
6th, MPEG-TS sections content is encrypted according to user's request, encrypting module obtains encryption key, and carries out AES (Advanced Encryption Standard, Advanced Encryption Standard) is encrypted.
7th, HTTP service module carries out http response encapsulation to the content of generation, and is sent to user.
In summary, the present invention only preserves a kind of selected source lattice to a kind of files in stream media of code check within the storage system Formula files in stream media, when receiving user's order request, analyze the corresponding source format files in stream media of user's order request and Object format, dresses up source format audio/video flow, then the circulation of source format audio frequency and video is divided by the progress deblocking of source format files in stream media User is distributed to after dressing up object format files in stream media.Whereby, the present invention turns encapsulation technology by real-time video, in storage system A kind of selected source format files in stream media is only preserved in system to a kind of files in stream media of code check, storage can be greatly reduced and opened Pin;And from unlike real-time transcoding technology, the present invention is not required to streaming media files and is decoded and re-encoded, and only need pair Encapsulation format, which is done, once to be changed, and the amount of calculation with respect to transcoding is many less, will not bring playout-delay.The present invention simultaneously support with Progressive download video playback and adaptive stream media based on http protocol are played.
Certainly, the present invention can also have other various embodiments, ripe in the case of without departing substantially from spirit of the invention and its essence Various corresponding changes and deformation, but these corresponding changes and change ought can be made according to the present invention by knowing those skilled in the art Shape should all belong to the protection domain of appended claims of the invention.

Claims (14)

1. it is a kind of based on the Internet video-on-demand method for turning encapsulation in real time, it is characterised in that to include:
Storing step, selected source format files in stream media is preserved to a kind of files in stream media of code check;
Receiving step is asked, when receiving user's order request, the corresponding source lattice of user's order request are analyzed Formula files in stream media and object format;
Decapsulation step, is decapsulated to the source format files in stream media, extracts corresponding source format audio/video flow;
Turn encapsulation step, the source format audio/video flow is packaged into by object format files in stream media according to the object format;
Issuing steps, playback terminal is distributed to by the object format files in stream media;
The source format files in stream media is stored in the Edge Server of content distributing network or video server;
The Internet video-on-demand method is applied to turn package server in real time, for there is the distribution of the first content of caching system Network, described turning package server is deployed in the first content distribution network rear end in real time;
The request receiving step further comprises:
When receiving user's order request, if institute is not present in the first edge server of the first content distribution network State the corresponding source format files in stream media of user's order request, then the first edge server by Hui Yuan from the reality When turn package server and obtain the source format files in stream media and be buffered in the caching system, then perform the decapsulation Step;If it is corresponding described to there is user's order request in the first edge server of the first content distribution network Source format files in stream media, then directly perform the decapsulation step;Or
The Internet video-on-demand method is applied to turn package server in real time, for the second content distribution without caching system Network, it is described to turn package server in real time and be deployed on the second edge server of second content distributing network;
The request receiving step further comprises:
When receiving user's order request, the second edge server is in the book server storage system inquiry use The corresponding source format files in stream media of family order request, and perform the decapsulation step.
2. Internet video-on-demand method according to claim 1, it is characterised in that the source format files in stream media is MP4 formatted files and/or MPEG2-TS formatted files.
3. Internet video-on-demand method according to claim 1, it is characterised in that the decapsulation step is further wrapped Include:
The source format files in stream media is analyzed, corresponding the source format audio/video flow and its media information is extracted, The media information includes media file coding information, time started or sequence number, selection time and/or video frame size;
The encapsulation step that turns further comprises:
According to the object format and the media information, the source format audio/video flow is packaged into the object format stream matchmaker Body file.
4. Internet video-on-demand method according to claim 3, it is characterised in that also wrapped after the decapsulation step Include:
Judgment step, it is to obtain the object format files in stream media or playlist text to judge user's order request Part, if obtain the object format files in stream media then perform it is described turn encapsulation step, otherwise perform following playlists lifes Into step;
Playlist generation step, the corresponding play list file is generated according to the media information and pre-defined rule;
The issuing steps include:
The play list file is distributed to playback terminal.
5. Internet video-on-demand method according to claim 4, it is characterised in that the issuing steps are further wrapped Include:
The object format files in stream media or the play list file are subjected to http response encapsulation, and are distributed to described Playback terminal.
6. Internet video-on-demand method according to claim 1, it is characterised in that described to turn after encapsulation step and institute Also include before stating issuing steps:
Encrypting step, the object format files in stream media is encrypted;
The issuing steps further comprise:
The object format files in stream media after encryption is distributed to playback terminal.
7. Internet video-on-demand method according to claim 1, it is characterised in that the Internet video-on-demand method The adaptive stream media based on http protocol is supported to play or progressive download video playback.
8. it is a kind of based on the Internet video-on-demand system for turning encapsulation in real time, it is characterised in that to include:
Memory module, selected source format files in stream media is preserved for the files in stream media to a kind of code check;
Request receiving module, it is corresponding described for when receiving user's order request, analyzing user's order request Source format files in stream media and object format;
Decapsulation module, for being decapsulated to the source format files in stream media, extracts corresponding source format audio/video flow;
Turn package module, for the source format audio/video flow to be packaged into object format Streaming Media text according to the object format Part;
Release module, for the object format files in stream media to be distributed into playback terminal;
The source format files in stream media is stored in the Edge Server of content distributing network or video server;
The Internet video-on-demand system is applied to turn package server in real time, for there is the distribution of the first content of caching system Network, described turning package server is deployed in the first content distribution network rear end in real time;
The request receiving module is used for when receiving user's order request, if the of the first content distribution network The corresponding source format files in stream media of user's order request is not present in one Edge Server, then the first edge clothes Business device by Hui Yuan from it is described turn package server in real time and obtain the source format files in stream media and be buffered in the caching be In system, then the decapsulation module is transferred to perform;If the first edge server of the first content distribution network is present The corresponding source format files in stream media of user's order request, then directly transfer to the decapsulation module to perform;Or
The Internet video-on-demand system is applied to turn package server in real time, for the second content distribution without caching system Network, it is described to turn package server in real time and be deployed on the second edge server of second content distributing network;
The request receiving module is used for when receiving user's order request, and the second edge server is in this service Device storage system inquires about the corresponding source format files in stream media of user's order request, and transfers to the decapsulation module Perform.
9. Internet video-on-demand system according to claim 8, it is characterised in that the source format files in stream media is MP4 formatted files and/or MPEG2-TS formatted files.
10. Internet video-on-demand system according to claim 8, it is characterised in that the decapsulation module is used for pair The source format files in stream media is analyzed, and extracts corresponding the source format audio/video flow and its media information, the matchmaker Body information includes media file coding information, time started or sequence number, selection time and/or video frame size;
The package module that turns is used to, according to the object format and the media information, the source format audio/video flow be encapsulated Into the object format files in stream media.
11. Internet video-on-demand system according to claim 10, it is characterised in that also include:
Judge module, for judging that user's order request is to obtain the object format files in stream media or playlist File, then transfers to the package module that turns to perform, otherwise transfers to following broadcastings if obtaining the object format files in stream media List Generating Module is performed;
Playlist generation module, for according to the corresponding playlist text of the media information and pre-defined rule generation Part;
The release module, for the play list file to be distributed into playback terminal.
12. Internet video-on-demand system according to claim 11, it is characterised in that the release module is used for institute State object format files in stream media or the play list file carries out http response encapsulation, and be distributed to described play eventually End.
13. Internet video-on-demand system according to claim 8, it is characterised in that also include:
Encrypting module, for the object format files in stream media for turning package module output to be encrypted;
The release module is used to the object format files in stream media after encryption being distributed to playback terminal.
14. Internet video-on-demand system according to claim 8, it is characterised in that the internet video program request system System supports the adaptive stream media based on http protocol to play or progressive download video playback.
CN201410216659.0A 2014-05-21 2014-05-21 Based on the Internet video-on-demand method and system for turning encapsulation in real time Active CN103957469B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410216659.0A CN103957469B (en) 2014-05-21 2014-05-21 Based on the Internet video-on-demand method and system for turning encapsulation in real time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410216659.0A CN103957469B (en) 2014-05-21 2014-05-21 Based on the Internet video-on-demand method and system for turning encapsulation in real time

Publications (2)

Publication Number Publication Date
CN103957469A CN103957469A (en) 2014-07-30
CN103957469B true CN103957469B (en) 2017-09-15

Family

ID=51334675

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410216659.0A Active CN103957469B (en) 2014-05-21 2014-05-21 Based on the Internet video-on-demand method and system for turning encapsulation in real time

Country Status (1)

Country Link
CN (1) CN103957469B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202356B (en) * 2014-08-07 2015-10-21 西安交通大学 A kind of video cloud VOD system video file dispositions method based on multi code Rate of Chinese character version
CN104333765B (en) * 2014-10-23 2018-04-10 无锡天脉聚源传媒科技有限公司 A kind of processing method and processing unit of net cast stream
CN104581228A (en) * 2015-01-06 2015-04-29 南京爱布谷网络科技有限公司 Bandwidth self-adaptation streaming media system serving various terminals
CN106162377B (en) * 2015-04-08 2019-06-21 中国移动通信集团公司 Conversion method, device, BM-SC and the terminal of adaptive stream media technology
CN105872572A (en) * 2015-12-14 2016-08-17 乐视云计算有限公司 Live broadcast video processing method and device
CN108271039B (en) * 2016-12-30 2021-11-12 中兴通讯股份有限公司 File sending method and device
CN106792271A (en) * 2016-12-30 2017-05-31 中广热点云科技有限公司 The system and method for document presentation association in adaptive stream media
CN110213197A (en) * 2018-02-28 2019-09-06 北京京东尚科信息技术有限公司 Audio file tune listens method and system
CN109963199A (en) * 2019-04-23 2019-07-02 中国联合网络通信集团有限公司 Content distributing network and its distribution method
CN110225399B (en) * 2019-06-19 2021-11-23 深圳市共进电子股份有限公司 Streaming media processing method and device, computer equipment and storage medium
CN112449212B (en) * 2019-08-28 2022-11-04 杭州海康威视系统技术有限公司 Audio and video code stream processing method and device and control equipment
CN110753259B (en) * 2019-11-15 2022-01-25 北京字节跳动网络技术有限公司 Video data processing method and device, electronic equipment and computer readable medium
CN113824971A (en) * 2020-06-18 2021-12-21 中央广播电视总台 Three-dimensional sound live broadcast stream scheduling and distributing method and system
CN113497952A (en) * 2021-05-12 2021-10-12 北京阳光云视科技有限公司 MP4 file real-time streaming gateway control system and control flow
CN114640865A (en) * 2022-03-10 2022-06-17 京东科技信息技术有限公司 Video file trans-packaging method, device, equipment and storage medium
CN115174992A (en) * 2022-07-06 2022-10-11 深圳市瑞驰信息技术有限公司 Method and system for realizing TS video playing based on NGINX

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065339A (en) * 2010-11-09 2011-05-18 中国电信股份有限公司 Method and system for playing audio and video media stream
CN102217225A (en) * 2008-10-03 2011-10-12 杰出网络公司 Content delivery network encryption
CN102256162A (en) * 2011-07-22 2011-11-23 网宿科技股份有限公司 Method and system for optimizing media-on-demand based on real-time file format conversion
CN102404610A (en) * 2011-12-30 2012-04-04 百视通网络电视技术发展有限责任公司 Method and system for realizing video on demand service
CN102474504A (en) * 2009-10-08 2012-05-23 华为技术有限公司 System and method to support different ingest and delivery schemes for a content delivery network
CN103414733A (en) * 2013-09-03 2013-11-27 百视通网络电视技术发展有限责任公司 HLS (HTTP Live Streaming) streaming media playing method and HLS streaming media playing system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102217225A (en) * 2008-10-03 2011-10-12 杰出网络公司 Content delivery network encryption
CN102474504A (en) * 2009-10-08 2012-05-23 华为技术有限公司 System and method to support different ingest and delivery schemes for a content delivery network
CN102065339A (en) * 2010-11-09 2011-05-18 中国电信股份有限公司 Method and system for playing audio and video media stream
CN102256162A (en) * 2011-07-22 2011-11-23 网宿科技股份有限公司 Method and system for optimizing media-on-demand based on real-time file format conversion
CN102404610A (en) * 2011-12-30 2012-04-04 百视通网络电视技术发展有限责任公司 Method and system for realizing video on demand service
CN103414733A (en) * 2013-09-03 2013-11-27 百视通网络电视技术发展有限责任公司 HLS (HTTP Live Streaming) streaming media playing method and HLS streaming media playing system

Also Published As

Publication number Publication date
CN103957469A (en) 2014-07-30

Similar Documents

Publication Publication Date Title
CN103957469B (en) Based on the Internet video-on-demand method and system for turning encapsulation in real time
US10560726B2 (en) System and method for delivery and caching of personalized media streaming content
CA3002227C (en) Selection of coded next generation audio data for transport
US9491499B2 (en) Dynamic stitching module and protocol for personalized and targeted content streaming
US20120166289A1 (en) Real-time media stream insertion method and apparatus
US20160345074A1 (en) Apparatus and Method for Replacing Conventional Commercials with Targeted Advertisements in Online Live Streams
CN104796796B (en) Improve the fault-tolerant method of the HLS streaming players of Android platform
US20120278496A1 (en) Startup Bitrate In Adaptive Bitrate Streaming
US20120246335A1 (en) Method, terminal, and server for implementing fast playout
CN106685942A (en) Video live and replaying system and video live and replaying method
CA2888214C (en) Chunking of multiple track audio for adaptive bit rate streaming
US20150319505A1 (en) Systems and Methods for Delivering Content to a Media Content Access Device
CN105828096B (en) Method and device for processing media stream file
JP6862361B2 (en) Broadcast content redistribution and ad insertion
JP2006521038A (en) System for distributing multimedia content
CN107820115A (en) Realize the method, apparatus and client and storage medium of video information preview
WO2015192683A1 (en) Content distribution method, device and system based on adaptive streaming technology
TWI577186B (en) Rendering time control
WO2017185601A1 (en) Method and device for providing and downloading video
CN103024491B (en) The video broadcasting method of mobile terminal and system
CN106105239B (en) Sending device, sending method, receiving device, method of reseptance and program
Van Deursen et al. On media delivery protocols in the web
US20240155019A1 (en) Synchronizing independent media and data streams using media stream synchronization points
US9998514B2 (en) Method and apparatus for handling files in association with media content delivery
JP6597604B2 (en) Reception device, transmission device, data communication method, and data processing 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
GR01 Patent grant
GR01 Patent grant