CN105721952A - Live streaming network transmission method and system for equal-length slices - Google Patents

Live streaming network transmission method and system for equal-length slices Download PDF

Info

Publication number
CN105721952A
CN105721952A CN201610052901.4A CN201610052901A CN105721952A CN 105721952 A CN105721952 A CN 105721952A CN 201610052901 A CN201610052901 A CN 201610052901A CN 105721952 A CN105721952 A CN 105721952A
Authority
CN
China
Prior art keywords
section
file
duration
equal
slices
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
CN201610052901.4A
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.)
Concept Of Cloud (beijing) Information Technology Co Ltd
Original Assignee
Concept Of Cloud (beijing) Information Technology 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 Concept Of Cloud (beijing) Information Technology Co Ltd filed Critical Concept Of Cloud (beijing) Information Technology Co Ltd
Priority to CN201610052901.4A priority Critical patent/CN105721952A/en
Publication of CN105721952A publication Critical patent/CN105721952A/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/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
    • 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/8455Structuring of content, e.g. decomposing content into time segments involving pointers to the content, e.g. pointers to the I-frames of the video stream
    • 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/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Abstract

The invention provides a live streaming network transmission method and system for equal-length slices. The system comprises a streaming media server for slicing a video stream into the equal-length slices according to an absolute timestamp, and a corresponding special purpose terminal player. According to the method, a non-indexed equal-length slicing technology is utilized to perform equal-length slicing on the video stream according to the absolute timestamp to obtain the equal-length slices, the equal-length slices are saved, a file is named according to the absolute timestamp, and the player can automatically calculate a URL of a required sliced file through time calibration between the player and a server. According to the non-indexed equal-length slicing technology, regular refreshing of a list file from a source station is not required, a request of an index file is eliminated, the response speed is greatly improved, and the server load is effectively reduced.

Description

A kind of live TV stream network transfer method waiting duration section and system
Technical field
The present invention relates to stream media technology field, specifically, particularly relate to the method and system of a kind of Streaming Media section.
Background technology
In recent years, in Streaming Media field, video flowing is extensively taken slicing mode and processes, for instance the HLS protocol of Fructus Mali pumilae, the HDS agreement of Adobe, the SmoothStreaming of Microsoft, most widely used is exactly HLS protocol at present.For live application, it is simple to carry out time shifting broadcasting.And adopt HTTP transmission section, convenient deployment, facilitate CDN buffered video.
Above-mentioned agreement is desirable that and often a piece of can all independently decode, and the first namely often a piece of frame is all key frame, and the duration of so each section will not be completely the same, so needing to provide a playlist for each program.
These protocol requirements are one group of duration and the close media file (calling section) of size video flowing cutting, form a playlist for these media files simultaneously, and playlist is actually duration and the url list of a section.Cutting into slices and store with document form, during broadcasting, first terminal downloads playlist, downloads each section further according to playlist successively in HTTP mode and plays out, and in process, circulation refreshes playlist, to obtain new slice information.
It is in that by the place that the method for key frame section is not enough above:
1. during terminal plays, it is necessary to first download playlist, downloading each section further according to playlist successively and play out, programme televised live from source station periodic refreshing index list file, need to take server resource, reduce response speed.
2. in order to support direct broadcast time-shift, in live broadcast system, it is necessary to preserve the information such as the timestamp of all sections, duration and URL, and need real-time query data base.During time shifting broadcasting, it is necessary to according to playlist, all slice information before calculating terminal, bring bigger IO pressure and complicated logic to streaming media server.
Summary of the invention
It is an object of the invention to overcome the problems referred to above, the duration section protocol such as have employed, carry out waiting duration cut into slices and preserve according to timestamp by video flowing, filename temporally stabs and is named.Calculate the URL of section when player plays and dragging according to time point, download and play.
In the present invention, the section of programme televised live calculates according to absolute timestamp (number of seconds of distance 1970-01-0100:00:00UTC).
First and server time-revise in the present invention, in live broadcast system, player, obtains currently correct absolute time, then calculates URL, downloads section, commences play out.
During time shifting broadcasting, it is possible to directly calculate the URL of the section file of terminal according to time point, play out.
Above-mentioned situation all without from source station periodic refreshing listing file, eliminating the request of index file, be greatly improved response speed, can effectively reduce server load.The comparison of the duration microtomies such as accompanying drawing is and other microtomy.
Wait the Streaming Media dicing method of duration and the system of the present invention include: live video stream carries out waiting the streaming media server of duration section according to absolute timestamp, and special-purpose terminal player accordingly.
The above-mentioned video flowing carrying out cutting into slices is when encoder is encoded, and for ensureing that each section can independently decode, sets key frame distance less than given section duration, so may insure that each section comprises key frame (I frame).Such player is taken and a piece of can be play immediately.
Accompanying drawing explanation
Accompanying drawing be the embodiment of the present invention playing flow figure and with the contrast of other modes.
Detailed description of the invention
Below with reference to accompanying drawing, embodiments of the invention are described in detail.It is to be understood that embodiment described herein is only for illustrating the present invention, is not intended to limit the present invention.
Referring to accompanying drawing, it illustrates the Streaming Media section waiting duration and the terminal plays flow process of the embodiment of the present invention, comprises the following steps:
Step 1. live broadcast stream media server starts video flowing is cut into slices by given section duration, and section file is named by absolute timestamp.Absolute timestamp is the number of seconds of distance zero point on the 1st January in 1970, shows as the integer of a long number.For convenience of understanding, when we illustrate, the name of section was replaced with date and time, such as: first section for 20151222100000.ts, represents that it is December in 2015 10:00:00 on the 22nd section carried out, and second section is 20151222100003.ts, ..., the rest may be inferred;
Step 2. terminal player and server time-revise;
Step 3. terminal player starts to download first section file 20151222100000.ts, is saved in relief area;
Step 4. terminal player calculates the URL of second section file automatically, it is assumed that given section duration is 3s, then second section is 20151222100003.ts, then downloads 20151222100003.ts, is saved in relief area;
Step 5. terminal player calculates the URL of the 3rd section file automatically, and downloads the 3rd section file 20151222100006.ts, is saved in relief area;
Step 6. terminal player commences play out the data of relief area, downloads subsequent slice simultaneously in good time;
The above-mentioned video flowing carrying out cutting into slices is when encoder is encoded, and for ensureing that each section can independently decode, sets key frame distance less than given section duration, so may insure that each section comprises key frame (I frame).Support that the special player without index slicing mode is when playing, it is not necessary to from source station periodic refreshing listing file, eliminate the request of index file, be greatly improved response speed, can effectively reduce server load.

