CN105049876B - A kind of method and device that time shift is realized based on real-time transcoding - Google Patents

A kind of method and device that time shift is realized based on real-time transcoding Download PDF

Info

Publication number
CN105049876B
CN105049876B CN201510504599.7A CN201510504599A CN105049876B CN 105049876 B CN105049876 B CN 105049876B CN 201510504599 A CN201510504599 A CN 201510504599A CN 105049876 B CN105049876 B CN 105049876B
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.)
Active
Application number
CN201510504599.7A
Other languages
Chinese (zh)
Other versions
CN105049876A (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 or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream 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 or manipulating encoded video stream 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a kind of method and device that time shift is realized based on real-time transcoding, this method includes:What receiving terminal was sent needs to carry out the timeslice of the video of time shift;Judge to whether there is original live video corresponding with timeslice in buffered video source;If so, original live video corresponding with timeslice in buffered video source is carried out into real-time transcoding, the terminal video consistent with the video code model of terminal is transcoded into, the terminal video after transcoding is sent to terminal;If it is not, finding out original live video corresponding with timeslice in burst video source, real-time transcoding is carried out to original live video, the video consistent with the video code model of terminal is transcoded into, the terminal video after transcoding is sent to terminal.This method realizes that net cast content can be reviewed directly, it is not necessary to disposes numerous memory units, reduces cost, saves memory space.

Description

A kind of method and device that time shift is realized based on real-time transcoding
Technical field
The present invention relates to net cast technical field, more particularly to it is a kind of based on real-time transcoding realize time shift method and Device.
Background technology
Time shift refers to that user when watching programme televised live, can suspend halfway, can continue to watch later at pause, with The excessively some important plots of fault-avoidance.Technically, when suspending request, Play Server gets off section directory, is continuing to play When, then the program under record is replayed using unicast fashion.In general, time shifting of television use IPTV (Interactive Personality TV, IPTV) program request time shift manner, the realization of this kind of time-moving television is in the same of live telecast When, for stored replica in service end, electric program menu can be according to the program log of each channel set in advance by storage TV programme point row display, after TV programme of the user by electric program menu some period of program request, system can be quick Navigate on corresponding media file time point and play out.F.F., retroversion, pause can arbitrarily be carried out.Its service end program Storage mode is document storage mode, and using the storage mode based on file, it is excessive the file preserved when live to be present, example Such as:The direct broadcast band all the way of 2Mpbs code checks, is preserved one week, and program size is up to more than ten GB.
When video shift shown by different video terminals all needs to carry out video code conversion, and video code conversion refers to The video code flow of compressed coding is converted into another video code flow, to adapt to different network bandwidths, different terminal processes Ability and different user's requests.Transcoding is substantially one and first decodes, the process of re-encoding, thus change front and rear code stream can Identical video encoding standard can be followed, it is also possible to do not follow identical video encoding standard.The demand of transcoding can be divided into three Kind:Conversion between different video form, such as gone to H.264 from MPEG-2 or MPEG-4;The change of content transmission speed, changes Variable bit rate meets the needs of heterogeneous networks bandwidth or device plays speed;The change of definition, HD video is switched to mark Clear even lower definition.
It is required for different types of video terminal in the implementation of the program request time shift of above-mentioned time shifting of television Resolution ratio, frame per second, code check are different, if necessary to realize time shift in different video terminals, service end be necessary for it is every kind of not Same video terminal keeps a physical video media file corresponding with the video code model of the video terminal, i.e. original regards Frequency source this document has carried out the video file that can be played out in terminal after transcoding, and every kind of different video source all needs Distinguish the video file after the multiple transcodings of respective stored, these video files correspond to different video terminals, it is necessary to when During shifting, these video files are directly sent to the capacity for the video file to corresponding video terminal, so to be stored It is very huge.The program can cause substantial amounts of video data redundancy, it is necessary to which substantial amounts of memory space, just may require that many tools of deployment There is the corresponding component of store function, cost is high, and wastes unnecessary memory space.
The content of the invention
It is an object of the invention to provide a kind of method and device that time shift is realized based on real-time transcoding, to realize net cast Content can be reviewed directly, it is not necessary to dispose numerous memory units, reduce cost, save memory space.
In order to solve the above technical problems, the present invention provides a kind of method that time shift is realized based on real-time transcoding, this method bag Include:
What receiving terminal was sent needs to carry out the timeslice of the video of time shift;
Judge to whether there is original live video corresponding with the timeslice in buffered video source;
If so, original live video corresponding with the timeslice in the buffered video source is carried out into real-time transcoding, turn Code sends the terminal video after transcoding to the terminal into the terminal video consistent with the video code model of the terminal;
If it is not, original live video corresponding with the timeslice is found out in burst video source, to described original straight Broadcast video and carry out real-time transcoding, be transcoded into the video consistent with the video code model of the terminal, the terminal after transcoding is regarded Take place frequently and deliver to the terminal.
Preferably, it whether there is original live video corresponding with the timeslice in the judgement buffered video source, wrap Include:
The relative time of the timeslice is converted into absolute time;
Judge the absolute time whether in the time range in buffered video source;
If so, determine original live video corresponding with the timeslice in the buffered video source be present;
If it is not, determine that original live video corresponding with the timeslice is not present in the buffered video source.
Preferably, it is described to be turned original live video corresponding with the timeslice in the buffered video source in real time Code, is transcoded into the video consistent with the video code model of the terminal, including:
Time location where searching the timeslice in the buffered video source;
Transcoding is carried out to the video content described in the buffered video source on time location;
Video content transcoding on the time location is generated to the terminal consistent with the video code model of the terminal Video.
Preferably, it is described to find out original live video corresponding with the timeslice in burst video source, including:
Obtain the initial time of the timeslice;
The time tag of the initial time of the timeslice and the burst video source is compared in burst video source It is right;
Find out the burst video of the initial time containing the timeslice in time tag.
Preferably, it is described that real-time transcoding is carried out to the original live video, it is transcoded into the Video coding with the terminal The consistent terminal video of form, including:
Trigger front end live TV stream and rebuild new direct broadcast time-shift stream corresponding with the timeslice;
The original position of the timeslice is read in the time tag of the burst video;
The link of the direct broadcast time-shift stream is established in the original position;
Link according to the direct broadcast time-shift stream obtains the direct broadcast time-shift stream;
Transcoding, the generation terminal video consistent with the video code model of the terminal are carried out to the direct broadcast time-shift stream.
The present invention also provides a kind of device that time shift is realized based on real-time transcoding, and the device includes:
AM access module, the timeslice for needing to carry out the video of time shift sent for receiving terminal;
Judge module, for judging to whether there is original live video corresponding with the timeslice in buffered video source;
Caching management module, for when original live video corresponding with the timeslice in the buffered video source being present When, corresponding with timeslice original live video in the buffered video source is subjected to real-time transcoding, be transcoded into it is described The consistent terminal video of the video code model of terminal, the terminal video after transcoding is sent to the terminal;
Management by district module, for when being regarded in the buffered video source in the absence of original live corresponding with the timeslice During frequency, original live video corresponding with the timeslice is found out in burst video source, the original live video is entered Row real-time transcoding, the terminal video consistent with the video code model of the terminal is transcoded into, the terminal video after transcoding is sent out Deliver to the terminal.
Preferably, the judge module includes:
Time quantum, for the relative time of the timeslice to be converted into absolute time;
Judging unit is cached, for judging the absolute time whether in the time range in buffered video source;If so, really Original live video corresponding with the timeslice be present in the fixed buffered video source;If it is not, determine the buffered video source In original live video corresponding with the timeslice is not present.
Preferably, the caching management module includes:
First transcoding units, for when original live video corresponding with the timeslice in the buffered video source being present When, the time location where searching the timeslice in the buffered video source, to the time described in the buffered video source Video content on position carries out transcoding, by the video content transcoding on the time location, generation and the video of the terminal The consistent terminal video of coded format;
First transmitting element, for the terminal video after transcoding to be sent to the terminal.
Preferably, the management by district module includes:
Searching unit, for when original live video corresponding with the timeslice is not present in the buffered video source When, the initial time of the timeslice is obtained, and by the initial time of the timeslice and the burst in burst video source The time tag of video source is compared, and finds out the burst video of the initial time containing the timeslice in time tag;
Second transcoding units, for carrying out real-time transcoding to the video slicing, it is transcoded into and is compiled with the video of the terminal The consistent terminal video of code form;
Second transmitting element, for the terminal video after transcoding to be sent to the terminal.
Preferably, second transcoding units include:
Subelement is triggered, new direct broadcast time-shift stream corresponding with the timeslice is rebuild for triggering front end live TV stream;
Subelement is read, for reading the original position of the timeslice in the time tag of the burst video;
Subelement is linked, for establishing the link of the direct broadcast time-shift stream in the original position, and according to described live Shi Yiliu link obtains the direct broadcast time-shift stream;
Transcoding subelement, for carrying out transcoding, generation and the video code model of the terminal to the direct broadcast time-shift stream Consistent terminal video.
A kind of method and device that time shift is realized based on real-time transcoding provided by the present invention, the needs that receiving terminal is sent Carry out the timeslice of the video of time shift;Judge to regard with the presence or absence of original live corresponding with the timeslice in buffered video source Frequently;If so, corresponding with timeslice original live video in the buffered video source is carried out into real-time transcoding, be transcoded into The consistent terminal video of the video code model of the terminal, the terminal video after transcoding is sent to the terminal;If it is not, Original live video corresponding with the timeslice is found out in burst video source, the original live video is turned in real time Code, is transcoded into the video consistent with the video code model of the terminal, the terminal video after transcoding is sent to the terminal. It can be seen that when user needs to review net cast content, can just be obtained using buffered video source or section video source need into The corresponding original video for the net cast content that row is reviewed, i.e. original live video, corresponding different terminal, original live regard Frequency is only needed to preserve portion, and so by way of real-time transcoding, original live video real-time transcoding is directly converted to terminal The video of required video code model, send to terminal, allow user directly to review net cast content, it is not necessary to be pre- The video file corresponding with the video code model of terminal is just first stored, without being that every kind of different video terminal is protected again A video file corresponding with the video code model of the video terminal is held, directly original live video is turned in real time Code, and then only need to preserve a original live video, it is not necessary to numerous parts for being used to store are disposed, reduce cost, And save memory space.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is the flow chart of the method provided by the invention that time shift is realized based on real-time transcoding.
Fig. 2 is the structural representation of the device provided by the invention that time shift is realized based on real-time transcoding.
Embodiment
The core of the present invention is to provide a kind of method and device that time shift is realized based on real-time transcoding, to realize net cast Content can be reviewed directly, it is not necessary to dispose numerous parts, reduce cost, and improve Consumer's Experience.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
It refer to Fig. 1, Fig. 1 is the flow chart of the method provided by the invention that time shift is realized based on real-time transcoding, this method Including:
S101:What receiving terminal was sent needs to carry out the timeslice of the video of time shift;
Wherein, timeslice is the timeslice for needing to carry out the video of time shift, when can include needing to carry out the video of time shift Between section, containing initial time and deadline, such as " 11:20-11:40 ", represent to need the live video of progress time shift Time is from 11: 20 to 11: 40.Certain timeslice can also be the relative timeslice of current time, such as " first five minute ", If present moment be 11 points 10 minutes, then " first five minute " this timeslice shows to review since 11 points of 5 minutes this moment straight Broadcast video.
S102:Judge to whether there is original live video corresponding with timeslice in buffered video source;If so, into step S103, if it is not, into step S104;
Wherein, if user has carries out net cast in terminal, the original video for the live video that user watched can be deposited Enter in caching, deposit position is different, but original video is still not become, that is, is still original live video, is not enter The original live video of row transcoding, the video in buffered video source are the collection of the original video for the live video that user has seen Close, if user thinks that the live video of playback is that user plays out the live video seen in terminal, then seen Original video corresponding to live video can be deposited in the buffer, and these original live videos are also, it is necessary to look into by time mark Looking for the original live video of which section time can search according to the time.
Specifically, the relative time of timeslice is converted into absolute time, judge absolute time whether in buffered video source Time range in;If so, determine original live video corresponding with timeslice be present in buffered video source;If it is not, determine slow Deposit and original live video corresponding with timeslice is not present in video source.Wherein, timeslice is the timeslice of current relative time, So the relative time of timeslice can be such as " first five minute ", if present moment be 11 points 10 minutes, then " first five minute " This relative time is converted to absolute time, absolute time be 11 points 5 minutes, review live video since this moment,
S103:Original live video corresponding with timeslice in buffered video source is subjected to real-time transcoding, is transcoded into and whole The consistent terminal video of the video code model at end, the terminal video after transcoding is sent to terminal;
Wherein, if original live video corresponding with timeslice in buffered video source be present, terminal request time shift is shown Video be live video that user had played out in terminal, can so be found in buffered video source with it is described Original live video corresponding to timeslice.
The timeslice of the video for the progress time shift that terminal needs to ask is time mark, shows that terminal needs the video of time shift Temporal information, the original of the live video that user has crossed in terminal plays can be found in buffered video source according to timeslice Beginning video, i.e. original live video.
Specifically, the time location where the timeslice is searched in buffered video source, to institute in institute's buffered video source The video content stated on time location carries out transcoding, by the video content transcoding generation on the time location and the video of terminal The consistent terminal video of coded format, then the terminal video after transcoding is sent to the terminal.Wherein, institute's buffered video source Described in video content on time location be original live video corresponding with timeslice.
Step S104:Original live video corresponding with timeslice is found out in burst video source, original live is regarded Frequency carry out real-time transcoding, be transcoded into the video consistent with the video code model of terminal, by the terminal video after transcoding send to Terminal.
Wherein, if original live video corresponding with timeslice is not present in buffered video source, when showing terminal request The video of shifting is not the live video that user had played out in terminal, that is, asks the timeslice of the video of time shift to show Time range is not belonging to time range of the user in the live video of terminal, and the video of such terminal request time shift is not to use The live video that family had played out in terminal, then the original video of live video, can be with still in burst video source Original live video corresponding with the timeslice is found in burst video source.
The timeslice of the video for the progress time shift that terminal needs to ask is time mark, shows that terminal needs the video of time shift Temporal information, the original of the live video that user has crossed in terminal plays can be found in burst video source according to timeslice Beginning video, i.e. original live video.Burst video source is exactly the video small fragment that some are divided into according to isochronous surface, when being a kind of Between the storage mode cut into slices, storage is original live video, i.e., without the live video for carrying out transcoding and crossing.
Specifically, the process that original live video corresponding with timeslice is found out from burst video source is specially:Obtain The initial time of timeslice is taken, carries out the time tag of the initial time of timeslice and burst video source in burst video source Compare, find out the burst video of the initial time containing timeslice in time tag.For example, timeslice is " 11:20-11: 40 ", the time for representing to need to carry out the live video of time shift is from 11: 20 to 11: 40, then initial time is 11: 20, Burst video source is all the set of the small video of time slicing, each burst video having time label, from which section time to which The burst video of section time, or on the basis of how long fragment, such as with five minutes for a time slicing, time tag is 11:13-10:18 or 10:18-10:23 etc., then timeslice be " 11:20-11:In the case of 40 ", initial time is 11:20, as long as being found in the time tag of burst video containing 11:The burst video at 20 this moment, so looking for To be time tag be 11:18-11:23 this burst video, contain 11:20 this time point.Wherein, the time is found out The burst video of the initial time containing timeslice is original live video corresponding with timeslice in label.
Specifically, carrying out real-time transcoding to original live video, it is transcoded into consistent with the video code model of the terminal The process of terminal video be specially:Trigger front end live TV stream and rebuild new direct broadcast time-shift stream corresponding with timeslice, in burst The original position of read access time piece in the time tag of video, the link of direct broadcast time-shift stream is established in original position, according to live Shi Yiliu link obtains direct broadcast time-shift stream;Transcoding is carried out to direct broadcast time-shift stream, generation is consistent with the video code model of terminal Terminal video.Wherein, the burst video found according to timeslice, i.e. original live video are original straight in burst video source It is the original live video that live video is not carried out in terminal to broadcast video, and the original live video is carrying out the process of time shift In, specifically need to establish new direct broadcast time-shift stream during real-time transcoding is carried out to the original video, not so cannot succeed Time shift is carried out, the video that carry out transcoding is the new direct broadcast time-shift stream of the foundation.
It should be noted that step S101-S104 executive agent is service end, i.e., server is executive agent.
A kind of method that time shift is realized based on real-time transcoding provided by the present invention, when what receiving terminal was sent needs to carry out The timeslice of the video of shifting;Judge to whether there is original live video corresponding with timeslice in buffered video source;If so, will be slow Deposit original live video corresponding with timeslice in video source and carry out real-time transcoding, be transcoded into and the video code model of terminal one The terminal video of cause, the terminal video after transcoding is sent to terminal;If it is not, found out in burst video source and timeslice pair The original live video answered, real-time transcoding is carried out to original live video, is transcoded into consistent with the video code model of terminal Video, the terminal video after transcoding is sent to terminal.It can be seen that when user needs to review net cast content, regarded using caching Frequency source or section video source can just obtain the corresponding original video for the net cast content for needing to be reviewed, i.e., original Live video, corresponding different terminal, original live video only need to preserve portion, so by way of real-time transcoding, directly The video for original live video real-time transcoding being converted to the video code model required for terminal is connect, is sent to terminal, allows use Family can directly review net cast content, it is not necessary to just store the video corresponding with the video code model of terminal in advance File, regarded without being that every kind of different video terminal holding portion is corresponding with the video code model of the video terminal again Frequency file, real-time transcoding directly is carried out to original live video, and then only need to preserve a original live video, be not required to Numerous parts for being used to store are disposed, reduce cost, and save memory space.
Fig. 2 is refer to, Fig. 2 is the structural representation of the device provided by the invention that time shift is realized based on real-time transcoding, should Device includes:
AM access module 11, the timeslice for needing to carry out the video of time shift sent for receiving terminal;
Judge module 12, for judging to whether there is original live video corresponding with timeslice in buffered video source;
Caching management module 13, for when original live video corresponding with timeslice in buffered video source be present, inciting somebody to action Original live video corresponding with timeslice carries out real-time transcoding in buffered video source, is transcoded into the video code model with terminal Consistent terminal video, the terminal video after transcoding is sent to terminal;
Management by district module 14, for when original live video corresponding with timeslice is not present in buffered video source, Original live video corresponding with timeslice is found out in burst video source, real-time transcoding is carried out to original live video, turned Code sends the terminal video after transcoding to terminal into the terminal video consistent with the video code model of terminal.
Specifically, the judge module includes:
Time quantum, for the relative time of timeslice to be converted into absolute time;
Judging unit is cached, for judging absolute time whether in the time range in buffered video source;If so, determine slow Deposit and original live video corresponding with timeslice in video source be present;If it is not, determining to be not present in buffered video source and timeslice Corresponding original live video.
The caching management module includes:
First transcoding units, for when original live video corresponding to existence time piece in buffered video source, caching The time location where timeslice is searched in 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, the generation terminal video consistent with the coded format of video terminal;
First transmitting element, for the terminal video after transcoding to be sent to the terminal.
The management by district module includes:
Searching unit, for when original live video corresponding with timeslice is not present in buffered video source, during acquisition Between piece initial time, and the time tag of the initial time of timeslice and burst video source is compared in burst video source It is right, 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, it is transcoded into and the video code model of terminal one The terminal video of cause;
Second transmitting element, for the terminal video after transcoding to be sent to terminal.
Second transcoding units, including:
Subelement is triggered, new direct broadcast time-shift stream corresponding with timeslice is rebuild for triggering front end live TV stream;
Read subelement, the original position for the read access time piece in the time tag of video segment;
Subelement is linked, for establishing the link of direct broadcast time-shift stream in original position, and according to the link of direct broadcast time-shift stream Obtain direct broadcast time-shift stream;
Transcoding subelement, for carrying out transcoding, the generation end consistent with the video code model of terminal to direct broadcast time-shift stream Hold video.
A kind of device that time shift is realized based on real-time transcoding provided by the present invention, the need that AM access module receiving terminal is sent The timeslice of the video of time shift is carried out, judge module is judged in buffered video source with the presence or absence of corresponding with timeslice original straight Video is broadcast, when original live video corresponding with timeslice in buffered video source be present, caching management module is by buffered video Original live video corresponding with timeslice carries out real-time transcoding in source, is transcoded into the end consistent with the video code model of terminal Video is held, the terminal video after transcoding is sent to terminal, it is corresponding with timeslice original straight when being not present in buffered video source When broadcasting video, management by district module finds out original live video corresponding with timeslice in burst video source, to original straight Broadcast video and carry out real-time transcoding, be transcoded into the terminal video consistent with the video code model of terminal, the terminal after transcoding is regarded Take place frequently and deliver to terminal.It can be seen that when user needs to review net cast content, using buffered video source or section video source with regard to energy Enough corresponding original videos for obtaining the net cast content for needing to be reviewed, i.e. original live video, corresponding different end End, original live video only need to preserve portion, so by way of real-time transcoding, directly original live video are turned in real time Code is converted to the video of the video code model required for terminal, sends to terminal, allows user directly to review net cast Content, it is not necessary to just stored the video file corresponding with the video code model of terminal in advance, without again for it is every kind of not Same video terminal keeps a video file corresponding with the video code model of the video terminal, directly to original live Video carries out real-time transcoding, and then only needs to preserve a original live video, it is not necessary to disposes and numerous is used for what is stored Part, cost is reduced, and save memory space.
A kind of realize that the method and device of time shift has carried out detailed Jie based on real-time transcoding to provided by the present invention above Continue.Specific case used herein is set forth to the principle and embodiment of the present invention, and the explanation of above example is only It is the method and its core concept for being used to help understand the present invention.It should be pointed out that for those skilled in the art For, under the premise without departing from the principles of the invention, some improvement and modification can also be carried out to the present invention, these improve and repaiied Decorations are also fallen into the protection domain of the claims in the present invention.

Claims (8)

  1. A kind of 1. method that time shift is realized based on real-time transcoding, it is characterised in that including:
    What receiving terminal was sent needs to carry out the timeslice of the video of time shift;
    Judge to whether there is original live video corresponding with the timeslice in buffered video source;
    If so, original live video corresponding with the timeslice in the buffered video source is carried out into real-time transcoding, it is transcoded into The terminal video consistent with the video code model of the terminal, the terminal video after transcoding is sent to the terminal;
    If it is not, finding out original live video corresponding with the timeslice in burst video source, the original live is regarded Frequency carries out real-time transcoding, is transcoded into the video consistent with the video code model of the terminal, and the terminal video after transcoding is sent out Deliver to the terminal;
    Real-time transcoding is carried out to the original live video, the terminal consistent with the video code model of the terminal is transcoded into and regards Frequently, including:Trigger front end live TV stream and rebuild new direct broadcast time-shift stream corresponding with the timeslice;The burst video when Between the original position of the timeslice is read in label;The link of the direct broadcast time-shift stream is established in the original position;Foundation The link of the direct broadcast time-shift stream obtains the direct broadcast time-shift stream;Transcoding, generation and the end are carried out to the direct broadcast time-shift stream The consistent terminal video of the video code model at end.
  2. 2. the method as described in claim 1, it is characterised in that whether there is and the time in the judgement buffered video source Original live video corresponding to piece, including:
    The relative time of the timeslice is converted into absolute time;
    Judge the absolute time whether in the time range in buffered video source;
    If so, determine original live video corresponding with the timeslice in the buffered video source be present;
    If it is not, determine that original live video corresponding with the timeslice is not present in the buffered video source.
  3. 3. the method as described in claim 1, it is characterised in that it is described will be corresponding with the timeslice in the buffered video source Original live video carry out real-time transcoding, be transcoded into the video consistent with the video code model of the terminal, including:
    Time location where searching the timeslice in the buffered video source;
    Transcoding is carried out to the video content described in the buffered video source on time location;
    Video content transcoding on the time location is generated to the terminal video consistent with the video code model of the terminal.
  4. 4. the method as described in claim 1, it is characterised in that described to be found out in burst video source and the timeslice pair The original live video answered, including:
    Obtain the initial time of the timeslice;
    The initial time of the timeslice is compared with the time tag of the burst video source in burst video source;
    Find out the burst video of the initial time containing the timeslice in time tag.
  5. A kind of 5. device that time shift is realized based on real-time transcoding, it is characterised in that including:
    AM access module, the timeslice for needing to carry out the video of time shift sent for receiving terminal;
    Judge module, for judging to whether there is original live video corresponding with the timeslice in buffered video source;
    Caching management module, for when original live video corresponding with the timeslice in the buffered video source be present, Original live video corresponding with the timeslice in the buffered video source is subjected to real-time transcoding, is transcoded into and the terminal The consistent terminal video of video code model, the terminal video after transcoding is sent to the terminal;
    Management by district module, for when original live video corresponding with the timeslice is not present in the buffered video source When, original live video corresponding with the timeslice is found out in burst video source, the original live video is carried out Real-time transcoding, the terminal video consistent with the video code model of the terminal is transcoded into, the terminal video after transcoding is sent To the terminal;
    Second transcoding units include:
    Subelement is triggered, new direct broadcast time-shift stream corresponding with the timeslice is rebuild for triggering front end live TV stream;
    Subelement is read, for reading the original position of the timeslice in the time tag of the burst video;
    Subelement is linked, for establishing the link of the direct broadcast time-shift stream in the original position, and according to the direct broadcast time-shift The link of stream obtains the direct broadcast time-shift stream;
    Transcoding subelement, for carrying out transcoding to the direct broadcast time-shift stream, generation is consistent with the video code model of the terminal Terminal video.
  6. 6. device as claimed in claim 5, it is characterised in that the judge module includes:
    Time quantum, for the relative time of the timeslice to be converted into absolute time;
    Judging unit is cached, for judging the absolute time whether in the time range in buffered video source;If so, determine institute State and original live video corresponding with the timeslice in buffered video source be present;If it is not, determine in the buffered video source not In the presence of original live video corresponding with the timeslice.
  7. 7. device as claimed in claim 5, it is characterised in that the caching management module includes:
    First transcoding units, for when original live video corresponding with the timeslice in the buffered video source be present, Time location where searching the timeslice in the buffered video source, to time location described in the buffered video source On video content carry out transcoding, by the video content transcoding on the time location, generation and the Video coding of the terminal The consistent terminal video of form;
    First transmitting element, for the terminal video after transcoding to be sent to the terminal.
  8. 8. device as claimed in claim 5, it is characterised in that the management by district module includes:
    Searching unit, for when original live video corresponding with the timeslice is not present in the buffered video source, obtaining The initial time of the timeslice is taken, and by the initial time of the timeslice and the burst video source in burst video source Time tag be compared, find out in time tag containing the timeslice initial time burst video;
    Second transcoding units, for carrying out real-time transcoding to the video slicing, it is transcoded into the Video coding lattice with the terminal The consistent terminal video of formula;
    Second transmitting element, for the terminal video after transcoding to be sent to the 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 CN105049876A (en) 2015-11-11
CN105049876B true 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)

