CN105072458A - Method for realizing time shifting in live broadcasting process of set top box based on HLS protocol - Google Patents

Method for realizing time shifting in live broadcasting process of set top box based on HLS protocol Download PDF

Info

Publication number
CN105072458A
CN105072458A CN201510436628.0A CN201510436628A CN105072458A CN 105072458 A CN105072458 A CN 105072458A CN 201510436628 A CN201510436628 A CN 201510436628A CN 105072458 A CN105072458 A CN 105072458A
Authority
CN
China
Prior art keywords
top box
time
set top
live
server
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.)
Pending
Application number
CN201510436628.0A
Other languages
Chinese (zh)
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.)
Inspur Software Group Co Ltd
Original Assignee
Inspur Software Group 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 Inspur Software Group Co Ltd filed Critical Inspur Software Group Co Ltd
Priority to CN201510436628.0A priority Critical patent/CN105072458A/en
Publication of CN105072458A publication Critical patent/CN105072458A/en
Pending legal-status Critical Current

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/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/65Transmission of management data between client and server
    • H04N21/658Transmission by the client directed to the server
    • H04N21/6587Control parameters, e.g. trick play commands, viewpoint selection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a method for realizing time shifting in a set top box live broadcast process based on an HLS protocol, which comprises the steps of constructing an M3U8 service by utilizing a server side, and establishing a list in a memory for regularly acquiring live broadcast TS slice information in a database; selecting a set-top box player to play a time shifting function, moving a progress pointer to a corresponding position by using a remote controller, calculating time shifting time according to the total time length, and sending a time shifting request to an M3U8 server by using the time shifting time length as a parameter by the set-top box; after receiving the request, the server analyzes the parameters to obtain the time shifting duration, then queries a TS file corresponding to the duration in a memory, generates a content character string of an M3U8 file according to an M3U8 live broadcast standard, returns the content character string to the set top box in a file stream mode to provide downloading, and after obtaining the M3U8 file, the set top box obtains a corresponding TS slice from a specified stream pushing server in the M3U8 file and automatically plays the TS slice according to an HLS protocol to achieve the time shifting effect.

Description

