WO2013152689A1 - Background control method and system for video playing - Google Patents

Background control method and system for video playing Download PDF

Info

Publication number
WO2013152689A1
WO2013152689A1 PCT/CN2013/073628 CN2013073628W WO2013152689A1 WO 2013152689 A1 WO2013152689 A1 WO 2013152689A1 CN 2013073628 W CN2013073628 W CN 2013073628W WO 2013152689 A1 WO2013152689 A1 WO 2013152689A1
Authority
WO
WIPO (PCT)
Prior art keywords
program
playlist
file
instruction message
information
Prior art date
Application number
PCT/CN2013/073628
Other languages
French (fr)
Chinese (zh)
Inventor
王森林
Original Assignee
天脉聚源(北京)传媒科技有限公司
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 天脉聚源(北京)传媒科技有限公司 filed Critical 天脉聚源(北京)传媒科技有限公司
Publication of WO2013152689A1 publication Critical patent/WO2013152689A1/en

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/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • 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
    • 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

A background control method and system for video playing are disclosed. Firstly, after receiving an instruction message from a client, a server parses the instruction message to determine program list update information, program type information and M3U8 play list address information; the server judges, according to the program list update information acquired from the parsed instruction message, whether to alter the current program on the client, acquires an M3U8 play list of the program and a TS file, rearranges the TS file code stream, outputs the TS file sequence, acquires, according to the TS file sequence, the M3U8 live list, and outputs the M3U8 live list to the client. The present invention enables the internet TV programming to be more simple and easy to operate, and reduces the live delay time.

Description

