CN105049876A - Real-time trans-coding-based method and device for realizing time shift - Google Patents

Real-time trans-coding-based method and device for realizing time shift Download PDF

Info

Publication number
CN105049876A
CN105049876A CN201510504599.7A CN201510504599A CN105049876A CN 105049876 A CN105049876 A CN 105049876A CN 201510504599 A CN201510504599 A CN 201510504599A CN 105049876 A CN105049876 A CN 105049876A
Authority
CN
China
Prior art keywords
video
time
terminal
timeslice
transcoding
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
CN201510504599.7A
Other languages
Chinese (zh)
Other versions
CN105049876B (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.)
SHENZHEN LUTONG NETWORK TECHNOLOGIES Co Ltd
Original Assignee
SHENZHEN LUTONG NETWORK TECHNOLOGIES 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 SHENZHEN LUTONG NETWORK TECHNOLOGIES Co Ltd filed Critical SHENZHEN LUTONG NETWORK TECHNOLOGIES Co Ltd
Priority to CN201510504599.7A priority Critical patent/CN105049876B/en
Publication of CN105049876A publication Critical patent/CN105049876A/en
Application granted granted Critical
Publication of CN105049876B publication Critical patent/CN105049876B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • H04N21/234309Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4 or from Quicktime to Realvideo
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • H04N21/23106Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion involving caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks

Abstract

The invention discloses a real-time trans-coding-based method and a real-time trans-coding-based device for realizing time shift. The method comprises the steps as follows: receiving a time slice of a video which needs to perform time shift and which is transmitted by a terminal; judging whether there is an original live video corresponding to the time slice in a cached video source; performing real-time trans-coding to the original live video corresponding to the time slice in the cached video source if there is the original live video corresponding to the time slice in the cached video source, and transcoding as a terminal video which is consistent with a video coding format of the terminal and transmitting the transcoded terminal video to the terminal; searching the original live video corresponding to the time slice in a slice video source if there is no original live video corresponding to the time slice in the cached video source, and performing real-time trans-coding to the original live video, transcoding as a terminal video which is consistent with the video coding format of the terminal and transmitting the transcoded terminal video to the terminal. The method of the invention could achieve the direct looking-back of the video live content without deploying a plurality of storage components to reduce the cost and save the storage space.

Description