Claims (5)

1. the live TV stream network transfer method waiting duration section and system, it is characterised in that comprise the following steps:
Step 1. live broadcast stream media server starts video flowing is cut into slices by given section duration, and section file is named by absolute timestamp;
Step 2. terminal player and server time-revise;
Step 3 terminal player sends playing request, obtains slice information, starts to download first section file, is saved in relief area;Terminal player calculates the URL of second section file automatically, and downloads second section file, by that analogy, calculates section file URL successively, downloads and play subsequent slice, it is not necessary to source refresh list file is returned in timing;
Step 4. terminal player commences play out the data of relief area, downloads subsequent slice simultaneously in good time.
2. the method for the duration such as Streaming Media according to claim 1 section, it is characterized in that, the video flowing carrying out cutting into slices is when encoder is encoded, for ensureing that each section can independently decode, set key frame distance less than given section duration, so may insure that each section comprises key frame (I frame).
3. the method for the duration such as Streaming Media according to claim 1 section, it is characterised in that in described step 1, video flowing is cut into slices by given section duration, section file is named by absolute timestamp.
4. the method for the duration such as Streaming Media according to claim 1 section, it is characterized in that, described step 3, in 4, terminal player calculates the URL of second section file automatically, and download second section file, by that analogy, calculate section file URL successively, download and play subsequent slice, it is not necessary to source refresh list file is returned in timing.
5. by duration slice systems such as the Streaming Medias of method for designing described in Claims 1-4, including realizing the streaming media server of previous designs method and support the special player without index dicing method.
CN201610052901.4A 2016-01-27 2016-01-27 Live streaming network transmission method and system for equal-length slices Pending CN105721952A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610052901.4A CN105721952A (en) 2016-01-27 2016-01-27 Live streaming network transmission method and system for equal-length slices

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610052901.4A CN105721952A (en) 2016-01-27 2016-01-27 Live streaming network transmission method and system for equal-length slices

Publications (1)

Publication Number Publication Date
CN105721952A true CN105721952A (en) 2016-06-29

Family

ID=56155071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610052901.4A Pending CN105721952A (en) 2016-01-27 2016-01-27 Live streaming network transmission method and system for equal-length slices

Country Status (1)