一种视频播放的后台控制方法及系统 本申请要求在 2012年 4月 12日提交中国专利局、申请号为 201210106533.9、 发明名称为"一种视频播放的后台控制方法及系统"的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  BACKGROUND OF THE INVENTION 1. Field of the Invention This application claims to be filed on April 12, 2012, the Chinese Patent Office, the application No. 201210106533.9, and the Chinese patent application entitled "A Background Control Method and System for Video Playback" Priority is hereby incorporated by reference in its entirety. Technical field
本发明涉及互联网电视播控技术领域,尤其涉及一种视频播放的后台控 制方法及系统。 背景技术  The present invention relates to the field of Internet television broadcast control technologies, and in particular, to a background control method and system for video playback. Background technique
目前, 随着我国互联网电视用户越来越多和标清甚至高清视频越来越普 及, 互联网电视运营商的服务器需要提供大量的高清直播和点播服务, 由于 网络带宽的限制, 客户端的视频播放不够流畅、 简便、 直播延时时间长, 而 且直播视频节目不能回看, 用户对于运营商提供的服务的体验较差。 发明内容  At present, as more and more Internet TV users in China and SD and even HD video become more and more popular, Internet TV operators' servers need to provide a large number of HD live broadcast and on-demand services. Due to network bandwidth limitations, the video playback of the client is not smooth enough. Simple, live broadcast delay time is long, and live video programs cannot be viewed back, and users have a poor experience with the services provided by operators. Summary of the invention
本发明的目的是在于提出一种视频播放的后台控制方法及系统,以 M3U8 协议对视频文件和直播视频流内部参数进行重新排列、 码流调整和存储, 形 成虚拟直播流, 以 M3U8直播列表形式对外发布, 使互联网电视节目的编排 更简单、 易操作, 点播和直播延迟时间更短, 实现直播回看功能。  The object of the present invention is to provide a background control method and system for video playback, which uses the M3U8 protocol to rearrange the internal parameters of the video file and the live video stream, adjust and store the code stream, and form a virtual live stream, in the form of a live broadcast list of M3U8. The release of Internet TV programs makes the layout of Internet TV programs simpler and easier to operate, and the on-demand and live broadcast delays are shorter, realizing the live broadcast review function.
本发明一方面提供了一种视频播放的后台控制方法, 适用于互联网电视 播控领域, 包括以下步骤:  An aspect of the present invention provides a background control method for video playback, which is applicable to the field of Internet television broadcast control, and includes the following steps:
步骤 A、 服务器收到客户端发来的指令消息后, 解析指令消息, 获得节 目列表更新信息、 节目类型信息、 节目开始结束时间戳信息和 M3U8播放列 表地址信息;  Step A: After receiving the instruction message sent by the client, the server parses the instruction message, and obtains the program list update information, the program type information, the program start end time stamp information, and the M3U8 play list address information;
步骤 B、 根据所述节目列表更新信息, 判断是否需要更换当前客户端播 放的节目, 如果是, 转至步骤 C; 步骤 c、 根据所述节目类型信息判断节目类型信息是否为直播节目, 若 不是, 根据所述 M3U8播放列表地址信息获取 M3U8播放列表, 并转至步骤 D, 若是直播节目, 将当前时间转换成当前时间戳, 根据所述 M3U8播放列表 地址信息获取当前时间戳对应的 M3U8播放列表, 并转至步骤 D; Step B, according to the program list update information, determine whether it is necessary to replace the program currently played by the client, and if so, go to step C; Step c: determining, according to the program type information, whether the program type information is a live program, if not, acquiring an M3U8 playlist according to the M3U8 playlist address information, and proceeding to step D, if it is a live program, converting the current time into a current a timestamp, obtaining an M3U8 playlist corresponding to the current timestamp according to the M3U8 playlist address information, and proceeding to step D;
步骤 D、 解析所述 M3U8播放列表, 获取 TS文件地址, 取得 TS文件并 緩存;  Step D: parsing the M3U8 playlist, obtaining a TS file address, obtaining a TS file, and buffering;
步骤 E、 将所述 TS文件解码, 调整参数, 重新排列后写入连续时间戳, 输出 TS文件序列;  Step E: Decoding the TS file, adjusting parameters, rearranging, writing a continuous time stamp, and outputting a TS file sequence;
步骤 F、 根据所述 TS文件序列制作 M3U8直播列表, 将所述 TS文件序 列存入数据库, 输出 M3U8直播列表至客户端。  Step F: Create an M3U8 live broadcast list according to the TS file sequence, store the TS file sequence in a database, and output an M3U8 live broadcast list to the client.
进一步地, 所述客户端发出的指令消息是 XML文件。  Further, the instruction message sent by the client is an XML file.
进一步地, 步骤 B还包括以下步骤: 如果不需要更换当前客户端播放的 节目, 本流程停止。  Further, step B further includes the following steps: If the program currently played by the client is not required to be replaced, the process stops.
进一步地, 步骤 C还包括以下步骤:  Further, step C further includes the following steps:
将当前时间转换成当前时间戳, 判断所述当前时间戳是否在所述节目开 始结束时间戳信息范围中, 若在其中, 节目正在播出, 根据当前时间戳对应 的 M3U8播放列表地址信息获得 M3U8播放列表, 并每间隔预设时间重新根 据当前时间戳对应的 M3U8播放列表的地址获取更新的 M3U8播放列表, 若 所述当前时间戳不在所述节目开始结束时间戳信息范围中, 节目停止或尚未 开始播出, 每隔预设时间重新判断当前时间转换成的当前时间戳是否在节目 开始结束时间戳范围中。  Converting the current time to the current timestamp, determining whether the current timestamp is in the range of the start timestamp information of the program, and if the program is being broadcasted, obtaining the M3U8 according to the M3U8 playlist address information corresponding to the current timestamp. Playing the playlist, and re-acquiring the updated M3U8 playlist according to the address of the M3U8 playlist corresponding to the current timestamp every preset time interval, if the current timestamp is not in the range of the start timestamp information of the program, the program stops or has not yet The broadcast is started, and it is re-determined every preset time whether the current time stamp converted into the current time is in the program start end time stamp range.
本发明另一方面还提供了一种视频播放的后台控制系统, 适应于互联网 电视播控领域,包括中央控制装置、接口装置、 M3U8播放列表获取解析装置、 整流装置、 指令消息解析装置和队列管理装置, 所述中央控制装置与接口装 置、 M3U8播放列表获取解析装置、 整流装置和指令消息解析装置分别连接, 所述队列管理装置与 M3U8播放列表获取解析装置和整流装置分别连接; 其 所述中央控制装置用于装置间的调用; Another aspect of the present invention provides a background control system for video playback, which is adapted to the field of Internet television broadcast control, including a central control device, an interface device, an M3U8 playlist acquisition and parsing device, a rectification device, an instruction message parsing device, and a queue management. The central control device is respectively connected to the interface device, the M3U8 playlist acquisition and analysis device, the rectifying device, and the command message parsing device, and the queue management device is respectively connected to the M3U8 playlist acquisition and parsing device and the rectifying device; The central control device is used for invoking between devices;
所述接口装置用于对外提供接口服务;  The interface device is configured to provide an interface service to the outside;
所述 M3U8 播放列表获取解析装置用于根据 M3U8 播放列表地址得到 M3U8播放列表, 解析 M3U8播放列表, 获得 TS文件;  The M3U8 playlist acquisition parsing device is configured to obtain an M3U8 playlist according to the M3U8 playlist address, parse the M3U8 playlist, and obtain a TS file;
所述整流装置用于将获得的 TS文件进行解复用、 打入连续时间戳、 调整 编码参数、 再复用, 形成 TS文件序列, 才艮据所述 TS文件序列得到 M3U8直 播列表, 输出 TS文件序列, 输出 M3U8直播列表;  The rectifying device is configured to demultiplex the obtained TS file, input a continuous time stamp, adjust the encoding parameters, and re-multiplex, to form a TS file sequence, and obtain the M3U8 live broadcast list according to the TS file sequence, and output the TS File sequence, output M3U8 live broadcast list;
所述指令消息解析装置用于实现指令消息的加载、 解析和存储; 所述队列管理装置用于实现 TS文件地址队列和 TS文件整流队列的管理。 进一步地, 所述中央控制装置进一步包含控制函数模块和代理函数模块, 所述控制函数模块用于线程启停;  The instruction message parsing apparatus is configured to implement loading, parsing, and storing of an instruction message; and the queue management apparatus is configured to implement management of a TS file address queue and a TS file rectification queue. Further, the central control device further includes a control function module and a proxy function module, where the control function module is used for starting and stopping the thread;
所述代理函数模块用于对应其他装置。 本发明的技术效果在于:  The proxy function module is used to correspond to other devices. The technical effects of the present invention are:
能够为互联网电视的用户提供一种虚拟形式的视频直播, 使互联网电视 节目的编排更简单、 易操作, 点播和直播延迟时间更短, 实现直播回看功能。  It can provide a virtual form of video live broadcast for Internet TV users, making the layout of Internet TV programs simpler and easier to operate, and the on-demand and live broadcast delay time is shorter, realizing the live broadcast review function.
本发明的其它特征和优点将在随后的说明书中阐述, 并且, 部分地从说 明书中变得显而易见, 或者通过实施本发明而了解。 本发明的目的和其他优 点可通过在所写的说明书、 权利要求书、 以及附图中所特别指出的结构来实 现和获得。  Other features and advantages of the invention will be set forth in the description which follows, The objectives and other advantages of the invention will be realized and attained by the <RTI
下面通过附图和实施例, 对本发明的技术方案做进一步的详细描述。 附图说明  The technical solution of the present invention will be further described in detail below through the accompanying drawings and embodiments. DRAWINGS
附图用来提供对本发明的进一步理解, 并且构成说明书的一部分, 与本 发明的实施例一起用于解释本发明, 并不构成对本发明的限制。 在附图中: 图 1是本发明具体实施方式中视频播放的后台控制方法的流程图。  The drawings are intended to provide a further understanding of the invention, and are intended to be a part of the description of the invention. In the drawings: FIG. 1 is a flow chart of a background control method for video playback in a specific embodiment of the present invention.
图 2是本发明具体实施方式中视频播放的后台控制系统的结构示意图。 具体实施方式 2 is a schematic structural diagram of a background control system for video playback in a specific embodiment of the present invention. detailed description
以下结合附图对本发明的优选实施例进行说明, 应当理解, 此处所描述 的优选实施例仅用于说明和解释本发明, 并不用于限定本发明。  The preferred embodiments of the present invention are described with reference to the accompanying drawings, and the preferred embodiments of the present invention are intended to illustrate and explain the invention.
图 1 是本发明具体实施方式中视频播放的后台控制方法的详细流程图。 如图 1所示, 视频播放的后台控制方法的流程, 具体包括以下步骤:  1 is a detailed flowchart of a background control method for video playback in a specific embodiment of the present invention. As shown in FIG. 1 , the flow of the background control method for video playback specifically includes the following steps:
步骤 101、 服务器收到客户端发来的指令消息后, 解析指令消息, 获得节 目列表更新信息、 节目类型信息、 节目开始结束时间戳信息和 M3U8 (—种编 码格式)播放列表地址信息。  Step 101: After receiving the instruction message sent by the client, the server parses the instruction message, and obtains the program list update information, the program type information, the program start end time stamp information, and the M3U8 (--code format) playlist address information.
其中客户端发来的指令消息是可扩展标记语言 (Extensible Markup Language, XML)格式文件;  The instruction message sent by the client is an Extensible Markup Language (XML) format file;
节目列表更新信息为 cmd字段,若 cmd=l ,表示节目列表已更新,若 cmd=2, 表示节目列表未更新;  The program list update information is a cmd field. If cmd=l, it indicates that the program list has been updated. If cmd=2, it indicates that the program list is not updated.
视频源 ID (标识)信息为 sourceld字段, 存储视频源 ID;  The video source ID (identification) information is a sourceld field, and the video source ID is stored;
节目类型信息为 sourceType字段, 若 sourceType=l , 表示节目类型为直 播节目, 若 sourceType=2 , 表示节目类型不是直播节目;  The program type information is a sourceType field. If sourceType=l, it indicates that the program type is a direct broadcast program. If sourceType=2, it indicates that the program type is not a live program;
节目开始结束时间戳信息为 sourceTime字段, 记录节目的开始时间戳和 结束时间戳;  The start timestamp information of the program is a sourceTime field, and the start time stamp and the end time stamp of the program are recorded;
M3U8播放列表地址信息为 m3u8Id字段, 记录 M3U8播放列表地址。 步骤 102、根据所述节目列表更新信息, 判断是否需要更换当前客户端播 放的节目, 若 cmd=l , 转至步骤 103 , 若 cmd=2 , 本流程停止。  The M3U8 playlist address information is the m3u8Id field, and the M3U8 playlist address is recorded. Step 102: According to the program list update information, determine whether it is necessary to replace the program played by the current client. If cmd=l, go to step 103. If cmd=2, the process stops.
步骤 103、根据所述节目类型信息判断节目类型信息是否为直播节目, 若 sourceType=2, 转至步骤 104, 若 sourceType=l , 转至步骤 105。  Step 103: Determine, according to the program type information, whether the program type information is a live program. If sourceType=2, go to step 104. If sourceType=1, go to step 105.
步骤 104、 根据所述 M3U8播放列表地址信息, 取得 M3U8播放列表,转 至步骤 106。  Step 104: Acquire an M3U8 playlist according to the M3U8 playlist address information, and go to step 106.
步骤 105、 将当前时间转换成 unix当前时间戳, 判断当前时间戳是否在 sourceTime字段中, 若在其中, 节目正在播出, 根据当前时间戳对应的 M3U8 播放列表的地址获取 M3U8播放列表, 并每间隔 3秒重新根据时间戳对应的 M3U8 播放列表的地址获取更新的 M3U8 播放列表, 若所述时间戳不在 sourceTime字段中, 节目停止或尚未播出, 每隔 10秒重新判断当前时间转换 成的时间戳是否在 sourceTime字段中。 Step 105: Convert the current time into a current timestamp of the unix, and determine whether the current timestamp is in the sourceTime field. If the program is being broadcasted, the M3U8 corresponding to the current timestamp. The M3U8 playlist is obtained by the address of the playlist, and the updated M3U8 playlist is obtained according to the address of the M3U8 playlist corresponding to the timestamp every 3 seconds. If the timestamp is not in the sourceTime field, the program stops or has not been broadcasted. It is re-determined every 10 seconds whether the time stamp converted into the current time is in the sourceTime field.
步骤 106、 解析所述 M3U8播放列表, 获取 TS (一种文件格式 )文件地 址, 取得 TS文件并緩存。  Step 106: Parse the M3U8 playlist, obtain a TS (a file format) file address, obtain a TS file, and cache.
步骤 107、 将所述 TS文件解码, 调整视频格式、 音频格式、 DTS ( Digital Theatre System, 数字化影院系统, 一种音频格式)、 帧频和比特率, 重新排列 后写入连续时间戳, 输出 TS文件序列。  Step 107: Decode the TS file, adjust a video format, an audio format, a DTS (Digital Theatre System, an audio format), a frame rate, and a bit rate, rearrange and write a continuous time stamp, and output a TS. File sequence.
步骤 108、 根据 apache (一种服务器)发布目录找到当前 TS文件的绝对 路径, 写入 M3U8直播列表, 将所述 TS文件序列存入数据库。  Step 108: Find an absolute path of the current TS file according to the apache (a server) publishing directory, write the M3U8 live broadcast list, and store the TS file sequence in the database.
步骤 109、 输出 M3U8直播列表至客户端。  Step 109: Output the M3U8 live broadcast list to the client.
图 2是本发明具体实施方式中视频播放的后台控制系统的结构示意图。 如图 2所示, 视频播放的后台控制系统的系统主要包括以下几个装置: 中央 控制装置 201、 接口装置 202、 M3U8播放列表获取解析装置 203、 整流装置 204、 指令消息解析装置 205、 队列管理装置 206。 中央控制装置进一步包括 控制函数模块 2011和代理函数模块 2022。  2 is a schematic structural diagram of a background control system for video playback in a specific embodiment of the present invention. As shown in FIG. 2, the system of the background control system for video playback mainly includes the following devices: a central control device 201, an interface device 202, an M3U8 playlist acquisition parsing device 203, a rectifying device 204, an instruction message parsing device 205, and a queue management. Device 206. The central control unit further includes a control function module 2011 and a proxy function module 2022.
中央控制装置 201与接口装置 202、 M3U8播放列表获取解析装置 203、 整流装置 204和指令消息解析装置 205分别连接。队列管理装置 206与 M3U8 播放列表获取解析装置 203和整流装置 204分别连接。  The central control unit 201 is connected to the interface unit 202, the M3U8 playlist acquisition and analysis unit 203, the rectifying unit 204, and the command message analyzing unit 205, respectively. The queue management device 206 is connected to the M3U8 playlist acquisition analyzing device 203 and the rectifying device 204, respectively.
中央控制装置 201用于实现装置间的调用, 其中控制函数模块 2011用于 线程启停, 代理函数模块 2022用于对应其他装置。  The central control device 201 is used to implement inter-device calls, wherein the control function module 2011 is used for thread start and stop, and the proxy function module 2022 is used for corresponding devices.
接口装置 202用于对外提供接口服务。  The interface device 202 is configured to provide an interface service to the outside.
M3U8 播放列表获取解析装置 203 用于根据 M3U8 播放列表地址得到 M3U8播放列表, 解析 M3U8播放列表, 获得 TS文件。  The M3U8 playlist acquisition parsing device 203 is configured to obtain an M3U8 playlist according to the M3U8 playlist address, parse the M3U8 playlist, and obtain a TS file.
整流装置 204用于将获得的 TS文件进行解复用、 打入连续时间戳、 调整 编码参数、 再复用, 形成 TS文件序列, 才艮据所述 TS文件序列得到 M3U8直 播列表, 输出 TS文件序列, 输出 M3U8直播列表。 The rectifying device 204 is configured to demultiplex the obtained TS file, input a continuous time stamp, adjust the encoding parameters, and re-multiplex, to form a TS file sequence, and obtain the M3U8 straight according to the TS file sequence. Broadcast list, output TS file sequence, output M3U8 live list.
指令消息解析装置 205用于实现指令消息的加载、 解析和存储。  The instruction message parsing means 205 is for implementing loading, parsing and storing of instruction messages.
队列管理装置 206用于实现 TS文件地址队列和 TS文件整流队列的管理。 本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或 计算机程序产品。 因此, 本发明可釆用完全硬件实施例、 完全软件实施例、 或结合软件和硬件方面的实施例的形式。 而且, 本发明可釆用在一个或多个 其中包含有计算机可用程序代码的计算机可用存储介质 (包括但不限于磁盘 存储器、 CD-ROM、 光学存储器等)上实施的计算机程序产品的形式。  The queue management device 206 is configured to implement management of the TS file address queue and the TS file rectification queue. Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can be embodied in the form of one or more computer program products embodied on a computer-usable storage medium (including but not limited to disk storage, CD-ROM, optical storage, etc.) in which computer usable program code is embodied.
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序产 品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流程图 和 /或方框图中的每一流程和 /或方框、 以及流程图和 /或方框图中的流程 和 /或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器, 使得通 过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流 程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的 装置。  The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowcharts and/or block diagrams, and combinations of flow and/or blocks in the flowcharts and/or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设 备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存储器 中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个流程或 多个流程和 /或方框图一个方框或多个方框中指定的功能。  The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上, 使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的 处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图 一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的步骤。  These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管已描述了本发明的优选实施例, 但本领域内的技术人员一旦得知了 基本创造性概念, 则可对这些实施例作出另外的变更和修改。 所以, 所附权 利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。 脱离本发明实施例的精神和范围。 这样, 倘若本发明实施例的这些修改和变 型属于本发明权利要求及其等同技术的范围之内, 则本发明也意图包含这些 改动和变型在内。 Although the preferred embodiment of the invention has been described, it will be apparent to those skilled in the art that, Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and The spirit and scope of the embodiments of the present invention are departed. Thus, it is intended that the present invention cover the modifications and modifications of the embodiments of the invention.