A kind of method and device realizing time shift based on real-time transcoding
Technical field
The present invention relates to net cast technical field, particularly relate to a kind of method and the device that realize time shift based on real-time transcoding.
Background technology
Time shift refers to that user is when watching programme televised live, and midway can be suspended, and can continue to watch from time-out later, in order to avoid miss some important plot.Technically, when suspending request, Play Server gets off section directory, when continuing to play, then adopts unicast fashion to replay the program under record.General, time shifting of television adopts IPTV (InteractivePersonalityTV, IPTV) program request time shift manner, the realization of this kind of time-moving television is live telecast while, stored replica is in service end, the TV programme apportion display that electric program menu will be able to store according to the program log of each channel preset, after user is by the TV programme of electric program menu program request some periods, system can be play by quick position to corresponding media file time point.F.F. can be carried out arbitrarily, fall back, suspend.Its service end program storage mode is document storage mode, adopts the storage mode based on file, and there is the file preserved on live limit, limit excessive, such as: a road direct broadcast band of 2Mpbs code check, preserve one week, program size reaches tens GB.
Time video shift shown by different video terminals all needs to carry out video code conversion, video code conversion refers to and converts the video code flow of compressed encoding to another video code flow, to adapt to the different network bandwidths, different terminal processing capacity and different user's requests.Transcoding is one in essence and first decodes, the process of re-encoding, and the code stream before and after therefore changing may follow identical video encoding standard, also may not follow identical video encoding standard.The demand of transcoding can be divided into three kinds: the conversion between different video form, such as, forward to H.264 from MPEG-2 or MPEG-4; The change of content delivery speed, changes the demand that bit rate meets heterogeneous networks bandwidth or device plays speed; The change of definition, transfers the definition that SD is even lower to by HD video.
In the implementation of the program request time shift of above-mentioned time shifting of television, for dissimilar video terminal, required resolution, frame per second, code check is different, if need to realize time shift at different video terminals, service end is necessary for the physical video media file that often kind of different video terminal keeps a corresponding with the video code model of this video terminal, namely can carry out in terminal the video file play after former video source presents carries out transcoding, and often kind of different video source all needs the video file after the multiple transcoding of respective stored respectively, the video terminal that these video files are corresponding different, when needing time shift, directly these video files are sent to corresponding video terminal, the capacity of such video file that will store is very huge.The program can cause a large amount of video data redundancies, needs a large amount of memory spaces, and will need to dispose the corresponding component much with memory function, cost is high, and wastes unnecessary memory space.
Summary of the invention
The object of this invention is to provide a kind of method and the device that realize time shift based on real-time transcoding, directly can review to realize net cast content, not need to dispose numerous memory unit, reduce costs, save memory space.
For solving the problems of the technologies described above, the invention provides a kind of method realizing time shift based on real-time transcoding, the method comprises:
The timeslice needing the video carrying out time shift that receiving terminal sends;
Judge in buffered video source, whether to there is the original live video corresponding with described timeslice;
If so, original live video corresponding with described timeslice in described buffered video source is carried out real-time transcoding, be transcoded into the terminal video consistent with the video code model of described terminal, the terminal video after transcoding is sent to described terminal;
If not, the original live video corresponding with described timeslice is found out in burst video source, real-time transcoding is carried out to described original live video, is transcoded into the video consistent with the video code model of described terminal, the terminal video after transcoding is sent to described terminal.
Preferably, describedly judge whether there is the original live video corresponding with described timeslice in buffered video source, comprising:
The relative time of described timeslice is converted to absolute time;
Judge described absolute time whether in the time range in buffered video source;
If so, determine to there is the original live video corresponding with described timeslice in described buffered video source;
If not, determine there is not the original live video corresponding with described timeslice in described buffered video source.
Preferably, described original live video corresponding with described timeslice in described buffered video source is carried out real-time transcoding, is transcoded into the video consistent with the video code model of described terminal, comprises:
The time location at described timeslice place is searched in described buffered video source;
Transcoding is carried out to the video content on time location described in described buffered video source;
Video content transcoding on described time location is generated the terminal video consistent with the video code model of described terminal.
Preferably, describedly in burst video source, find out the original live video corresponding with described timeslice, comprising:
Obtain the initial time of described timeslice;
In burst video source, the time tag of the initial time of described timeslice and described burst video source is compared;
Find out the burst video of the initial time containing described timeslice in time tag.
Preferably, described real-time transcoding is carried out to described original live video, is transcoded into the terminal video consistent with the video code model of described terminal, comprises:
Trigger front end live TV stream and rebuild the new direct broadcast time-shift stream corresponding with described timeslice;
The original position of described timeslice is read in the time tag of described burst video;
The link of described direct broadcast time-shift stream is set up in described original position;
Link according to described direct broadcast time-shift stream obtains described direct broadcast time-shift stream;
Transcoding is carried out to described direct broadcast time-shift stream, generates the terminal video consistent with the video code model of described terminal.
The present invention also provides a kind of device realizing time shift based on real-time transcoding, and this device comprises:
Access module, for the timeslice needing the video carrying out time shift that receiving terminal sends;
Whether judge module, exist the original live video corresponding with described timeslice for judging in buffered video source;
Caching management module, for when there is the original live video corresponding with described timeslice in described buffered video source, original live video corresponding with described timeslice in described buffered video source is carried out real-time transcoding, be transcoded into the terminal video consistent with the video code model of described terminal, the terminal video after transcoding is sent to described terminal;
Management by district module, for when there is not the original live video corresponding with described timeslice in described buffered video source, the original live video corresponding with described timeslice is found out in burst video source, real-time transcoding is carried out to described original live video, be transcoded into the terminal video consistent with the video code model of described terminal, the terminal video after transcoding is sent to described terminal.
Preferably, described judge module comprises:
Time quantum, for being converted to absolute time by the relative time of described timeslice;
Buffer memory judging unit, for judging described absolute time whether in the time range in buffered video source; If so, determine to there is the original live video corresponding with described timeslice in described buffered video source; If not, determine there is not the original live video corresponding with described timeslice in described buffered video source.
Preferably, described caching management module comprises:
First transcoding units, for when there is the original live video corresponding with described timeslice in described buffered video source, the time location at described timeslice place is searched in described buffered video source, transcoding is carried out to the video content on time location described in described buffered video source, by the video content transcoding on described time location, generate the terminal video consistent with the video code model of described terminal;
First transmitting element, for being sent to described terminal by the terminal video after transcoding.
Preferably, described management by district module comprises:
Search unit, for when there is not the original live video corresponding with described timeslice in described buffered video source, obtain the initial time of described timeslice, and in burst video source, the time tag of the initial time of described timeslice and described burst video source is compared, find out the burst video of the initial time containing described timeslice in time tag;
Second transcoding units, for carrying out real-time transcoding to described video slicing, is transcoded into the terminal video consistent with the video code model of described terminal;
Second transmitting element, for being sent to described terminal by the terminal video after transcoding.
Preferably, described second transcoding units comprises:
Triggers unit, rebuilds the new direct broadcast time-shift stream corresponding with described timeslice for triggering front end live TV stream;
Read subelement, for reading the original position of described timeslice in the time tag of described burst video;
Link subelement, for setting up the link of described direct broadcast time-shift stream in described original position, and obtains described direct broadcast time-shift stream according to the link of described direct broadcast time-shift stream;
Transcoding subelement, for carrying out transcoding to described direct broadcast time-shift stream, generates the terminal video consistent with the video code model of described terminal.
A kind of method and device realizing time shift based on real-time transcoding provided by the present invention, the timeslice needing the video carrying out time shift that receiving terminal sends; Judge in buffered video source, whether to there is the original live video corresponding with described timeslice; If so, original live video corresponding with described timeslice in described buffered video source is carried out real-time transcoding, be transcoded into the terminal video consistent with the video code model of described terminal, the terminal video after transcoding is sent to described terminal; If not, the original live video corresponding with described timeslice is found out in burst video source, real-time transcoding is carried out to described original live video, is transcoded into the video consistent with the video code model of described terminal, the terminal video after transcoding is sent to described terminal.Visible, when user needs to review net cast content, utilize buffered video source or section video source just can obtain the original video needing to carry out the correspondence of the net cast content reviewed, i.e. original live video, corresponding different terminals, original live video only needs to preserve portion, like this by the mode of real-time transcoding, directly original live video real-time transcoding is converted to the video of the video code model required for terminal, be sent to terminal, user is allowed can directly to review net cast content, do not need just to store the video file corresponding with the video code model of terminal in advance, also need not be the video file that often kind of different video terminal keeps a corresponding with the video code model of this video terminal again, directly real-time transcoding is carried out to original live video, and then only need to preserve a original live video, do not need to dispose numerous parts for storing, reduce costs, and saving memory space.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
Fig. 1 is the flow chart realizing the method for time shift based on real-time transcoding provided by the invention.
Fig. 2 is the structural representation realizing the device of time shift based on real-time transcoding provided by the invention.
Embodiment
Core of the present invention is to provide a kind of method and the device that realize time shift based on real-time transcoding, directly can review, do not need to dispose numerous parts, reduce costs, and improve Consumer's Experience to realize net cast content.
The present invention program is understood better in order to make those skilled in the art person, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Please refer to Fig. 1, Fig. 1 is the flow chart realizing the method for time shift based on real-time transcoding provided by the invention, and the method comprises:
S101: the timeslice needing the video carrying out time shift that receiving terminal sends;
Wherein, timeslice is the timeslice needing the video carrying out time shift, can comprise the video time section needing to carry out time shift, containing initial time and deadline, such as " 11:20-11:40 ", represents and needs the time of the live video carrying out time shift to be from 11: 20 to 11: 40.Certain timeslice also can be the relative timeslice of current time, and such as " the first five minute ", if present moment is 11: 10, so " the first five minute " this timeslice showed to review live video from 11 o'clock 5 minutes these moment.
S102: judge whether there is the original live video corresponding with timeslice in buffered video source; If so, enter step S103, if not, enter step S104;
Wherein, if user has carry out net cast in terminal, the original video of the live video that user is viewed can stored in buffer memory, deposit position is different, but original video remains no change, namely original live video is still, it is the original live video not carrying out transcoding, video in buffered video source is the set of the original video of the live video that user has seen, if user thinks that the live video of playback is that user carries out playing the live video seen in terminal, the original video that the live video so seen is corresponding can be deposited in the buffer, these original live videos are also by time mark, need the original live video searching which section period can search according to the time.
Concrete, the relative time of timeslice is converted to absolute time, judges absolute time whether in the time range in buffered video source; If so, determine to there is the original live video corresponding with timeslice in buffered video source; If not, determine in buffered video source, to there is not the original live video corresponding with timeslice.Wherein, timeslice is the timeslice of current relative time, so the relative time of timeslice can be such as " the first five minute ", if present moment is 11: 10, so " the first five minute " this relative time is converted to absolute time, absolute time is 11: 5, from this moment, review live video
S103: original live video corresponding with timeslice in buffered video source is carried out real-time transcoding, is transcoded into the terminal video consistent with the video code model of terminal, the terminal video after transcoding is sent to terminal;
Wherein, if there is the original live video corresponding with timeslice in buffered video source, show that the video of terminal request time shift is the live video that user carries out in terminal playing, the original live video corresponding with described timeslice can be found in buffered video source like this.
Terminal needs the timeslice of carrying out the video of time shift of request to be time mark, show that terminal needs the temporal information of the video of time shift, the original video of the live video that user can be found in buffered video source to have crossed in terminal plays according to timeslice, i.e. original live video.
Concrete, the time location at described timeslice place is searched in buffered video source, transcoding is carried out to the video content on time location described in institute's buffered video source, video content transcoding on described time location is generated the terminal video consistent with the video code model of terminal, then the terminal video after transcoding is sent to described terminal.Wherein, the video content on time location described in institute's buffered video source is the original live video corresponding with timeslice.
Step S104: find out the original live video corresponding with timeslice in burst video source, real-time transcoding is carried out to original live video, be transcoded into the video consistent with the video code model of terminal, the terminal video after transcoding is sent to terminal.
Wherein, if there is not the original live video corresponding with timeslice in buffered video source, show that the video of terminal request time shift is not the live video that user carries out in terminal playing, the time range of namely asking the timeslice of the video of time shift to show does not belong to the time range of user at the live video of terminal, the video of such terminal request time shift is not the live video that user carries out in terminal playing, so the original video of live video is still in burst video source, the original live video corresponding with described timeslice can be found in burst video source.
Terminal needs the timeslice of carrying out the video of time shift of request to be time mark, show that terminal needs the temporal information of the video of time shift, the original video of the live video that user can be found in burst video source to have crossed in terminal plays according to timeslice, i.e. original live video.The burst video source video small fragment that to be exactly some be divided into according to isochronous surfaces is a kind of storage mode of isochronous surface, storage be original live video, namely do not carry out the live video that transcoding is crossed.
Concrete, the process finding out the original live video corresponding with timeslice from burst video source is specially: the initial time of acquisition time sheet, in burst video source, the time tag of the initial time of timeslice and burst video source is compared, find out the burst video of the initial time containing timeslice in time tag.Such as, timeslice is " 11:20-11:40 ", representing needs the time of the live video carrying out time shift to be from 11: 20 to 11: 40, so initial time is 11: 20, burst video source is all the set of the small video of time slicing, the free label of each burst video, from which section period to the burst video of which section period, or so that how long fragment is for benchmark, as being a time slicing with five minutes, time tag is 11:13-10:18 or 10:18-10:23 etc., so when timeslice is " 11:20-11:40 ", initial time is 11:20, as long as find the burst video in this moment containing 11:20 in the time tag of burst video, so what find be time tag is this burst video of 11:18-11:23, contain this time point of 11:20.Wherein, the burst video finding out the initial time containing timeslice in time tag is the original live video corresponding with timeslice.
Concrete, real-time transcoding is carried out to original live video, the process being transcoded into the terminal video consistent with the video code model of described terminal is specially: trigger front end live TV stream and rebuild the new direct broadcast time-shift stream corresponding with timeslice, the original position of timeslice is read in the time tag of burst video, set up the link of direct broadcast time-shift stream in original position, the link according to direct broadcast time-shift stream obtains direct broadcast time-shift stream; Transcoding is carried out to direct broadcast time-shift stream, generates the terminal video consistent with the video code model of terminal.Wherein, according to the burst video that timeslice finds, i.e. original live video, original live video in burst video source is the original live video not carrying out live video in terminal, this original live video is in the process of carrying out time shift, specifically need to set up new direct broadcast time-shift stream in the process of this original video being carried out to real-time transcoding, not so successfully cannot carry out time shift, the video that carry out transcoding is the new direct broadcast time-shift stream of described foundation.
It should be noted that, the executive agent of step S101-S104 is service end, and namely server is executive agent.
A kind of method realizing time shift based on real-time transcoding provided by the present invention, the timeslice needing the video carrying out time shift that receiving terminal sends; Judge in buffered video source, whether to there is the original live video corresponding with timeslice; If so, original live video corresponding with timeslice in buffered video source is carried out real-time transcoding, be transcoded into the terminal video consistent with the video code model of terminal, the terminal video after transcoding is sent to terminal; If not, in burst video source, find out the original live video corresponding with timeslice, real-time transcoding is carried out to original live video, be transcoded into the video consistent with the video code model of terminal, the terminal video after transcoding is sent to terminal.Visible, when user needs to review net cast content, utilize buffered video source or section video source just can obtain the original video needing to carry out the correspondence of the net cast content reviewed, i.e. original live video, corresponding different terminals, original live video only needs to preserve portion, like this by the mode of real-time transcoding, directly original live video real-time transcoding is converted to the video of the video code model required for terminal, be sent to terminal, user is allowed can directly to review net cast content, do not need just to store the video file corresponding with the video code model of terminal in advance, also need not be the video file that often kind of different video terminal keeps a corresponding with the video code model of this video terminal again, directly real-time transcoding is carried out to original live video, and then only need to preserve a original live video, do not need to dispose numerous parts for storing, reduce costs, and saving memory space.
Please refer to Fig. 2, Fig. 2 is the structural representation realizing the device of time shift based on real-time transcoding provided by the invention, and this device comprises:
Access module 11, for the timeslice needing the video carrying out time shift that receiving terminal sends;
Whether judge module 12, exist the original live video corresponding with timeslice for judging in buffered video source;
Caching management module 13, for when there is the original live video corresponding with timeslice in buffered video source, original live video corresponding with timeslice in buffered video source is carried out real-time transcoding, be transcoded into the terminal video consistent with the video code model of terminal, the terminal video after transcoding is sent to terminal;
Management by district module 14, for when there is not the original live video corresponding with timeslice in buffered video source, the original live video corresponding with timeslice is found out in burst video source, real-time transcoding is carried out to original live video, be transcoded into the terminal video consistent with the video code model of terminal, the terminal video after transcoding is sent to terminal.
Concrete, described judge module comprises:
Time quantum, for being converted to absolute time by the relative time of timeslice;
Buffer memory judging unit, for judging absolute time whether in the time range in buffered video source; If so, determine to there is the original live video corresponding with timeslice in buffered video source; If not, determine in buffered video source, to there is not the original live video corresponding with timeslice.
Described caching management module comprises:
First transcoding units, during for the original live video corresponding when life period sheet in buffered video source, the time location at timeslice place is searched in buffered video source, transcoding is carried out to the video content on time location in buffered video source, by the video content transcoding on time location, generate the terminal video consistent with the coded format of video terminal;
First transmitting element, for being sent to described terminal by the terminal video after transcoding.
Described management by district module comprises:
Search unit, for when there is not the original live video corresponding with timeslice in buffered video source, the initial time of acquisition time sheet, and in burst video source, the time tag of the initial time of timeslice and burst video source is compared, find out the video slicing of the initial time containing timeslice in time tag;
Second transcoding units, for carrying out real-time transcoding to video slicing, is transcoded into the terminal video consistent with the video code model of terminal;
Second transmitting element, for being sent to terminal by the terminal video after transcoding.
Described second transcoding units, comprising:
Triggers unit, rebuilds the new direct broadcast time-shift stream corresponding with timeslice for triggering front end live TV stream;
Read subelement, for reading the original position of timeslice in the time tag of video segment;
Link subelement, for setting up the link of direct broadcast time-shift stream in original position, and obtains direct broadcast time-shift stream according to the link of direct broadcast time-shift stream;
Transcoding subelement, for carrying out transcoding to direct broadcast time-shift stream, generates the terminal video consistent with the video code model of terminal.
A kind of device realizing time shift based on real-time transcoding provided by the present invention, the timeslice needing the video carrying out time shift that access module receiving terminal sends, judge module judges whether there is the original live video corresponding with timeslice in buffered video source, when there is the original live video corresponding with timeslice in buffered video source, original live video corresponding with timeslice in buffered video source is carried out real-time transcoding by caching management module, be transcoded into the terminal video consistent with the video code model of terminal, terminal video after transcoding is sent to terminal, when there is not the original live video corresponding with timeslice in buffered video source, management by district module finds out the original live video corresponding with timeslice in burst video source, real-time transcoding is carried out to original live video, be transcoded into the terminal video consistent with the video code model of terminal, terminal video after transcoding is sent to terminal.Visible, when user needs to review net cast content, utilize buffered video source or section video source just can obtain the original video needing to carry out the correspondence of the net cast content reviewed, i.e. original live video, corresponding different terminals, original live video only needs to preserve portion, like this by the mode of real-time transcoding, directly original live video real-time transcoding is converted to the video of the video code model required for terminal, be sent to terminal, user is allowed can directly to review net cast content, do not need just to store the video file corresponding with the video code model of terminal in advance, also need not be the video file that often kind of different video terminal keeps a corresponding with the video code model of this video terminal again, directly real-time transcoding is carried out to original live video, and then only need to preserve a original live video, do not need to dispose numerous parts for storing, reduce costs, and saving memory space.
A kind ofly the method for time shift is realized based on real-time transcoding and device is described in detail above to provided by the present invention.Apply specific case herein to set forth principle of the present invention and execution mode, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping.It should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention, can also carry out some improvement and modification to the present invention, these improve and modify and also fall in the protection range of the claims in the present invention.