A kind of method realizing time shift in the live process of Set Top Box based on HLS protocol
Technical field
The present invention discloses a kind of method realizing time shift in the live process of Set Top Box, belongs to video communication applications field, specifically a kind of method realizing time shift in the live process of Set Top Box based on HLS protocol.
Background technology
Live is at the scene along with the generation of event, development process make and broadcast the broadcast mode of TV programme simultaneously, is the broadcast mode fully demonstrating radio and television media transmission advantage.Program request utilizes interactive television formula VOD system, plays corresponding video frequency program according to the needs of user, fundamentally changes the deficiency that user's past passive formula sees TV.A kind of new business that time shift is live combining with program request and is formed is supplementing of live broadcast service.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.Current time-shifting function is that Play Server gets off section directory, when continuing to play, then adopts unicast fashion to replay the program under record.For live program, the flow medium live system with time-shifting function can see program in any time afterwards, not necessarily wants synchronous, can suspend at any time, play, but often current time-shifting function reaction speed when sending time shifting request is slow, once number of requests is large, after causing network congestion then more to exacerbate the mistake of time shift, even ask unsuccessful, cannot time shift be completed, cause user to use time-shifting function, complete live-experience, affect viewing effect.The invention provides a kind of method realizing time shift in the live process of Set Top Box based on HLS protocol, be applicable to video field, thus the object reached to program time shifting in live process, and reaction speed is fast, even if number of requests is large, also do not affect the transmission and reception of time shifting request, user can use time-shifting function smoothly, complete live-experience, improve viewing effect.
(the dynamic code rate adaptive technique of HTTPLiveStreaming, Apple, HLS protocol is the dynamic code rate adaptive technique of Apple to HLS protocol.Be mainly used in the audio frequency and video service of PC and Apple terminal.Comprise the index file of a m3u8, TS media slicing file and key encrypt string file.
Summary of the invention
The present invention is directed to current time-shifting function reaction speed when sending time shifting request slow, once number of requests is large, after causing network congestion then more to exacerbate the mistake of time shift, even ask unsuccessful, time shift cannot be completed, user is caused to use time-shifting function, complete live-experience, affect the problem of viewing effect, a kind of method realizing time shift in the live process of Set Top Box based on HLS protocol is provided, based on HLS protocol, be applicable to video field, thus the object reached to program time shifting in live process, and reaction speed is fast, even if number of requests is large, the transmission and reception of time shifting request are not affected yet, user can use time-shifting function smoothly, complete live-experience, improve viewing effect.
The concrete scheme that the present invention proposes is:
A method for time shift in the live process of Set Top Box is realized based on HLS protocol, based on HLS protocol,
Utilize server end to build M3U8 service, in internal memory, set up list, be used for live TS slice information in timing acquisition database;
Time live, select Set Top Box player plays time-shifting function, the F.F. that uses a teleswitch, rewind button, by progress pointer movement to relevant position, according to total duration, shift time during calculating, time shift duration as parameter, is sent time shifting request to M3U8 server by Set Top Box;
After server receives request, analytic parameter, get time shift duration, in internal memory, then inquire the TS file that this duration is corresponding, server is according to the live standard of M3U8, generate M3U8 file content character string, return to Set Top Box with the form of document flow and download is provided, after Set Top Box gets M3U8 file, obtain corresponding TS to the stream pushing server that M3U8 document is fixed and cut into slices, and automatically play according to HLS protocol, realize time shift effect.
Describedly in internal memory, set up list, successively according to channel designation, programm name, program starts and program end time carrys out live TS slice information in timing acquisition database.
Described Set Top Box is using time shift duration as parameter, and sending time shifting request to M3U8 server is that 3-7s circulation sends once.
After described server receives request, analytic parameter, gets time shift duration, in internal memory, then inquire the TS file that this duration is corresponding, obtains 3-6 sheet continuously.
Usefulness of the present invention is: the present invention is based on HLS protocol, Set Top Box is when carrying out viewing programme televised live, by rewind, during fast forward button, time shift duration is calculated according to progress bar, generation request is sent to server, the time shift duration that server is new according to the acquisition request received, get new TS sheet, the new M3U8 file of dynamic generation sends to box end, after box end gets M3U8, order request will be re-started, thus the object reached to program time shifting in network direct broadcasting process, can accomplish that penetrability is strong, HLS protocol is used to carry out direct broadcast time-shift, make directly to obtain from the internal memory of server during terminal request data, greatly improve the reaction speed to terminal data request, optimize video viewing experience.
Accompanying drawing explanation
Fig. 1 direct broadcast time-shift deployment architecture of the present invention schematic diagram;
Fig. 2 direct broadcast time-shift interaction flow of the present invention schematic diagram.
Embodiment
Content of the present invention is further elaborated by reference to the accompanying drawings.
Embodiment 1
A method for time shift in the live process of Set Top Box is realized based on HLS protocol, based on HLS protocol,
Utilize server end build M3U8 service, in internal memory, set up list, successively according to channel designation, programm name, program starts and program end time carrys out live TS slice information in timing acquisition database; Such as choose Chinese Central Television's sports channel, music channel, news channel, the wherein live game coverage of sports channel, the concert of music channel is live, and the interview of news channel is live, then starts according to above-mentioned program and program end time carrys out live TS slice information in timing acquisition database;
Time live, select Set Top Box player plays time-shifting function, the F.F. that uses a teleswitch, rewind button, by progress pointer movement to relevant position, according to total duration, shift time during calculating, time shift duration as parameter, is sent time shifting request to M3U8 server by Set Top Box, and 3s circulation sends once;
After server receives request, analytic parameter, gets time shift duration, in internal memory, then inquire the TS file that this duration is corresponding, continuous acquisition 3, server, according to the live standard of M3U8, generates M3U8 file content character string, returns to Set Top Box provide download with the form of document flow, after Set Top Box gets M3U8 file, obtain corresponding TS to the stream pushing server that M3U8 document is fixed to cut into slices, and automatically play according to HLS protocol, realize time shift effect.
Embodiment 2
A method for time shift in the live process of Set Top Box is realized based on HLS protocol, based on HLS protocol,
Utilize server end build M3U8 service, in internal memory, set up list, successively according to channel designation, programm name, program starts and program end time carrys out live TS slice information in timing acquisition database; Such as choose Hunan TV stage body ssd channel, juvenile's Cartoon Network, news channel, the wherein live game coverage of sports channel, the little reporter of juvenile's Cartoon Network interviews live, the focus inside the province of news channel is live, then starts according to above-mentioned program and program end time carrys out live TS slice information in timing acquisition database;
Time live, select Set Top Box player plays time-shifting function, the F.F. that uses a teleswitch, rewind button, by progress pointer movement to relevant position, according to total duration, shift time during calculating, time shift duration as parameter, is sent time shifting request to M3U8 server by Set Top Box, and 5s circulation sends once;
After server receives request, analytic parameter, gets time shift duration, in internal memory, then inquire the TS file that this duration is corresponding, continuous acquisition 4, server, according to the live standard of M3U8, generates M3U8 file content character string, returns to Set Top Box provide download with the form of document flow, after Set Top Box gets M3U8 file, obtain corresponding TS to the stream pushing server that M3U8 document is fixed to cut into slices, and automatically play according to HLS protocol, realize time shift effect.
Embodiment 3
A method for time shift in the live process of Set Top Box is realized based on HLS protocol, based on HLS protocol,
Utilize server end build M3U8 service, in internal memory, set up list, successively according to channel designation, programm name, program starts and program end time carrys out live TS slice information in timing acquisition database; Such as choose Jinan TV station education channel, sports channel, news channel, the wherein live game coverage of sports channel, the information of entering oneself for the examination of education channel is live, the city focus of news channel is live, then starts according to above-mentioned program and program end time carrys out live TS slice information in timing acquisition database;
Time live, select Set Top Box player plays time-shifting function, the F.F. that uses a teleswitch, rewind button, by progress pointer movement to relevant position, according to total duration, shift time during calculating, time shift duration as parameter, is sent time shifting request to M3U8 server by Set Top Box, and 7s circulation sends once;
After server receives request, analytic parameter, gets time shift duration, in internal memory, then inquire the TS file that this duration is corresponding, continuous acquisition 6, server, according to the live standard of M3U8, generates M3U8 file content character string, returns to Set Top Box provide download with the form of document flow, after Set Top Box gets M3U8 file, obtain corresponding TS to the stream pushing server that M3U8 document is fixed to cut into slices, and automatically play according to HLS protocol, realize time shift effect.

Claims (4)

1. realize a method for time shift in the live process of Set Top Box based on HLS protocol, based on HLS protocol, it is characterized in that
Utilize server end to build M3U8 service, in internal memory, set up list, be used for live TS slice information in timing acquisition database;
Time live, select Set Top Box player plays time-shifting function, the F.F. that uses a teleswitch, rewind button, by progress pointer movement to relevant position, according to total duration, shift time during calculating, time shift duration as parameter, is sent time shifting request to M3U8 server by Set Top Box;
After server receives request, analytic parameter, get time shift duration, in internal memory, then inquire the TS file that this duration is corresponding, server is according to the live standard of M3U8, generate M3U8 file content character string, return to Set Top Box with the form of document flow and download is provided, after Set Top Box gets M3U8 file, obtain corresponding TS to the stream pushing server that M3U8 document is fixed and cut into slices, and automatically play according to HLS protocol, realize time shift effect.
2. according to a kind of method realizing time shift in the live process of Set Top Box based on HLS protocol according to claim 1, it is characterized in that described in internal memory, setting up list, successively according to channel designation, programm name, program starts and program end time carrys out live TS slice information in timing acquisition database.
3. a kind of method realizing time shift in the live process of Set Top Box based on HLS protocol according to claim 1 and 2, is characterized in that described Set Top Box using time shift duration as parameter, and sending time shifting request to M3U8 server is that 3-7s circulation sends once.
4. a kind of method realizing time shift in the live process of Set Top Box based on HLS protocol according to claim 2, after it is characterized in that described server receives request, analytic parameter, gets time shift duration, then in internal memory, inquire the TS file that this duration is corresponding, obtain 3-6 sheet continuously.
CN201510436628.0A 2015-07-23 2015-07-23 Method for realizing time shifting in live broadcasting process of set top box based on HLS protocol Pending CN105072458A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510436628.0A CN105072458A (en) 2015-07-23 2015-07-23 Method for realizing time shifting in live broadcasting process of set top box based on HLS protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510436628.0A CN105072458A (en) 2015-07-23 2015-07-23 Method for realizing time shifting in live broadcasting process of set top box based on HLS protocol

Publications (1)

Publication Number Publication Date
CN105072458A true CN105072458A (en) 2015-11-18

Family

ID=54501718

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510436628.0A Pending CN105072458A (en) 2015-07-23 2015-07-23 Method for realizing time shifting in live broadcasting process of set top box based on HLS protocol

Country Status (1)

Country Link
CN (1) CN105072458A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704568A (en) * 2016-02-03 2016-06-22 浪潮软件集团有限公司 Method and device for realizing live broadcast time shifting
CN106210783A (en) * 2016-07-29 2016-12-07 浪潮软件集团有限公司 Method for dynamically adjusting bandwidth of broadcast television network of set top box based on HLS protocol
CN106454447A (en) * 2016-10-11 2017-02-22 青岛海信电器股份有限公司 Video playing and processing method and device, and television
CN108024157A (en) * 2016-10-28 2018-05-11 中国电信股份有限公司 Realize method and system, set-top box and the fringe node with the live seamless time shifts of HLS
CN108156490A (en) * 2017-12-27 2018-06-12 深圳康佳信息网络有限公司 A kind of method, system and storage medium using mobile terminal playback live telecast
CN109040769A (en) * 2018-08-22 2018-12-18 广东省南方数字电视无线传播有限公司 Direct broadcast time-shift method and device based on HLS protocol
CN110784737A (en) * 2019-10-21 2020-02-11 北京东方广视科技股份有限公司 HLS protocol-based time-shifted television playing method, terminal and server
CN112601131A (en) * 2020-12-10 2021-04-02 杭州当虹科技股份有限公司 HLS video slice file storage optimization method
CN117336311A (en) * 2023-11-30 2024-01-02 深圳市小溪流科技有限公司 Method and device for keeping consistency of multiple HLS server slices

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070130498A1 (en) * 2005-12-01 2007-06-07 Nokia Corporation Time-shifted presentation of media streams
CN101459809A (en) * 2008-11-26 2009-06-17 天柏宽带网络科技(北京)有限公司 Method and system for digital television program playing
CN102355605A (en) * 2011-11-11 2012-02-15 烽火通信科技股份有限公司 Live time-shift processing method of IPTV (Internet Protocol Television) set-top box
CN103517157A (en) * 2013-09-27 2014-01-15 武汉市烽视威科技有限公司 Method and system for achieving HLS channel time-shifting playing
CN103716662A (en) * 2013-12-05 2014-04-09 乐视网信息技术(北京)股份有限公司 Mixed transmission method and server
CN104080011A (en) * 2014-07-08 2014-10-01 浪潮软件集团有限公司 Method for realizing time shifting system based on HLS protocol

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070130498A1 (en) * 2005-12-01 2007-06-07 Nokia Corporation Time-shifted presentation of media streams
CN101459809A (en) * 2008-11-26 2009-06-17 天柏宽带网络科技(北京)有限公司 Method and system for digital television program playing
CN102355605A (en) * 2011-11-11 2012-02-15 烽火通信科技股份有限公司 Live time-shift processing method of IPTV (Internet Protocol Television) set-top box
CN103517157A (en) * 2013-09-27 2014-01-15 武汉市烽视威科技有限公司 Method and system for achieving HLS channel time-shifting playing
CN103716662A (en) * 2013-12-05 2014-04-09 乐视网信息技术(北京)股份有限公司 Mixed transmission method and server
CN104080011A (en) * 2014-07-08 2014-10-01 浪潮软件集团有限公司 Method for realizing time shifting system based on HLS protocol

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704568A (en) * 2016-02-03 2016-06-22 浪潮软件集团有限公司 Method and device for realizing live broadcast time shifting
CN106210783A (en) * 2016-07-29 2016-12-07 浪潮软件集团有限公司 Method for dynamically adjusting bandwidth of broadcast television network of set top box based on HLS protocol
CN106210783B (en) * 2016-07-29 2019-04-16 浪潮软件集团有限公司 Method for dynamically adjusting bandwidth of broadcast television network of set top box based on HLS protocol
CN106454447A (en) * 2016-10-11 2017-02-22 青岛海信电器股份有限公司 Video playing and processing method and device, and television
CN108024157A (en) * 2016-10-28 2018-05-11 中国电信股份有限公司 Realize method and system, set-top box and the fringe node with the live seamless time shifts of HLS
CN108156490A (en) * 2017-12-27 2018-06-12 深圳康佳信息网络有限公司 A kind of method, system and storage medium using mobile terminal playback live telecast
CN108156490B (en) * 2017-12-27 2020-12-04 深圳康佳信息网络有限公司 Method, system and storage medium for playing back live television by using mobile terminal
CN109040769A (en) * 2018-08-22 2018-12-18 广东省南方数字电视无线传播有限公司 Direct broadcast time-shift method and device based on HLS protocol
CN110784737A (en) * 2019-10-21 2020-02-11 北京东方广视科技股份有限公司 HLS protocol-based time-shifted television playing method, terminal and server
CN112601131A (en) * 2020-12-10 2021-04-02 杭州当虹科技股份有限公司 HLS video slice file storage optimization method
CN117336311A (en) * 2023-11-30 2024-01-02 深圳市小溪流科技有限公司 Method and device for keeping consistency of multiple HLS server slices
CN117336311B (en) * 2023-11-30 2024-03-12 深圳市小溪流科技有限公司 Method and device for keeping consistency of multiple HLS server slices

Similar Documents

Publication Publication Date Title
CN105072458A (en) Method for realizing time shifting in live broadcasting process of set top box based on HLS protocol
US9615119B2 (en) Method and apparatus for providing timeshift service in digital broadcasting system and system thereof
US9706443B2 (en) Delivery of targeted media content
CN104053067B (en) A kind of player method of programme televised live, terminal and server
CN103369410B (en) Play method, equipment and the computer readable storage medium of broadcasted content
US10009656B2 (en) Multi-option sourcing of content
KR102099357B1 (en) Device, system and method for providing screen shot
WO2015180429A1 (en) Hybrid network system, channel content replay method, and hybrid set top box
CN102685561B (en) Program carousel method and system, terminal equipment and program on-demand device
CN101998116A (en) Method, system and equipment for realizing multi-view video service
US10440427B2 (en) Content supply device, content supply method, program, terminal device, and content supply system
CN103533394A (en) Information pushing method and device and server
KR101472013B1 (en) Server and method for providing music streaming include data of add image
WO2012001575A2 (en) System and method for managing distributed content
AU2011233856B2 (en) Method and apparatus for providing timeshift service in digital broadcasting system and system thereof
CN105704399A (en) Playing method and system for multi-picture television program
CN103618950A (en) Inter-cut method of content of smart television
CN104160707A (en) Broadcast encoding, recording and distribution system and method
CN105142003B (en) Television program playing method and device
CN102769787A (en) Time shifting method and time shifting equipment of mobile phone terminal channel
CN102088624B (en) Television signal processing method, mobile terminal and system
CN102172035A (en) Manufacturing method and system of audio special
CN104661041A (en) Live broadcast time shift positioning method, server, terminal and communication system
US20130239137A1 (en) Augmented broadcasting apparatus and method for advance metadata provision
CN102710967A (en) Cloud television system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20151118