Claims

权 利 要 求 Rights request
1、 一种视频播放的后台控制方法, 适用于互联网电视播控领域, 其特征 在于, 包括以下步骤:  1. A background control method for video playback, which is applicable to the field of Internet television broadcast control, and is characterized in that it comprises the following steps:
A、 服务器收到客户端发来的指令消息后, 解析指令消息, 获得节目列表 更新信息、 节目类型信息、 节目开始结束时间戳信息和 M3U8播放列表地址 信息;  A. After receiving the instruction message sent by the client, the server parses the instruction message, and obtains program list update information, program type information, program start timestamp information, and M3U8 playlist address information;
B、根据所述节目列表更新信息, 判断是否需要更换当前客户端播放的节 目, 如果是, 转至步骤 C;  B, according to the program list update information, determine whether it is necessary to replace the program currently played by the client, and if so, go to step C;
C、 根据所述节目类型信息判断节目类型信息是否为直播节目, 若不是, 根据所述 M3U8播放列表地址信息获取 M3U8播放列表, 并转至步骤 D, 若 是直播节目, 将当前时间转换成当前时间戳, 根据所述 M3U8播放列表地址 信息获取当前时间戳对应的 M3U8播放列表, 并转至步骤 D;  C. Determine, according to the program type information, whether the program type information is a live broadcast program. If not, obtain an M3U8 playlist according to the M3U8 playlist address information, and go to step D. If it is a live broadcast program, convert the current time into a current time. Poke, according to the M3U8 playlist address information to obtain the M3U8 playlist corresponding to the current timestamp, and proceeds to step D;
D、解析所述 M3U8播放列表,获取 TS文件地址,取得 TS文件并緩存; D. Parsing the M3U8 playlist, obtaining the TS file address, obtaining the TS file and caching;
E、 将所述 TS文件解码, 调整参数, 重新排列后写入连续时间戳, 输出 TS文件序列; E. Decoding the TS file, adjusting parameters, rearranging, writing a continuous timestamp, and outputting a TS file sequence;
F、 根据所述 TS文件序列制作 M3U8直播列表, 将所述 TS文件序列存 入数据库, 输出 M3U8直播列表至客户端。  F. Create an M3U8 live broadcast list according to the TS file sequence, store the TS file sequence in a database, and output an M3U8 live broadcast list to the client.
2、 根据权利要求 1中所述的视频播放的后台控制方法, 其特征在于, 所 述客户端发出的指令消息是 XML文件。  2. The background control method for video playback according to claim 1, wherein the instruction message sent by the client is an XML file.
3、 根据权利要求 1中所述的视频播放的后台控制方法, 其特征在于, 步 骤 B进一步地还包括以下步骤:  The background control method for video playback according to claim 1, wherein the step B further comprises the following steps:
如果不需要更换当前客户端播放的节目, 本流程停止。  This process stops if there is no need to replace the program currently being played by the client.
4、 根据权利要求 1中所述的视频播放的后台控制方法, 其特征在于, 步 骤 C进一步地还包括以下步骤:  The background control method for video playback according to claim 1, wherein the step C further comprises the following steps:
将当前时间转换成当前时间戳, 判断所述当前时间戳是否在所述节目开 始结束时间戳信息范围中, 若在其中, 节目正在播出, 根据当前时间戳对应 的 M3U8播放列表地址信息获得 M3U8播放列表, 并每间隔预设时间重新根 据当前时间戳对应的 M3U8播放列表的地址获取更新的 M3U8播放列表, 若 所述当前时间戳不在所述节目开始结束时间戳信息范围中, 节目停止或尚未 开始播出, 每隔预设时间重新判断当前时间转换成的当前时间戳是否在节目 开始结束时间戳范围中。 Converting the current time into a current timestamp, determining whether the current timestamp is in the range of the start timestamp information of the program, and if the program is being broadcasted, corresponding to the current timestamp The M3U8 playlist address information obtains the M3U8 playlist, and re-acquires the updated M3U8 playlist according to the address of the M3U8 playlist corresponding to the current timestamp every preset time interval, if the current timestamp is not at the beginning and end timestamp of the program In the information range, the program stops or has not started to be broadcasted, and it is re-determined every preset time whether the current time stamp converted into the current time is in the program start end time stamp range.
5、 一种视频播放的后台控制系统, 适用于互联网电视播控领域, 其特征 在于, 包括中央控制装置、接口装置、 M3U8播放列表获取解析装置、 整流装 置、指令消息解析装置和队列管理装置,所述中央控制装置与接口装置、 M3U8 播放列表获取解析装置、 整流装置和指令消息解析装置分别连接, 所述队列 管理装置与 M3U8播放列表获取解析装置和整流装置分别连接; 其中  5. A background control system for video playback, suitable for the field of Internet television broadcast control, characterized in that it comprises a central control device, an interface device, an M3U8 playlist acquisition and analysis device, a rectification device, an instruction message parsing device and a queue management device. The central control device is respectively connected to the interface device, the M3U8 playlist acquisition and analysis device, the rectification device and the instruction message analysis device, and the queue management device is respectively connected to the M3U8 playlist acquisition and analysis device and the rectification device;
所述中央控制装置用于装置间的调用;  The central control device is used for invoking between devices;
所述接口装置用于对外提供接口服务;  The interface device is configured to provide an interface service to the outside;
所述 M3U8 播放列表获取解析装置用于根据 M3U8 播放列表地址得到 M3U8播放列表, 解析 M3U8播放列表, 获得 TS文件;  The M3U8 playlist acquisition parsing device is configured to obtain an M3U8 playlist according to the M3U8 playlist address, parse the M3U8 playlist, and obtain a TS file;
所述整流装置用于将获得的 TS文件进行解复用、 打入连续时间戳、 调整 编码参数、 再复用, 形成 TS文件序列, 才艮据所述 TS文件序列得到 M3U8直 播列表, 输出 TS文件序列, 输出 M3U8直播列表;  The rectifying device is configured to demultiplex the obtained TS file, input a continuous time stamp, adjust the encoding parameters, and re-multiplex, to form a TS file sequence, and obtain the M3U8 live broadcast list according to the TS file sequence, and output the TS File sequence, output M3U8 live broadcast list;
所述指令消息解析装置用于实现指令消息的加载、 解析和存储; 所述队列管理装置用于实现 TS文件地址队列和 TS文件整流队列的管理。 The instruction message parsing apparatus is configured to implement loading, parsing, and storing of an instruction message; and the queue management apparatus is configured to implement management of a TS file address queue and a TS file rectification queue.
6、 根据权利要求 5所述的视频播放的后台控制系统, 其特征在于, 所述 中央控制装置进一步包括控制函数模块和代理函数模块, 6. The background control system for video playback according to claim 5, wherein the central control device further comprises a control function module and a proxy function module,
所述控制函数模块用于线程启停;  The control function module is used for starting and stopping a thread;
所述代理函数模块用于对应其他装置。  The proxy function module is used to correspond to other devices.
PCT/CN2013/073628 2012-04-12 2013-04-02 Background control method and system for video playing WO2013152689A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210106533.9A CN102857797B (en) 2012-04-12 2012-04-12 Background control method and system for video playing
CN201210106533.9 2012-04-12