Families Citing this family (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

Family Cites Families (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
CN102572555B (en) * 2012-01-16 2014-06-18 深圳市龙视传媒有限公司 Method and system for realizing live video playback at HTTP live streaming (HLS) client
CN102685554B (en) * 2012-05-24 2015-09-30 北京国双科技有限公司 The processing method of video playback and device
CN103220587B (en) * 2013-03-22 2016-12-28 深圳市同洲电子股份有限公司 A kind of method and device obtaining time-shifted contents
CN104661041A (en) * 2013-11-25 2015-05-27 乐视网信息技术(北京)股份有限公司 Live broadcast time shift positioning method, server, terminal and communication system

Also Published As

Publication number Publication date
CN105049876A (en) 2015-11-11

Similar Documents

Publication Publication Date Title
RU2689140C1 (en) Method, device and computer program for encapsulating segmented synchronized multimedia data
US10623785B2 (en) Streaming manifest quality control
KR101804347B1 (en) Method and apparatus for transmitting/receiving content of adaptive streaming mechanism
US9191725B2 (en) Method and apparatus for streaming video
US9258333B2 (en) Method for recovering content streamed into chunk
US8929441B2 (en) Method and system for live streaming video with dynamic rate adaptation
KR101010258B1 (en) Time-shifted presentation of media streams
US10277927B2 (en) Movie package file format
CN101917389B (en) Network television direct broadcasting system
CN101588473B (en) Multimedia time shifting broadcasting method and system
CN104469433A (en) Live video replay method and device
CN103843301A (en) Switching between representations during network streaming of coded multimedia data
SG181840A1 (en) Audio splitting with codec-enforced frame sizes
CN103069799A (en) Signaling data for multiplexing video components
CN104243998A (en) Data processing method, data processing device and related servers
CN104639900B (en) RTMP turns M3U8 video segment system and method
CN101848367B (en) File-based video live webcasting method
CN101202882B (en) Method, system for transmitting medium resource and set-top box
CN112752115A (en) Live broadcast data transmission method, device, equipment and medium
CN105049876B (en) A kind of method and device that time shift is realized based on real-time transcoding
CN104735410B (en) A kind of narrow bandwidth video transmission method and system lower than 4K/S
JP2015526007A (en) Apparatus and method for recording data relating to time shift function on recording medium
US11750882B2 (en) Trick play and trick rate support for HLS
CN101854515A (en) Television program remote recording method
Bauer et al. 8. What Makes a Download a Stream?

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