Claims (10)

1. realize a method for time shift based on real-time transcoding, it is characterized in that, comprising:
The timeslice needing the video carrying out time shift that receiving terminal sends;
Judge in buffered video source, whether to there is the original live video corresponding with described timeslice;
If so, original live video corresponding with described timeslice in described buffered video source is carried out real-time transcoding, be transcoded into the terminal video consistent with the video code model of described terminal, the terminal video after transcoding is sent to described terminal;
If not, the original live video corresponding with described timeslice is found out in burst video source, real-time transcoding is carried out to described original live video, is transcoded into the video consistent with the video code model of described terminal, the terminal video after transcoding is sent to described terminal.
2. the method for claim 1, is characterized in that, describedly judges whether there is the original live video corresponding with described timeslice in buffered video source, comprising:
The relative time of described timeslice is converted to absolute time;
Judge described absolute time whether in the time range in buffered video source;
If so, determine to there is the original live video corresponding with described timeslice in described buffered video source;
If not, determine there is not the original live video corresponding with described timeslice in described buffered video source.
3. the method for claim 1, is characterized in that, described original live video corresponding with described timeslice in described buffered video source is carried out real-time transcoding, is transcoded into the video consistent with the video code model of described terminal, comprises:
The time location at described timeslice place is searched in described buffered video source;
Transcoding is carried out to the video content on time location described in described buffered video source;
Video content transcoding on described time location is generated the terminal video consistent with the video code model of described terminal.
4. the method for claim 1, is characterized in that, describedly in burst video source, finds out the original live video corresponding with described timeslice, comprising:
Obtain the initial time of described timeslice;
In burst video source, the time tag of the initial time of described timeslice and described burst video source is compared;
Find out the burst video of the initial time containing described timeslice in time tag.
5. method as claimed in claim 4, is characterized in that, describedly carries out real-time transcoding to described original live video, is transcoded into the terminal video consistent with the video code model of described terminal, comprises:
Trigger front end live TV stream and rebuild the new direct broadcast time-shift stream corresponding with described timeslice;
The original position of described timeslice is read in the time tag of described burst video;
The link of described direct broadcast time-shift stream is set up in described original position;
Link according to described direct broadcast time-shift stream obtains described direct broadcast time-shift stream;
Transcoding is carried out to described direct broadcast time-shift stream, generates the terminal video consistent with the video code model of described terminal.
6. realize a device for time shift based on real-time transcoding, it is characterized in that, comprising:
Access module, for the timeslice needing the video carrying out time shift that receiving terminal sends;
Whether judge module, exist the original live video corresponding with described timeslice for judging in buffered video source;
Caching management module, for when there is the original live video corresponding with described timeslice in described buffered video source, original live video corresponding with described timeslice in described buffered video source is carried out real-time transcoding, be transcoded into the terminal video consistent with the video code model of described terminal, the terminal video after transcoding is sent to described terminal;
Management by district module, for when there is not the original live video corresponding with described timeslice in described buffered video source, the original live video corresponding with described timeslice is found out in burst video source, real-time transcoding is carried out to described original live video, be transcoded into the terminal video consistent with the video code model of described terminal, the terminal video after transcoding is sent to described terminal.
7. device as claimed in claim 6, it is characterized in that, described judge module comprises:
Time quantum, for being converted to absolute time by the relative time of described timeslice;
Buffer memory judging unit, for judging described absolute time whether in the time range in buffered video source; If so, determine to there is the original live video corresponding with described timeslice in described buffered video source; If not, determine there is not the original live video corresponding with described timeslice in described buffered video source.
8. device as claimed in claim 6, it is characterized in that, described caching management module comprises:
First transcoding units, for when there is the original live video corresponding with described timeslice in described buffered video source, the time location at described timeslice place is searched in described buffered video source, transcoding is carried out to the video content on time location described in described buffered video source, by the video content transcoding on described time location, generate the terminal video consistent with the video code model of described terminal;
First transmitting element, for being sent to described terminal by the terminal video after transcoding.
9. device as claimed in claim 6, it is characterized in that, described management by district module comprises:
Search unit, for when there is not the original live video corresponding with described timeslice in described buffered video source, obtain the initial time of described timeslice, and in burst video source, the time tag of the initial time of described timeslice and described burst video source is compared, find out the burst video of the initial time containing described timeslice in time tag;
Second transcoding units, for carrying out real-time transcoding to described video slicing, is transcoded into the terminal video consistent with the video code model of described terminal;
Second transmitting element, for being sent to described terminal by the terminal video after transcoding.
10. device as claimed in claim 9, it is characterized in that, described second transcoding units comprises:
Triggers unit, rebuilds the new direct broadcast time-shift stream corresponding with described timeslice for triggering front end live TV stream;
Read subelement, for reading the original position of described timeslice in the time tag of described burst video;
Link subelement, for setting up the link of described direct broadcast time-shift stream in described original position, and obtains described direct broadcast time-shift stream according to the link of described direct broadcast time-shift stream;
Transcoding subelement, for carrying out transcoding to described direct broadcast time-shift stream, generates the terminal video consistent with the video code model of described terminal.
CN201510504599.7A 2015-08-17 2015-08-17 A kind of method and device that time shift is realized based on real-time transcoding Active CN105049876B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510504599.7A CN105049876B (en) 2015-08-17 2015-08-17 A kind of method and device that time shift is realized based on real-time transcoding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510504599.7A CN105049876B (en) 2015-08-17 2015-08-17 A kind of method and device that time shift is realized based on real-time transcoding