Publications (1)

Publication Number Publication Date
WO2013152689A1 true WO2013152689A1 (en) 2013-10-17

Family

ID=47403929

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/073628 WO2013152689A1 (en) 2012-04-12 2013-04-02 Background control method and system for video playing

Country Status (2)

Country Link
CN (1) CN102857797B (en)
WO (1) WO2013152689A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111246314A (en) * 2020-01-14 2020-06-05 深圳市华曦达科技股份有限公司 Time-shifting live broadcast method, server device, client device and live broadcast system

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857797B (en) * 2012-04-12 2014-03-19 天脉聚源(北京)传媒科技有限公司 Background control method and system for video playing
CN103096131B (en) * 2013-02-06 2016-06-08 天脉聚源(北京)传媒科技有限公司 A kind of live method for stream processing and device
CN104244079B (en) * 2013-06-07 2019-07-16 腾讯科技(深圳)有限公司 A kind of method for downloading video and device
CN103310001B (en) * 2013-06-26 2017-03-08 小米科技有限责任公司 A kind of method and apparatus that list of videos is set
CN103533439A (en) * 2013-09-30 2014-01-22 乐视网信息技术(北京)股份有限公司 Multimedia file recommendation method and electronic equipment
CN103561337A (en) * 2013-10-30 2014-02-05 乐视致新电子科技(天津)有限公司 Live web casting method and device based on intelligent television
CN103607655B (en) * 2013-11-15 2017-02-01 乐视网信息技术(北京)股份有限公司 A playback method for live programs and an electronic device
CN103686245B (en) * 2013-11-22 2017-03-15 乐视致新电子科技(天津)有限公司 A kind of program request based on HLS protocol and live switching method and apparatus
CN103702171B (en) * 2013-12-12 2017-02-08 乐视网信息技术(北京)股份有限公司 Method for downloading video stream and electronic equipment
TWI533678B (en) * 2014-01-07 2016-05-11 緯創資通股份有限公司 Methods for synchronization of live streaming broadcast and systems using the same
CN103731684B (en) * 2014-01-26 2017-06-16 飞狐信息技术(天津)有限公司 A kind of point is multicast to live video switching method, equipment and system
CN105812850A (en) * 2014-12-31 2016-07-27 乐视网信息技术(北京)股份有限公司 Video file playing method and system thereof
CN105897850A (en) * 2015-12-22 2016-08-24 乐视云计算有限公司 Response processing method and system and scheduling proxy server for CDN platform
CN105898535A (en) * 2015-12-30 2016-08-24 乐视致新电子科技(天津)有限公司 Play start speed improving method, video player and electronic device
CN106131588A (en) * 2016-07-12 2016-11-16 乐视控股(北京)有限公司 The order method of a kind of carousel platform multimedia programming and device
CN106331757B (en) * 2016-08-17 2020-04-24 无锡天脉聚源传媒科技有限公司 Method and device for controlling audio and video data playing
CN106303587A (en) * 2016-08-18 2017-01-04 无锡天脉聚源传媒科技有限公司 A kind of method and device downloading audio, video data
CN110198481B (en) * 2019-05-30 2021-11-02 北京创维海通数字技术有限公司 Program updating method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938483A (en) * 2010-09-03 2011-01-05 中兴通讯股份有限公司 Method and system for distributing live broadcast contents
US20110072105A1 (en) * 2008-12-31 2011-03-24 David Biderman Variant streams for real-time or near real-time streaming to provide failover protection
CN102308547A (en) * 2008-12-31 2012-01-04 苹果公司 Method for streaming multimedia data over a non-streaming protocol
CN102857797A (en) * 2012-04-12 2013-01-02 天脉聚源(北京)传媒科技有限公司 Background control method and system for video playing

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101202895B (en) * 2007-09-18 2011-09-28 深圳市同洲电子股份有限公司 Method and system for playback of live program
CN101540947B (en) * 2009-04-03 2011-12-07 中兴通讯股份有限公司 Analog live broadcasting method of mobile streaming media and content switching method thereof
CN101668200A (en) * 2009-09-23 2010-03-10 天栢宽带网络科技(上海)有限公司 High-speed pushing method of digital television data file based on streaming video and device thereof
CN101959056B (en) * 2010-08-18 2014-01-01 中兴通讯股份有限公司 Electronic program guide navigation method and system in internet protocol television
CN102118428B (en) * 2010-12-29 2012-12-26 天脉聚源(北京)传媒科技有限公司 Method and system for playing streaming media

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110072105A1 (en) * 2008-12-31 2011-03-24 David Biderman Variant streams for real-time or near real-time streaming to provide failover protection
CN102308547A (en) * 2008-12-31 2012-01-04 苹果公司 Method for streaming multimedia data over a non-streaming protocol
CN101938483A (en) * 2010-09-03 2011-01-05 中兴通讯股份有限公司 Method and system for distributing live broadcast contents
CN102857797A (en) * 2012-04-12 2013-01-02 天脉聚源(北京)传媒科技有限公司 Background control method and system for video playing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111246314A (en) * 2020-01-14 2020-06-05 深圳市华曦达科技股份有限公司 Time-shifting live broadcast method, server device, client device and live broadcast system
CN111246314B (en) * 2020-01-14 2021-12-17 深圳市华曦达科技股份有限公司 Time-shifting live broadcast method, server device, client device and live broadcast system

