CN103957469A - Internet video on demand method and system based on real-time packaging switching - Google Patents

Internet video on demand method and system based on real-time packaging switching Download PDF

Info

Publication number
CN103957469A
CN103957469A CN201410216659.0A CN201410216659A CN103957469A CN 103957469 A CN103957469 A CN 103957469A CN 201410216659 A CN201410216659 A CN 201410216659A CN 103957469 A CN103957469 A CN 103957469A
Authority
CN
China
Prior art keywords
stream media
video
format files
internet
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.)
Granted
Application number
CN201410216659.0A
Other languages
Chinese (zh)
Other versions
CN103957469B (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

Abstract

The invention provides an internet video on demand method and system based on real-time packaging switching. The method includes the steps of storing a selected source format streaming media file for a streaming media file with one type of code rate, conducting analysis to find the source format streaming media file and the target format corresponding to a user video-on-demand request when receiving the user video-on-demand request, conducting unpackaging on the source format streaming media file to extract a source format audio and video stream corresponding to the user video-on-demand request, packaging the source format audio and video steam into a streaming media file in the target format according to the target format, and issuing the streaming media file in the target format to a play terminal. In this way, by means of the real-time video packaging switching technology, only one type of selected source format streaming media file is stored for the streaming media file with one type of code rate, and therefore storage expenses can be greatly reduced; no decoding or recoding needs to be conducted on the streaming media file, only one time of switching needs to be conducted on the packaging format, and play delay can not be caused.

Description

Based on the internet video order method and the system that turn in real time encapsulation
Technical field
The present invention relates in internet video program request and digital media technology, relate in particular to a kind of internet video order method and system based on turning in real time encapsulation.
Background technology
Digital media content is in Digital Television now, and the fields such as Web TV and mobile TV are widely used.But on transmission technology, there is many standards.In recent years, because only need to use common HTTP (HyperText Transport Protocol, the Internet transport protocol) server, obtain great development taking http protocol as basic streaming media on demand technology.It is mainly divided into two large classes, the one, HTTP progressive download, and another is HTTP adaptive stream media technology.And HTTP adaptive stream media technology is because it supports multi code Rate of Chinese character to switch, can better adapt to playing network, bring better user to experience and be used widely.
HTTP adaptive stream media agreement mainly contains HLS (the HTTP live Streaming of apple at present, hypertext live TV stream), the MSS (Microsoft Smooth Streaming) of Microsoft, the HDS (HTTP Dynamic Streaming) of ADOBE and MPEG DASH afterwards (Dynamic Adaptive Streaming over HTTP), and being most widely used with HLS wherein.In today of network and the continuous fusion of terminal, require video format and host-host protocol to adopt the requirement of various criterion to become more and more urgent with the difference of applied environment.User wishes to access and watch video whenever and wherever possible, therefore requires video format and host-host protocol freely to change in heterogeneous network.Present common practice is that video is encoded into different code checks, and the file of different encapsulation format is kept in server, in user's request, directly obtains flat file from http server.If support different agreements or different forms, just need to preserve many parts of copies of same code check file.Although this way is effective, has brought great storage overhead.From the development trend of internet video form intercommunication, develop and a kind ofly efficiently turn in real time encapsulation technology and be extremely necessary to adapt to different applied environments, have wide practical use.
In summary, obviously there is inconvenience and defect in prior art in actual use, so be necessary to be improved.
Summary of the invention
For above-mentioned defect, the object of the present invention is to provide a kind of internet video order method and system based on turning in real time encapsulation, it only preserves a kind of selected source format files in stream media to a kind of files in stream media of code check in storage system, can greatly reduce storage overhead; And the present invention does not need files in stream media to decode and encode, and only need do once conversion to encapsulation format, can not bring playout-delay.
To achieve these goals, the invention provides a kind of internet video order method based on turning in real time encapsulation, include:
Storing step, preserves selected source format files in stream media to a kind of files in stream media of code check;
Request receiving step, in the time receiving user's order request, analyzes described user's order request corresponding described source format files in stream media and object format;
Decapsulation step, carries out decapsulation to described source format files in stream media, extracts corresponding source format audio/video flow;
Turn encapsulation step, according to described object format, described source format audio/video flow is packaged into object format files in stream media;
Issuing steps, is distributed to playback terminal by described object format files in stream media.
According to internet video order method of the present invention, described source format files in stream media is MP4 formatted file and/or MPEG2-TS formatted file.
According to internet video order method of the present invention, described decapsulation step further comprises:
Described source format files in stream media is analyzed, extracted corresponding described source format audio/video flow and media information thereof, described media information comprises media file coded message, time started or sequence number, select time and/or video frame size;
The described encapsulation step that turns further comprises:
According to described object format and described media information, described source format audio/video flow is packaged into described object format files in stream media.
According to internet video order method of the present invention, after described decapsulation step, also comprise:
Determining step, judges that described user's order request obtains described object format files in stream media or play list file, turns encapsulation step if obtain described object format files in stream media described in carrying out, and generates step otherwise carry out following playlist;
Playlist generates step, generates corresponding described play list file according to described media information and pre-defined rule;
Described issuing steps comprises:
Described play list file is distributed to playback terminal.
According to internet video order method of the present invention, described issuing steps further comprises:
Described object format files in stream media or described play list file are carried out to http response encapsulation, and be distributed to described playback terminal.
Internet video order method according to claim 1, is characterized in that, described in turn after encapsulation step and described issuing steps before also comprise:
Encrypting step, is encrypted described object format files in stream media;
Described issuing steps further comprises:
Described object format files in stream media after encrypting is distributed to playback terminal.
According to internet video order method of the present invention, described internet video order method is supported to play or progressive download video playback based on the adaptive stream media of http protocol.
According to internet video order method of the present invention, described source format files in stream media is stored in the Edge Server or video server of content distributing network.
According to internet video order method of the present invention, described internet video order method is applied to and turns in real time package server, for the first content distributing network that has caching system, the described package server that turns is in real time deployed in described first content distributing network rear end;
Described request receiving step further comprises:
In the time receiving described user's order request, if there is not described source format files in stream media corresponding to described user's order request in the first Edge Server of described first content distributing network, described the first Edge Server is obtained described source format files in stream media and is buffered in described caching system from the described package server that turns in real time by Hui Yuan, then carries out described decapsulation step; If described first Edge Server of described first content distributing network exists described source format files in stream media corresponding to described user's order request, directly carry out described decapsulation step.
According to internet video order method of the present invention, described internet video order method is applied to and turns in real time package server, for the second content distributing network without caching system, described turning in real time on the second Edge Server that package server is deployed in described second content distributing network;
Described request receiving step further comprises:
In the time receiving described user's order request, described the second Edge Server is inquired about described source format files in stream media corresponding to described user's order request in book server storage system, and carries out described decapsulation step.
The present invention also provides a kind of the Internet Internet video-on-demand system based on turning in real time encapsulation, includes:
Memory module, for preserving selected source format files in stream media to a kind of files in stream media of code check;
Request receiving module, in the time receiving user's order request, analyzes described user's order request corresponding described source format files in stream media and object format;
Decapsulation module, for described source format files in stream media is carried out to decapsulation, extracts corresponding source format audio/video flow;
Turn package module, for described source format audio/video flow being packaged into object format files in stream media according to described object format;
Release module, for being distributed to playback terminal by described object format files in stream media.
The Internet Internet video-on-demand system according to one's duty, described source format files in stream media is MP4 formatted file and/or MPEG2-TS formatted file.
The Internet Internet video-on-demand system according to one's duty, described decapsulation module is for analyzing described source format files in stream media, extract corresponding described source format audio/video flow and media information thereof, described media information comprises media file coded message, time started or sequence number, select time and/or video frame size;
The described package module that turns, for according to described object format and described media information, is packaged into described object format files in stream media by described source format audio/video flow.
The Internet Internet video-on-demand system according to one's duty, also comprises:
Judge module, be used for judging that described user's order request obtains described object format files in stream media or play list file, turn package module described in transferring to and carry out if obtain described object format files in stream media, otherwise transfer to following playlist generation module to carry out;
Playlist generation module, for generating corresponding described play list file according to described media information and pre-defined rule;
Described release module, for being distributed to playback terminal by described play list file.
The Internet Internet video-on-demand system according to one's duty, described release module is used for described object format files in stream media or described play list file to carry out http response encapsulation, and is distributed to described playback terminal.
The Internet Internet video-on-demand system according to one's duty, also comprises:
Encrypting module, for being encrypted the described described object format files in stream media that turns package module output;
Described release module is for being distributed to playback terminal by the described object format files in stream media after encrypting.
The Internet Internet video-on-demand system according to one's duty, described the Internet Internet video-on-demand system is supported to play or progressive download video playback based on the adaptive stream media of http protocol.
The Internet Internet video-on-demand system according to one's duty, described source format files in stream media is stored in the Edge Server or video server of content distributing network.
The Internet Internet video-on-demand system according to one's duty, described the Internet Internet video-on-demand system is applied to and turns in real time package server, for the first content distributing network that has caching system, the described package server that turns is in real time deployed in described first content distributing network rear end;
Described request receiver module is in the time receiving described user's order request, if there is not described source format files in stream media corresponding to described user's order request in the first Edge Server of described first content distributing network, described the first Edge Server is obtained described source format files in stream media and is buffered in described caching system from the described package server that turns in real time by Hui Yuan, then transfers to described decapsulation module to carry out; If described first Edge Server of described first content distributing network exists described source format files in stream media corresponding to described user's order request, directly transfer to described decapsulation module to carry out.
The Internet Internet video-on-demand system according to one's duty, described the Internet Internet video-on-demand system is applied to and turns in real time package server, for the second content distributing network without caching system, described turning in real time on the second Edge Server that package server is deployed in described second content distributing network;
Described request receiver module is in the time receiving described user's order request, and described the second Edge Server is inquired about described source format files in stream media corresponding to described user's order request in book server storage system, and transfers to described decapsulation module to carry out.
The present invention only preserves a kind of selected source format files in stream media to a kind of files in stream media of code check in storage system, in the time receiving user's order request, analyze user's order request corresponding source format files in stream media and object format, source format files in stream media is carried out to deblocking and dress up source format audio/video flow, then be distributed to user after the circulation of source format audio frequency and video is distributed into object format files in stream media.Whereby, the present invention turns encapsulation technology by real-time video, in storage system, a kind of files in stream media of code check is only preserved to a kind of selected source format files in stream media, can greatly reduce storage overhead; And different from real-time transcoding technology, the present invention does not need files in stream media to decode and encode, and only need do once conversion to encapsulation format, the amount of calculation of transcoding will be lacked much relatively, can not bring playout-delay.The present invention supports taking http protocol as basic progressive download video playback simultaneously and adaptive stream media is play.
Brief description of the drawings
Fig. 1 is the structural representation that the present invention is based on the Internet video-on-demand system that turns in real time encapsulation;
Fig. 2 is the structural representation that the present invention is preferably based on the Internet video-on-demand system that turns in real time encapsulation;
Fig. 3 is the configuration diagram that Internet video-on-demand system of the present invention is applied in buffer memory CDN system;
Fig. 4 is that Internet video-on-demand system of the present invention is applied in the configuration diagram without buffer memory CDN system;
Fig. 5 is the flow chart that the present invention is based on the internet video order method that turns in real time encapsulation;
Fig. 6 is the flow chart that the present invention is preferably based on the internet video order method that turns in real time encapsulation.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Fig. 1 is the structural representation that the present invention is based on the Internet video-on-demand system that turns in real time encapsulation, described Internet video-on-demand system 100 is supported to play or progressive download video playback based on the adaptive stream media of HTTP (HyperText Transfer Protocol, Hypertext Transport Protocol) agreement.Described Internet video-on-demand system 100 includes memory module 10, request receiving module 20, decapsulation module 30, turns package module 40 and release module 50, wherein:
Memory module 10, for preserving selected source format files in stream media to a kind of files in stream media of code check.Preferably, described source format files in stream media is MP4 (MPEG-4Part14) formatted file and/or MPEG2 (Moving Pictures Experts Group2, dynamic image expert group 2)-TS (Timestamp, timestamp) formatted file.Be more preferably, source format files in stream media is stored in the Edge Server or video server of CDN (Content Delivery Network, content distributing network).
Request receiving module 20, in the time receiving user's order request, analyzes user's order request corresponding source format files in stream media and object format.
Decapsulation module 30, for source format files in stream media is carried out to decapsulation, extracts corresponding source format audio/video flow.Preferably, decapsulation module 30 is for analyzing source format files in stream media, extract corresponding source format audio/video flow and media information thereof, described media information comprises media file coded message, time started or sequence number, select time and/or video frame size etc.
Turn package module 40, for source format audio/video flow being packaged into object format files in stream media according to object format.Preferably, turn package module 40 for according to object format and media information, source format audio/video flow is packaged into object format files in stream media.According to selected streaming media playing agreement difference, then packaged media file format has difference.For example, apple HLS adopts MPEG2TS file format, and the MSS of Microsoft and ADOBE HAD adopt MP4 file format.
Release module 50, for object format files in stream media being distributed to user's playback terminal, described playback terminal can be mobile phone, television set, panel computer etc.Preferably, release module 50 is for object format files in stream media or play list file are carried out to http response encapsulation, and is distributed to playback terminal.
Emphasis of the present invention is only on memory device, to preserve a media file copy, and the support that can provide multiple stream media protocol to play, and can effectively reduce netcast delay.Of the present inventionly turn in real time packing service, work in http server inside.The present invention can effectively reduce system storage consumption, and can support taking http protocol as basic progressive download video playback and adaptive stream media broadcasting simultaneously.The present invention proposes one and turns in real time encapsulation technology, in storage system, a kind of files in stream media of code check is only preserved to a kind of selected source format, reaches the object of saving storage, by turning in real time encapsulation, supports HTTP adaptive stream media agreement to play.The method is different from real-time transcoding, does not need files in stream media to decode and encode, only need do once conversion to encapsulation format, and transcoding amount of calculation will be lacked much relatively, can not bring playout-delay.
Fig. 2 is the structural representation that the present invention is preferably based on the Internet video-on-demand system that turns in real time encapsulation, and described Internet video-on-demand system 100 is supported to play or progressive download video playback based on the adaptive stream media of http protocol.Described Internet video-on-demand system 100 includes memory module 10, request receiving module 20, decapsulation module 30, turns package module 40, release module 50, judge module 60 and playlist generation module 70, wherein:
Memory module 10, for preserving selected source format files in stream media to a kind of files in stream media of code check.Preferably, described source format files in stream media is MP4 formatted file and/or MPEG2-TS formatted file.Be more preferably, source format files in stream media is stored in the Edge Server or video server of CDN.
Select the selected source format file of preserving on the Edge Server of video server or CDN, require to comprise: 1, calculate in real time simple; 2, the metadata that comprises stream description; 3, common format, has the relevant statistical tool that is created in.According to above three requirements, there are following two kinds of common formats to select, MP4 file format and MPEG2-TS file format.These two kinds of file formats respectively have superiority, play for progressive download, support that the terminal of MP4 file format is more, and the former is relatively better for the support of multi code Rate of Chinese character, and MPET2-TS file format can better be preserved user metadata, concerning taking TS section as basic HLS agreement, calculate in real time simpler.
Request receiving module 20, in the time receiving user's order request, analyzes user's order request corresponding source format files in stream media and object format.
Decapsulation module 30, for source format files in stream media is carried out to decapsulation, extracts corresponding source format audio/video flow.Preferably, decapsulation module 30 is for analyzing source format files in stream media, extract corresponding source format audio/video flow and media information thereof, media information comprises media file coded message, time started or sequence number, select time and/or video frame size etc.
Judge module 60, for judging that user's order request obtains object format files in stream media or play list file, transfers to turn package module 40 and carries out if obtain object format files in stream media, otherwise transfer to following playlist generation module 70 to carry out.
Playlist generation module 70, for generating corresponding play list file according to media information and pre-defined rule.According to selected streaming media playing agreement difference, playlist content is different.Apple HLS uses M3U8, and the MSS of Microsoft and ADOBE HAD use manifest file.In order to improve playing efficiency, reduce network delay, simultaneously because play list file is very little, generally can generate in advance.Due to the multi code Rate of Chinese character adaptive characteristic of HTTP self adaptation class stream media protocol, stream description information is generally generated by program publisher, and streaming media server can not be produced, and content playlist information is only provided, i.e. the play list file of certain code check.
Turn package module 40, for source format audio/video flow being packaged into object format files in stream media according to object format.Preferably, turn package module 40 for according to object format and media information, source format audio/video flow is packaged into object format files in stream media.
Release module 50, for being distributed to playback terminal by object format files in stream media and/or play list file.Preferably, release module 50 is for object format files in stream media or play list file are carried out to http response encapsulation, and is distributed to user's playback terminal.
Be more preferably, described Internet video-on-demand system also selectively includes encrypting module 80, described encrypting module 80, for the object format files in stream media that turns package module output is encrypted, is realized DRM (Digital Right Management, digital copyright management).
Described release module 50 is for being distributed to playback terminal by the object format files in stream media after encrypting.
Fig. 3 is the configuration diagram that Internet video-on-demand system of the present invention is applied in buffer memory CDN system.Internet video-on-demand system 100 is applied to and turns in real time package server, for a CDN who has caching system, turns in real time package server and is deployed in a CDN rear end.The request receiving module 20 of Internet video-on-demand system 100 is in the time receiving user's order request, if there is not user's order request corresponding source format files in stream media or play list file in the first Edge Server of a CDN, the first Edge Server is obtained source format files in stream media or play list file and is buffered in caching system from turning in real time package server by Hui Yuan, then transfers to decapsulation module 30 to carry out.If the first Edge Server of a CDN exists source format files in stream media corresponding to user's order request, directly transfer to decapsulation module 30 to carry out.
Fig. 4 is that Internet video-on-demand system of the present invention is applied in the configuration diagram without buffer memory CDN system.Internet video-on-demand system 100 is applied to and turns in real time package server, for the 2nd CDN without caching system, turns in real time on the second Edge Server that package server is deployed in the 2nd CDN.The request receiving module 20 of Internet video-on-demand system 100 is in the time receiving user's order request, and the second Edge Server is at source format files in stream media corresponding to book server storage system inquiring user order request, and transfers to decapsulation module 30 to carry out.For example, when user initiates order request, Edge Server is found MP4 file in book server storage system, and turns and be packaged into MPEG-TS section service is provided.
The present invention turns in real time encapsulation and compares pre existing to generate the advantage of video file of multiple format as follows:
1, save storage: in the time that multiple HTTP stream media format is supported, each stream media format must be preserved independently and to copy in storage system, correspondingly bring great storage overhead.Turn in real time encapsulation technology and use, only need in storage system, preserve a kind of selected source format file to the file of each code check.Particularly, in the CDN system without buffer memory, only need in Edge Server, preserve a content copy, will reduce the storage overhead greatly.
2, better protocol extension: in the time need supporting new HTTP stream media protocol, do not need All Files encapsulate again or recode, only need increase on http server and turn accordingly package module.
3, better CDN supports: no matter whether CDN (Content Delivery Network, content delivery network) system supports content caching, turns in real time encapsulation technology and all can finely support.For the CDN system of supporting buffer memory, can increase and turn in real time package server as source server in CDN rear end, enter CDN system through the content turning after encapsulation, can make CDN obtain contents distribution ability more efficiently.To the CDN system without buffer memory, can on CDN Edge Server, preserve selected source format file, and increase and turn in real time package module on Edge Server.
4, DRM supports: due to the clean culture characteristic of HTTP stream media protocol, DRM can be integrated into and turn in real time in packing service, dynamic encryption request content.
5, without real-time transcoding, can not bring playout-delay: be different from real-time transcoding, do not need files in stream media to decode and encode, only need do once conversion to encapsulation format, transcoding amount of calculation will be lacked much relatively, can not bring playout-delay.
Fig. 5 is the flow chart that the present invention is based on the internet video order method that turns in real time encapsulation, and internet video order method is supported to play or progressive download video playback based on the adaptive stream media of http protocol.It can be realized by Internet video-on-demand system 100 as shown in Figure 1 or 2, comprises that 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.Preferably, source format files in stream media is MP4 formatted file and/or MPEG2-TS formatted file.
Step S502, request receiving step, in the time receiving user's order request, analyzes user's order request corresponding source format files in stream media and object format.
Step S503, decapsulation step, carries out decapsulation to source format files in stream media, extracts corresponding source format audio/video flow.This step preferably, is analyzed source format files in stream media, extracts corresponding source format audio/video flow and media information thereof, and media information comprises media file coded message, time started or sequence number, select time and/or video frame size.
Step S504, turns encapsulation step, according to object format, source format audio/video flow is packaged into object format files in stream media.This step preferably, according to object format and media information, is packaged into object format files in stream media by source format audio/video flow.According to selected streaming media playing agreement difference, then packaged media file format has difference.For example, apple HLS adopts MPEG2TS file format, and the MSS of Microsoft and ADOBE HAD adopt MP4 file format.
Step S505, issuing steps, is distributed to playback terminal by object format files in stream media.Preferably, object format files in stream media or play list file are carried out to http response encapsulation, and be distributed to playback terminal.
Fig. 6 is the flow chart that the present invention is preferably based on the internet video order method that turns in real time encapsulation, internet video order method is supported to play or progressive download video playback based on the adaptive stream media of http protocol, it can be realized by Internet video-on-demand system 100 as shown in Figure 2, comprises that 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.Preferably, source format files in stream media is MP4 formatted file and/or MPEG2-TS formatted file.
Select the selected source format file of preserving on the Edge Server of video server or CDN, require to comprise: 1, calculate in real time simple; 2, the metadata that comprises stream description; 3, common format, has the relevant statistical tool that is created in.According to above three requirements, there are following two kinds of common formats to select, MP4 file format and MPEG2-TS file format.These two kinds of file formats respectively have superiority, play for progressive download, support that the terminal of MP4 file format is more, and the former is relatively better for the support of multi code Rate of Chinese character, and MPET2-TS file format can better be preserved user metadata, concerning taking TS section as basic HLS agreement, calculate in real time simpler.
Step S602, request receiving step, in the time receiving user's order request, analyzes user's order request corresponding source format files in stream media and object format.
Step S603, decapsulation step, carries out decapsulation to source format files in stream media, extracts corresponding source format audio/video flow.This step preferably, is analyzed source format files in stream media, extracts corresponding source format audio/video flow and media information thereof, and media information comprises media file coded message, time started or sequence number, select time and/or video frame size.
Step S604, determining step, judges that user's order request obtains object format files in stream media or play list file, carries out and turns encapsulation step S605 if obtain object format files in stream media, generates step S607 otherwise carry out following playlist.
Step S605, turns encapsulation step, according to object format, source format audio/video flow is packaged into object format files in stream media.This step preferably, according to object format and media information, is packaged into object format files in stream media by source format audio/video flow.
Step S606, encrypting step, is encrypted object format files in stream media.
Step S607, playlist generates step, generates corresponding play list file according to media information and pre-defined rule.According to selected streaming media playing agreement difference, playlist content is different.Apple HLS uses M3U8, and the MSS of Microsoft and ADOBE HAD use manifest file.In order to improve playing efficiency, reduce network delay, simultaneously because play list file is very little, generally can generate in advance.Due to the multi code Rate of Chinese character adaptive characteristic of HTTP self adaptation class stream media protocol, stream description information is generally generated by program publisher, and streaming media server can not be produced, and content playlist information is only provided, i.e. the play list file of certain code check.
Step S608, issuing steps, is distributed to playback terminal by object format files in stream media or play list file after encrypting.
In an embodiment of the present invention, internet video order method is applied to and turns in real time package server, for the first content distributing network that has caching system, turns in real time package server and is deployed in first content distributing network rear end.Described request receiving step S502 or S602 further comprise:
In the time receiving user's order request, if there is not source format files in stream media corresponding to user's order request in the first Edge Server of first content distributing network, the first Edge Server is obtained source format files in stream media and is buffered in caching system from turning in real time package server by Hui Yuan, then carries out decapsulation step.If the first Edge Server of first content distributing network exists source format files in stream media corresponding to user's order request, directly carry out decapsulation step.
In another embodiment of the present invention, internet video order method is applied to and turns in real time package server, for the second content distributing network without caching system, turns in real time on the second Edge Server that package server is deployed in second content distributing network.Described request receiving step S502 or S602 further comprise:
In the time receiving user's order request, the second Edge Server is at source format files in stream media corresponding to book server storage system inquiring user order request, and carries out decapsulation step.
With a business application, specific embodiment of the invention scheme is described below.In this application, for support MP4 progressive download to play and HLS broadcasting simultaneously, source format file adopts MP4, turns package server and realizes the format conversion of the section from MP4 file to TS and export http response, specifically comprises the steps:
1, the HTTP module of server receives after the order request of user's proposition, the request URL (Uniform Resoure Locator: URL(uniform resource locator)) of analysis user, from URL, obtain broadcast information, comprise source format (MP4) filename, section time started or section start sequence number, object format file type (TS), optional play list file type.
2, decapsulation module is analyzed source format file (MP4), extracts media information, comprises media file coded message, duration and video frame size, time started, whether key frame, the information such as starting position in MP4 file.
3, object format file (TS section) or play list file are obtained in judgement request, and take corresponding step to be for further processing.
4, according to user ask to cut into slices time started or sequence number, the audio/video frames in package module select time and duration is also packaged into MPEG-TS file.
5, the media information that optional playlist module is obtained according to step 2, and generate play list file according to certain rule.
6, according to user's request, MPEG-TS section content is encrypted, encrypting module obtains encryption key, and carries out AES (Advanced Encryption Standard, Advanced Encryption Standard) and encrypt.
7, HTTP service module carries out http response encapsulation to the content generating, and sends to user.
In sum, the present invention only preserves a kind of selected source format files in stream media to a kind of files in stream media of code check in storage system, in the time receiving user's order request, analyze user's order request corresponding source format files in stream media and object format, source format files in stream media is carried out to deblocking and dress up source format audio/video flow, then be distributed to user after the circulation of source format audio frequency and video is distributed into object format files in stream media.Whereby, the present invention turns encapsulation technology by real-time video, in storage system, a kind of files in stream media of code check is only preserved to a kind of selected source format files in stream media, can greatly reduce storage overhead; And different from real-time transcoding technology, the present invention does not need files in stream media to decode and encode, and only need do once conversion to encapsulation format, the amount of calculation of transcoding will be lacked much relatively, can not bring playout-delay.The present invention supports taking http protocol as basic progressive download video playback simultaneously and adaptive stream media is play.
Certainly; the present invention also can have other various embodiments; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art are when making according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (20)

1. the internet video order method based on turning in real time encapsulation, is characterized in that, includes:
Storing step, preserves selected source format files in stream media to a kind of files in stream media of code check;
Request receiving step, in the time receiving user's order request, analyzes described user's order request corresponding described source format files in stream media and object format;
Decapsulation step, carries out decapsulation to described source format files in stream media, extracts corresponding source format audio/video flow;
Turn encapsulation step, according to described object format, described source format audio/video flow is packaged into object format files in stream media;
Issuing steps, is distributed to playback terminal by described object format files in stream media.
2. internet video order method according to claim 1, is characterized in that, described source format files in stream media is MP4 formatted file and/or MPEG2-TS formatted file.
3. internet video order method according to claim 1, is characterized in that, described decapsulation step further comprises:
Described source format files in stream media is analyzed, extracted corresponding described source format audio/video flow and media information thereof, described media information comprises media file coded message, time started or sequence number, select time and/or video frame size;
The described encapsulation step that turns further comprises:
According to described object format and described media information, described source format audio/video flow is packaged into described object format files in stream media.
4. internet video order method according to claim 3, is characterized in that, after described decapsulation step, also comprises:
Determining step, judges that described user's order request obtains described object format files in stream media or play list file, turns encapsulation step if obtain described object format files in stream media described in carrying out, and generates step otherwise carry out following playlist;
Playlist generates step, generates corresponding described play list file according to described media information and pre-defined rule;
Described issuing steps comprises:
Described play list file is distributed to playback terminal.
5. internet video order method according to claim 4, is characterized in that, described issuing steps further comprises:
Described object format files in stream media or described play list file are carried out to http response encapsulation, and be distributed to described playback terminal.
6. internet video order method according to claim 1, is characterized in that, described in turn after encapsulation step and described issuing steps before also comprise:
Encrypting step, is encrypted described object format files in stream media;
Described issuing steps further comprises:
Described object format files in stream media after encrypting is distributed to playback terminal.
7. internet video order method according to claim 1, is characterized in that, described internet video order method is supported to play or progressive download video playback based on the adaptive stream media of http protocol.
8. according to the internet video order method described in claim 1~7 any one, it is characterized in that, described source format files in stream media is stored in the Edge Server or video server of content distributing network.
9. internet video order method according to claim 8, it is characterized in that, described internet video order method is applied to and turns in real time package server, for the first content distributing network that has caching system, the described package server that turns is in real time deployed in described first content distributing network rear end;
Described request receiving step further comprises:
In the time receiving described user's order request, if there is not described source format files in stream media corresponding to described user's order request in the first Edge Server of described first content distributing network, described the first Edge Server is obtained described source format files in stream media and is buffered in described caching system from the described package server that turns in real time by Hui Yuan, then carries out described decapsulation step; If described first Edge Server of described first content distributing network exists described source format files in stream media corresponding to described user's order request, directly carry out described decapsulation step.
10. internet video order method according to claim 8, it is characterized in that, described internet video order method is applied to and turns in real time package server, for the second content distributing network without caching system, described turning in real time on the second Edge Server that package server is deployed in described second content distributing network;
Described request receiving step further comprises:
In the time receiving described user's order request, described the second Edge Server is inquired about described source format files in stream media corresponding to described user's order request in book server storage system, and carries out described decapsulation step.
11. 1 kinds of the Internet Internet video-on-demand systems based on turning in real time encapsulation, is characterized in that, include:
Memory module, for preserving selected source format files in stream media to a kind of files in stream media of code check;
Request receiving module, in the time receiving user's order request, analyzes described user's order request corresponding described source format files in stream media and object format;
Decapsulation module, for described source format files in stream media is carried out to decapsulation, extracts corresponding source format audio/video flow;
Turn package module, for described source format audio/video flow being packaged into object format files in stream media according to described object format;
Release module, for being distributed to playback terminal by described object format files in stream media.
12. the Internet according to claim 11 Internet video-on-demand systems, is characterized in that, described source format files in stream media is MP4 formatted file and/or MPEG2-TS formatted file.
13. the Internet according to claim 11 Internet video-on-demand systems, it is characterized in that, described decapsulation module is for analyzing described source format files in stream media, extract corresponding described source format audio/video flow and media information thereof, described media information comprises media file coded message, time started or sequence number, select time and/or video frame size;
The described package module that turns, for according to described object format and described media information, is packaged into described object format files in stream media by described source format audio/video flow.
14. the Internet according to claim 13 Internet video-on-demand systems, is characterized in that, also comprise:
Judge module, be used for judging that described user's order request obtains described object format files in stream media or play list file, turn package module described in transferring to and carry out if obtain described object format files in stream media, otherwise transfer to following playlist generation module to carry out;
Playlist generation module, for generating corresponding described play list file according to described media information and pre-defined rule;
Described release module, for being distributed to playback terminal by described play list file.
15. the Internet according to claim 14 Internet video-on-demand systems, is characterized in that, described release module is used for described object format files in stream media or described play list file to carry out http response encapsulation, and is distributed to described playback terminal.
16. the Internet according to claim 11 Internet video-on-demand systems, is characterized in that, also comprise:
Encrypting module, for being encrypted the described described object format files in stream media that turns package module output;
Described release module is for being distributed to playback terminal by the described object format files in stream media after encrypting.
17. the Internet according to claim 11 Internet video-on-demand systems, is characterized in that, described the Internet Internet video-on-demand system is supported to play or progressive download video playback based on the adaptive stream media of http protocol.
18. according to the Internet Internet video-on-demand system described in claim 11~17 any one, it is characterized in that, described source format files in stream media is stored in the Edge Server or video server of content distributing network.
19. the Internet according to claim 18 Internet video-on-demand systems, it is characterized in that, described the Internet Internet video-on-demand system is applied to and turns in real time package server, for the first content distributing network that has caching system, the described package server that turns is in real time deployed in described first content distributing network rear end;
Described request receiver module is in the time receiving described user's order request, if there is not described source format files in stream media corresponding to described user's order request in the first Edge Server of described first content distributing network, described the first Edge Server is obtained described source format files in stream media and is buffered in described caching system from the described package server that turns in real time by Hui Yuan, then transfers to described decapsulation module to carry out; If described first Edge Server of described first content distributing network exists described source format files in stream media corresponding to described user's order request, directly transfer to described decapsulation module to carry out.
20. the Internet according to claim 18 Internet video-on-demand systems, it is characterized in that, described the Internet Internet video-on-demand system is applied to and turns in real time package server, for the second content distributing network without caching system, described turning in real time on the second Edge Server that package server is deployed in described second content distributing network;
Described request receiver module is in the time receiving described user's order request, and described the second Edge Server is inquired about described source format files in stream media corresponding to described user's order request in book server storage system, and transfers to described decapsulation module to carry out.
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 true CN103957469A (en) 2014-07-30
CN103957469B 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)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202356A (en) * 2014-08-07 2014-12-10 西安交通大学 A video file deploying method of a video cloud on-demand system based on a multi-code-rate version
CN104333765A (en) * 2014-10-23 2015-02-04 无锡天脉聚源传媒科技有限公司 Processing method and device of video live streams
CN104581228A (en) * 2015-01-06 2015-04-29 南京爱布谷网络科技有限公司 Bandwidth self-adaptation streaming media system serving various terminals
CN105872572A (en) * 2015-12-14 2016-08-17 乐视云计算有限公司 Live broadcast video processing method and device
CN106162377A (en) * 2015-04-08 2016-11-23 中国移动通信集团公司 The conversion method of adaptive stream media technology, device, BM-SC and terminal
CN106792271A (en) * 2016-12-30 2017-05-31 中广热点云科技有限公司 The system and method for document presentation association in adaptive stream media
CN108271039A (en) * 2016-12-30 2018-07-10 中兴通讯股份有限公司 A kind of document sending method and device
CN109963199A (en) * 2019-04-23 2019-07-02 中国联合网络通信集团有限公司 Content distributing network and its distribution method
CN110213197A (en) * 2018-02-28 2019-09-06 北京京东尚科信息技术有限公司 Audio file tune listens method and system
CN110225399A (en) * 2019-06-19 2019-09-10 深圳市共进电子股份有限公司 Streaming Media processing method, device, computer equipment and storage medium
CN110753259A (en) * 2019-11-15 2020-02-04 北京字节跳动网络技术有限公司 Video data processing method and device, electronic equipment and computer readable medium
CN112449212A (en) * 2019-08-28 2021-03-05 杭州海康威视系统技术有限公司 Audio and video code stream processing method and device and control equipment
CN113497952A (en) * 2021-05-12 2021-10-12 北京阳光云视科技有限公司 MP4 file real-time streaming gateway control system and control flow
CN113824971A (en) * 2020-06-18 2021-12-21 中央广播电视总台 Three-dimensional sound live broadcast stream scheduling and distributing method and system
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

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202356A (en) * 2014-08-07 2014-12-10 西安交通大学 A video file deploying method of a video cloud on-demand system based on a multi-code-rate version
CN104333765A (en) * 2014-10-23 2015-02-04 无锡天脉聚源传媒科技有限公司 Processing method and device of video live streams
CN104581228A (en) * 2015-01-06 2015-04-29 南京爱布谷网络科技有限公司 Bandwidth self-adaptation streaming media system serving various terminals
CN106162377A (en) * 2015-04-08 2016-11-23 中国移动通信集团公司 The conversion method of adaptive stream media technology, device, BM-SC and terminal
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
CN106792271A (en) * 2016-12-30 2017-05-31 中广热点云科技有限公司 The system and method for document presentation association in adaptive stream media
CN108271039A (en) * 2016-12-30 2018-07-10 中兴通讯股份有限公司 A kind of document sending method and device
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
CN110225399A (en) * 2019-06-19 2019-09-10 深圳市共进电子股份有限公司 Streaming Media processing method, device, computer equipment and storage medium
CN110225399B (en) * 2019-06-19 2021-11-23 深圳市共进电子股份有限公司 Streaming media processing method and device, computer equipment and storage medium
CN112449212A (en) * 2019-08-28 2021-03-05 杭州海康威视系统技术有限公司 Audio and video code stream processing method and device and control equipment
CN112449212B (en) * 2019-08-28 2022-11-04 杭州海康威视系统技术有限公司 Audio and video code stream processing method and device and control equipment
CN110753259A (en) * 2019-11-15 2020-02-04 北京字节跳动网络技术有限公司 Video data processing method and device, electronic equipment and computer readable medium
WO2021093608A1 (en) * 2019-11-15 2021-05-20 北京字节跳动网络技术有限公司 Method and apparatus for video data processing, electronic device, 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