Publications (2)

Publication Number Publication Date
CN105049876A true CN105049876A (en) 2015-11-11
CN105049876B CN105049876B (en) 2018-03-16

Family

ID=54456003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510504599.7A Active CN105049876B (en) 2015-08-17 2015-08-17 A kind of method and device that time shift is realized based on real-time transcoding

Country Status (1)

Country Link
CN (1) CN105049876B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828107A (en) * 2016-03-30 2016-08-03 乐视控股(北京)有限公司 Live broadcast time delay method and apparatus
CN106961613A (en) * 2017-03-30 2017-07-18 上海七牛信息技术有限公司 A kind of streaming real-time transcoding order method and system
CN111182366A (en) * 2018-11-12 2020-05-19 玲珑视界科技(北京)有限公司 System and method for supporting multi-screen time shifting and review fusion production

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090033791A1 (en) * 2007-07-31 2009-02-05 Scientific-Atlanta, Inc. Video processing systems and methods
CN102572555A (en) * 2012-01-16 2012-07-11 深圳市同洲视讯传媒有限公司 Method and system for realizing live video playback at HTTP live streaming (HLS) client
CN102685554A (en) * 2012-05-24 2012-09-19 北京国双科技有限公司 Method and device for processing video play
CN103220587A (en) * 2013-03-22 2013-07-24 深圳市龙视传媒有限公司 Method and device for obtaining time shifting contents
CN104661041A (en) * 2013-11-25 2015-05-27 乐视网信息技术(北京)股份有限公司 Live broadcast time shift positioning method, server, terminal and communication system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090033791A1 (en) * 2007-07-31 2009-02-05 Scientific-Atlanta, Inc. Video processing systems and methods
CN102572555A (en) * 2012-01-16 2012-07-11 深圳市同洲视讯传媒有限公司 Method and system for realizing live video playback at HTTP live streaming (HLS) client
CN102685554A (en) * 2012-05-24 2012-09-19 北京国双科技有限公司 Method and device for processing video play
CN103220587A (en) * 2013-03-22 2013-07-24 深圳市龙视传媒有限公司 Method and device for obtaining time shifting contents
CN104661041A (en) * 2013-11-25 2015-05-27 乐视网信息技术(北京)股份有限公司 Live broadcast time shift positioning method, server, terminal and communication system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105828107A (en) * 2016-03-30 2016-08-03 乐视控股(北京)有限公司 Live broadcast time delay method and apparatus
CN106961613A (en) * 2017-03-30 2017-07-18 上海七牛信息技术有限公司 A kind of streaming real-time transcoding order method and system
CN111182366A (en) * 2018-11-12 2020-05-19 玲珑视界科技(北京)有限公司 System and method for supporting multi-screen time shifting and review fusion production