Also Published As

Publication number Publication date
CN102857797A (en) 2013-01-02
CN102857797B (en) 2014-03-19

Similar Documents

Publication Publication Date Title
WO2013152689A1 (en) Background control method and system for video playing
US11765414B2 (en) Transmitting method, receiving method, transmitting apparatus, and receiving apparatus
JP6818848B2 (en) Sending method and receiving method
US10250949B2 (en) Broadcast content to HTTP client conversion
JP5668512B2 (en) Information processing apparatus and information processing method
WO2012096372A1 (en) Content reproduction device, content reproduction method, delivery system, content reproduction program, recording medium, and data structure
US9357239B2 (en) Converting live streaming content to video-on-demand streaming content
US20170063960A1 (en) Transporting coded audio data
WO2016011823A1 (en) Method for acquiring live video slice, server, and storage medium
EP2938091B1 (en) Method and device for receiving and sending media file and system
WO2013185514A1 (en) System and method for playing streaming media
JP2016526349A (en) Synchronizing multiple over-the-top streaming clients
WO2018103696A1 (en) Media file playback method, server, client, and system
JP2013511201A (en) Data transmission method and apparatus
JP2015136060A (en) Communication device, communication data generation method, and communication data processing method
JP6359539B2 (en) Control during rendering
JP7308134B2 (en) How to send and receive
US20210021655A1 (en) System and method for streaming music on mobile devices
WO2014101379A1 (en) Method and apparatus for editing live stream based on m3u8 list protocol
WO2016174960A1 (en) Reception device, transmission device, and data processing method
WO2017080427A1 (en) Media playing method, terminal, system and computer storage medium
WO2014208377A1 (en) Content supply device, content supply method, program, terminal device, and content supply system
JP2015136059A (en) Communication device, communication data generation method, and communication data processing method
WO2017038353A1 (en) Receiving device, transmitting device, and data processing method
WO2011157212A1 (en) Processing system and method for video-on-demand in an interactive network television

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13776025

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13776025

Country of ref document: EP

Kind code of ref document: A1