Also Published As

Publication number Publication date
CN103957469B (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN103957469A (en) Internet video on demand method and system based on real-time packaging switching
US10560726B2 (en) System and method for delivery and caching of personalized media streaming content
US10698864B2 (en) Auxiliary manifest file to provide timed metadata
US10382801B2 (en) Transmission apparatus, transmission method, reception apparatus, and reception method
WO2017101369A1 (en) Live video transcoding method and apparatus
CN104796796B (en) Improve the fault-tolerant method of the HLS streaming players of Android platform
US20200336526A1 (en) Reception device, reception method, transmission device, and transmission method for distributing signaling information
US11831700B2 (en) Embedding MQTT messages in media streams
US11601525B2 (en) Apparatus and methods for content access, retrieval, and delivery in a content distribution network
KR102137858B1 (en) Transmission device, transmission method, reception device, reception method, and program
JP2022524073A (en) Methods and equipment for dynamic adaptive streaming with HTTP
US10750248B1 (en) Method and apparatus for server-side content delivery network switching
Timmerer et al. Over-the-top content delivery: State of the art and challenges ahead
KR102373195B1 (en) Receiving device, transmission device, data communication method, and data processing method
US11876851B2 (en) Synchronizing independent media and data streams using media stream synchronization points
CN102378066A (en) Method and system for realizing low-bit rate and high-definition video on demand
CN102244813A (en) Video playing method and internet television terminal applying same
CN103796035A (en) Method for processing segmented programs, server and client device
US20170155968A1 (en) Content supply apparatus, content supply method, program terminal apparatus, and content supply system
CA2925455C (en) Content supplying apparatus, content supplying method, program, terminal device, and content supplying system
CA3126585A1 (en) Video content processing systems and methods
CN105744309A (en) Method, device and system for generating and playing, and terminal
US20230008021A1 (en) Synchronizing independent media and data streams using media stream synchronization points
WO2023014783A1 (en) Synchronizing independent media and data streams using media stream synchronization points
Kim et al. Introducing a Design of a Product Creation System for IPTV Systems

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