Also Published As

Publication number Publication date
CN105049876B (en) 2018-03-16

Similar Documents

Publication Publication Date Title
US11743519B2 (en) Fragment server directed device fragment caching
CN100542255C (en) A kind of network TV monitoring system and method
US10277927B2 (en) Movie package file format
CN104469433A (en) Live video replay method and device
CN104243998A (en) Data processing method, data processing device and related servers
CN104754366A (en) Audio and video file live broadcasting method, device and system
CN112752115B (en) Live broadcast data transmission method, device, equipment and medium
CN102811373A (en) Method for carrying out video broadcast on Internet and mobile Internet by mobile terminal
CN104581406A (en) Network video recording and playback system and method
CN103329521A (en) Methods, apparatuses and computer program products for pausing video streaming content
CN104639900B (en) RTMP turns M3U8 video segment system and method
US11758200B2 (en) System and method for converting adaptive stream to downloadable media
CN101848367B (en) File-based video live webcasting method
CN105681827A (en) Poster generation method and system of live channels and relevant devices
CN105049876A (en) Real-time trans-coding-based method and device for realizing time shift
CN103929682A (en) Method and device for setting key frames in video live broadcast system
CN103561013A (en) Streaming media data distributing system
CN109040640A (en) A kind of distributed video storage-playback
CN114245080A (en) Network video monitoring system
CN105072456A (en) Hadoop-based ciphertext video flow processing method, device, server and system
US10271075B2 (en) Cloud encoding system
CN105187855A (en) Video-on-demand system based on Hadoop and Red5 and method
CN102724583A (en) Program recording method and system
CN116233504A (en) Live broadcast push flow method and device

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