Country Link
CN (1) CN105721952A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040769A (en) * 2018-08-22 2018-12-18 广东省南方数字电视无线传播有限公司 Direct broadcast time-shift method and device based on HLS protocol
WO2018232799A1 (en) * 2017-06-19 2018-12-27 网宿科技股份有限公司 Live broadcast rapid-startup method and system
CN109309643A (en) * 2017-07-26 2019-02-05 中国电信股份有限公司 Direct broadcast time-shift processing method, system and source station
CN109756757A (en) * 2019-03-21 2019-05-14 北京数码视讯软件技术发展有限公司 Live data processing method and processing device, live broadcasting method and device and direct broadcast server
CN111447455A (en) * 2018-12-29 2020-07-24 北京奇虎科技有限公司 Live video stream playback processing method and device and computing equipment
CN112584255A (en) * 2020-12-04 2021-03-30 广州虎牙科技有限公司 Method and device for playing streaming media data, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588473A (en) * 2009-06-18 2009-11-25 北京浪弯融科科技有限责任公司 Multimedia time shifting broadcasting method and system
CN102231860A (en) * 2011-06-03 2011-11-02 南京远古科技有限公司 Live time shift data storage method
CN103747296A (en) * 2013-12-31 2014-04-23 深圳市同洲电子股份有限公司 Video playing method and system
CN104581435A (en) * 2015-01-20 2015-04-29 赵树乔 Naming method of data stream
CN104885473A (en) * 2013-01-04 2015-09-02 高通股份有限公司 Live timing for dynamic adaptive streaming over http (dash)

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101588473A (en) * 2009-06-18 2009-11-25 北京浪弯融科科技有限责任公司 Multimedia time shifting broadcasting method and system
CN102231860A (en) * 2011-06-03 2011-11-02 南京远古科技有限公司 Live time shift data storage method
CN104885473A (en) * 2013-01-04 2015-09-02 高通股份有限公司 Live timing for dynamic adaptive streaming over http (dash)
CN103747296A (en) * 2013-12-31 2014-04-23 深圳市同洲电子股份有限公司 Video playing method and system
CN104581435A (en) * 2015-01-20 2015-04-29 赵树乔 Naming method of data stream

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018232799A1 (en) * 2017-06-19 2018-12-27 网宿科技股份有限公司 Live broadcast rapid-startup method and system
CN109309643A (en) * 2017-07-26 2019-02-05 中国电信股份有限公司 Direct broadcast time-shift processing method, system and source station
CN109309643B (en) * 2017-07-26 2021-03-30 中国电信股份有限公司 Live broadcast time shifting processing method and system and source station
CN109040769A (en) * 2018-08-22 2018-12-18 广东省南方数字电视无线传播有限公司 Direct broadcast time-shift method and device based on HLS protocol
CN111447455A (en) * 2018-12-29 2020-07-24 北京奇虎科技有限公司 Live video stream playback processing method and device and computing equipment
CN109756757A (en) * 2019-03-21 2019-05-14 北京数码视讯软件技术发展有限公司 Live data processing method and processing device, live broadcasting method and device and direct broadcast server
CN109756757B (en) * 2019-03-21 2021-07-13 北京数码视讯软件技术发展有限公司 Live broadcast data processing method and device, live broadcast method and device and live broadcast server
CN112584255A (en) * 2020-12-04 2021-03-30 广州虎牙科技有限公司 Method and device for playing streaming media data, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105721952A (en) Live streaming network transmission method and system for equal-length slices
US10397636B1 (en) Methods and systems for synchronizing data streams across multiple client devices
EP2391086B1 (en) Method and apparatus for playing live content
EP2373051B1 (en) Method and apparatus for providing timeshift service in digital broadcasting system and system thereof
CN103957469B (en) Based on the Internet video-on-demand method and system for turning encapsulation in real time
CN105282627A (en) Method for acquiring a live video clip and server
US8429250B2 (en) Transcodeless on-the-fly ad insertion
KR20140038492A (en) Apparatus and method for providing streaming contents
CN109194887B (en) Cloud shear video recording and editing method and plug-in
JP6338709B2 (en) Streaming apparatus and method thereof, streaming service system using the same, and computer-readable recording medium (streaming apparatus and method thereof, streaming service system using the streaming medium and computer readable)
CN105828096B (en) Method and device for processing media stream file
CN108200444B (en) Video live broadcast method, device and system
CN103686245A (en) Video-on-demand and live broadcasting switching method and device based on HLS protocol
AU2011233856B2 (en) Method and apparatus for providing timeshift service in digital broadcasting system and system thereof
CN111447455A (en) Live video stream playback processing method and device and computing equipment
CN104410901A (en) Play method and play device of M3U8 format live stream
CN103702176A (en) HLS (http live streaming) protocol-based video downloading method and device
CN104837033A (en) Information processing method and server
CN113727199A (en) HLS slice rapid playing starting method
CN105812831B (en) Network program recording method, device and system and playing method and device
CN104410879A (en) Time-shifting implementation method and device and server
US9998514B2 (en) Method and apparatus for handling files in association with media content delivery
CN106303754A (en) A kind of audio data play method and device
US11895350B2 (en) Techniques for providing a content stream based on a delivered stream of content
CN103796035A (en) Method for processing segmented programs, server and client device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160629