CN104202684A - Segmental network video seamless playing method and device - Google Patents
Segmental network video seamless playing method and device Download PDFInfo
- Publication number
- CN104202684A CN104202684A CN201410429285.0A CN201410429285A CN104202684A CN 104202684 A CN104202684 A CN 104202684A CN 201410429285 A CN201410429285 A CN 201410429285A CN 104202684 A CN104202684 A CN 104202684A
- Authority
- CN
- China
- Prior art keywords
- video data
- data buffer
- burst
- broadcasting
- video
- 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
Links
Landscapes
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a segmental network video seamless playing method and device. The method comprises the steps of: A1, downloading a playing list; A2, obtaining a storage address of each played segment based on the playing list; A3, setting a first video data buffer region and a second video data buffer region; A4, respectively downloading and buffering video data of adjacent played segments into the first video data buffer region and the second video data buffer region based on the sequence of the played segments, and decoding the video data for playing. The device comprises a control module, a buffer module and a decoding module, wherein the control module, the buffer module and the decoding module are connected in sequence; the control module is used for downloading the playing list, calculating a hop-broadcasting time stamp and performing video hop-broadcasting treatment; the buffer module is used for arranging the first video data buffer region and the second video data buffer region, and buffering the video data; the decoding module is used for obtaining the video data alternately in the first video data buffer region and the second video data buffer region, and decoding the video data.
Description
Technical field
The present invention relates to video playback technical field, be specifically related to a kind of segmented network video seamless play method and apparatus.
Background technology
Along with the extensive use that increase and the intelligence of the network bandwidth are play box (OTT), panel computer, user's experience requirements of netcast video also improves thereupon.The main feature of stream media technology be with the form of " stream (Streaming) " in the Internet based on IP agreement, carry out multi-medium data in real time, propagate continuously, client does not need to download whole media file before broadcasting, but when the media data of having received in buffer area is play, the remainder of Media Stream is still delivered to client from server continuously, i.e. so-called " download on limit, and play on limit ".Existing network video set resource comprises TV play, film, much be cut into a few minutes to tens minute not burst form existence of grade, multimedia play terminal playing network video, often run into picture between two video slicings switchings of broadcasting and there will be buffering wait situation, when this is because is switched to next video slicing, the network data of this video slicing can not be downloaded in time, can not carry out in time video decode, therefore cause the pause of video playback.
Summary of the invention
The technical problem to be solved in the present invention is, for the deficiencies in the prior art, provides a kind of segmented network video seamless play method and apparatus, and the Internet video that overcomes prior art is play the defect that causes broadcasting card to pause because downloading data is not prompt enough.
The present invention solves the problems of the technologies described above adopted technical scheme to be:
A segmented network video seamless play method, comprises step:
A1, downloading and playing list;
A2, according to described playlist, obtain the memory address that each plays burst;
A3, the first video data buffer and the second video data buffer are set;
The order of A4, the described broadcasting burst of foundation is downloaded the video data of adjacent described broadcasting burst respectively and is buffered to the first video data buffer and the second video data buffer the broadcasting of decoding.
According to embodiments of the invention, described steps A 4 also comprises step: if need redirect to play, the first described broadcasting burst of take is duration starting point, according to shift time, calculate to jump and broadcast the described broadcasting burst at timestamp place, and the video data of this broadcasting burst is buffered to the first video data buffer.
According to embodiments of the invention, if described jumping is broadcast timestamp in the broadcasting gap of two described broadcasting bursts, select previous described broadcasting burst and the video data of this broadcasting burst is buffered to the first video data buffer.
According to embodiments of the invention, if broadcasting timestamp, described jumping surpasses the total duration of all described broadcasting bursts, choose described in last and play burst and the video data of this broadcasting burst is buffered to the first video data buffer.
A kind of segmented network video seamless play device, comprise control module, buffer module and decoder module, described control module, described buffer module and described decoder module are connected successively, described control module is for downloading and playing list, calculate to jump and broadcast timestamp and carry out video jumping and broadcast processing, described buffer module is used for arranging the first video data buffer and the second video data buffer and video data is cushioned, and described decoder module is for alternately obtaining video data and decode in the first video data buffer and the second video data buffer.
Implement technical scheme of the present invention, there is following beneficial effect: the present invention is directed to netcast burst video, based on two-way, cushion, two of sync bufferings are play burst, guarantee that video loads fast, switch fast, realized seamless switching broadcasting, improved user and play experience.
Accompanying drawing explanation
Below by describing particularly the present invention with reference to accompanying drawing and in conjunction with example, advantage of the present invention and implementation will be more obvious, wherein content shown in accompanying drawing is only for explanation of the present invention, and do not form the restriction of going up in all senses of the present invention, in the accompanying drawings:
Fig. 1 is embodiment of the present invention flow chart;
Fig. 2 is that the present invention jumps and broadcasts process chart;
Fig. 3 is playlist fragment schematic diagram of the present invention;
Fig. 4 is playing device schematic diagram of the present invention.
Embodiment
Segmented network video seamless play method of the present invention, comprises step:
A1, downloading and playing list;
A2, according to described playlist, obtain the memory address that each plays burst;
A3, the first video data buffer and the second video data buffer are set;
The order of A4, the described broadcasting burst of foundation is downloaded the video data of adjacent described broadcasting burst respectively and is buffered to the first video data buffer and the second video data buffer the broadcasting of decoding.
Segmented network video seamless play device of the present invention, comprise control module, buffer module and decoder module, control module, buffer module and decoder module are connected successively, control module is for downloading and playing list, calculate to jump and broadcast timestamp and carry out video jumping and broadcast processing, buffer module is used for arranging the first video data buffer and the second video data buffer and video data is cushioned, and decoder module is for alternately obtaining video data and decode in the first video data buffer and the second video data buffer.
As shown in Figure 1, Figure 2, Figure 3 and Figure 4, the specific embodiment of the invention is as follows:
1: the list of control module downloading and playing also stores effective information, playlist comprises seamless play flag bit (AWPLAY_SEAMLESS), be used for distinguishing response seamless play network or general network data flow, live/program request flag bit (AWPLAY_ENDLIST), slicing files duration (AWPLAY_STREAM), the sequence (AWPLAY_SEQUENCE) of the current list the first burst, for distinguishing, whether upgrade local list sign, burst video name (1.MP4,, 2.MP4).Playlist structure figure as shown in Figure 3.
2: response play operation, according to reproduction time stamp, load i burst and put burst as first broadcast, start buffer module, buffer module arranges the first video data buffer and the second video data buffer, now load networks i fragment data is to the first video data buffer, meanwhile load networks i+1 fragment data is to the second video data buffer, and preserves as preliminary date.While finishing i burst, source, data area is switched to the second video data buffer, meanwhile, delete the first original video data in video data buffer, and start to load the video data of buffering i+2 burst, repeat above flow process.The i=1 of above-mentioned steps, 2 ... N, N+1 is Media Stream burst number.Especially, the first video data buffer 1 loads buffering i+2n burst, and the second video data buffer loads buffering i+2n+1 burst, i=1 wherein, and 2 ... J, J+1.Buffer module two-wire journey downloading data, makes full use of the network bandwidth.Suppose that network state is undesirable, now play and suspend, stop buffer status, buffering is continued in the first video data buffer and the second video data buffer.Following principle is followed in buffering area: giving tacit consent to maximum threshold values is 24 Mbytes, and this threshold values can be greater than the video data of each burst at present, and assurance data can not overflowed, and read network data is 32768 bytes at every turn.
3: response is jumped and broadcast operation, application terminal transmission jumping is broadcast the instruction time and is stabbed control module, and control module is found crucial burst according to timestamp.Jumping is broadcast flow process as shown in Figure 2.
4: take first burst as duration starting point, according to shift time point, calculate to jump and to broadcast timestamp specifically at i burst, if also jump between sowing time just in i burst, choose i burst and as jumping, broadcast rear first burst and load, buffering i fragment data, repeating step 2.
5: according to shift time point, calculate to jump and broadcast timestamp specifically between i burst and i+1 burst, suppose to jump between sowing time is t1, i burst play time is t2, i+1 burst play time is t3, and jumping between sowing time is t4 with i burst reproduction time difference, and jumping between sowing time is t5 with i+1 burst reproduction time difference, if t4<=t5, preferably i burst loads and plays, otherwise if t4>t5, preferably i+1 burst loads and plays.This rule is avoided because two bursts cause logical miss, cushions preferred fragment data to buffering area 1, repeating step 2.
6: if jump, broadcast timestamp and to surpass the total duration of all bursts, control module acquiescence is chosen last burst and as jumping, broadcast rear first burst address and load, avoid exceeding duration and directly exit broadcasting, affect user's experience.
Those skilled in the art do not depart from essence of the present invention and spirit, can there is various deformation scheme to realize the present invention, the foregoing is only the better feasible embodiment of the present invention, not thereby limit to interest field of the present invention, the equivalent structure that all utilizations specification of the present invention and accompanying drawing content are done changes, within being all contained in interest field of the present invention.
Claims (5)
1. a segmented network video seamless play method, is characterized in that, comprises step:
A1, downloading and playing list;
A2, according to described playlist, obtain the memory address that each plays burst;
A3, the first video data buffer and the second video data buffer are set;
The order of A4, the described broadcasting burst of foundation is downloaded the video data of adjacent described broadcasting burst respectively and is buffered to the first video data buffer and the second video data buffer the broadcasting of decoding.
2. segmented network video seamless play method according to claim 1, it is characterized in that, described steps A 4 also comprises step: if need redirect to play, the first described broadcasting burst of take is duration starting point, according to shift time, calculate to jump and broadcast the described broadcasting burst at timestamp place, and the video data of this broadcasting burst is buffered to the first video data buffer.
3. segmented network video seamless play method according to claim 2, it is characterized in that: if described jumping is broadcast timestamp in the broadcasting gap of two described broadcasting bursts, select previous described broadcasting burst and the video data of this broadcasting burst is buffered to the first video data buffer.
4. segmented network video seamless play method according to claim 3, it is characterized in that: if timestamp is broadcast in described jumping, surpass the total duration of all described broadcasting bursts, choose described in last and play burst and the video data of this broadcasting burst is buffered to the first video data buffer.
5. a segmented network video seamless play device, it is characterized in that: comprise control module, buffer module and decoder module, described control module, described buffer module is connected successively with described decoder module, described control module is for downloading and playing list, calculate to jump and broadcast timestamp and carry out video jumping and broadcast processing, described buffer module is used for arranging the first video data buffer and the second video data buffer and video data is cushioned, described decoder module is for alternately obtaining video data and decode in the first video data buffer and the second video data buffer.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410429285.0A CN104202684A (en) | 2014-08-27 | 2014-08-27 | Segmental network video seamless playing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410429285.0A CN104202684A (en) | 2014-08-27 | 2014-08-27 | Segmental network video seamless playing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104202684A true CN104202684A (en) | 2014-12-10 |
Family
ID=52087899
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410429285.0A Pending CN104202684A (en) | 2014-08-27 | 2014-08-27 | Segmental network video seamless playing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104202684A (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105187896A (en) * | 2015-09-09 | 2015-12-23 | 北京暴风科技股份有限公司 | Multi-segment media file playing method and system |
CN105187897A (en) * | 2015-09-09 | 2015-12-23 | 北京暴风科技股份有限公司 | Multi-segment media file cross-segment playing method and system |
CN105208464A (en) * | 2015-09-21 | 2015-12-30 | 网易(杭州)网络有限公司 | Multimedia data stream playing method and terminal |
CN105357561A (en) * | 2015-11-11 | 2016-02-24 | 腾讯科技(深圳)有限公司 | Information processing method and terminal |
CN105657522A (en) * | 2016-01-05 | 2016-06-08 | 深圳市金立通信设备有限公司 | Video playing method and terminal |
CN105847897A (en) * | 2016-03-31 | 2016-08-10 | 乐视控股(北京)有限公司 | Method and device of providing and processing video downloading |
CN105898625A (en) * | 2016-04-29 | 2016-08-24 | 腾讯科技(深圳)有限公司 | Playing processing method and terminal equipment |
CN105979362A (en) * | 2015-10-29 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | Video processing method and device |
CN105979276A (en) * | 2015-12-03 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | Play method based on player and player device |
CN105992051A (en) * | 2015-03-03 | 2016-10-05 | 广州市动景计算机科技有限公司 | Content data playback method and device |
CN106294827A (en) * | 2016-08-17 | 2017-01-04 | 合网络技术(北京)有限公司 | The caching method of multimedia resource and device |
CN107040826A (en) * | 2017-05-04 | 2017-08-11 | 珠海市魅族科技有限公司 | Video loading method and device, computer installation and computer-readable recording medium |
CN110198494A (en) * | 2019-06-28 | 2019-09-03 | 广州市百果园信息技术有限公司 | A kind of video broadcasting method, device, equipment and storage medium |
CN110545480A (en) * | 2018-05-29 | 2019-12-06 | 北京字节跳动网络技术有限公司 | Preloading control method and device of media file and storage medium |
CN113038245A (en) * | 2019-12-24 | 2021-06-25 | 瑞昱半导体股份有限公司 | Multimedia content playing device and multimedia content playing method |
CN115460465A (en) * | 2022-08-11 | 2022-12-09 | 邑泽文化发展(上海)有限公司 | Video data processing system for improving fluency |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1506945A (en) * | 2002-12-09 | 2004-06-23 | ��ʽ���綫֥ | Information reproducing apparatus and information reproducing method |
CN103974147A (en) * | 2014-03-07 | 2014-08-06 | 北京邮电大学 | MPEG (moving picture experts group)-DASH protocol based online video playing control system with code rate switch control and static abstract technology |
-
2014
- 2014-08-27 CN CN201410429285.0A patent/CN104202684A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1506945A (en) * | 2002-12-09 | 2004-06-23 | ��ʽ���綫֥ | Information reproducing apparatus and information reproducing method |
CN103974147A (en) * | 2014-03-07 | 2014-08-06 | 北京邮电大学 | MPEG (moving picture experts group)-DASH protocol based online video playing control system with code rate switch control and static abstract technology |
Cited By (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105992051A (en) * | 2015-03-03 | 2016-10-05 | 广州市动景计算机科技有限公司 | Content data playback method and device |
CN105992051B (en) * | 2015-03-03 | 2019-04-02 | 广州市动景计算机科技有限公司 | Content-data playback method and device |
CN105187897A (en) * | 2015-09-09 | 2015-12-23 | 北京暴风科技股份有限公司 | Multi-segment media file cross-segment playing method and system |
CN105187897B (en) * | 2015-09-09 | 2019-02-05 | 暴风集团股份有限公司 | The media file span playback method and system more being segmented |
CN105187896A (en) * | 2015-09-09 | 2015-12-23 | 北京暴风科技股份有限公司 | Multi-segment media file playing method and system |
CN105187896B (en) * | 2015-09-09 | 2019-04-23 | 暴风集团股份有限公司 | The media file playing method and system more being segmented |
CN105208464A (en) * | 2015-09-21 | 2015-12-30 | 网易(杭州)网络有限公司 | Multimedia data stream playing method and terminal |
CN105208464B (en) * | 2015-09-21 | 2018-09-14 | 网易(杭州)网络有限公司 | A kind of playback method and terminal of multimedia data stream |
CN105979362A (en) * | 2015-10-29 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | Video processing method and device |
CN105357561A (en) * | 2015-11-11 | 2016-02-24 | 腾讯科技(深圳)有限公司 | Information processing method and terminal |
CN105979276A (en) * | 2015-12-03 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | Play method based on player and player device |
CN105657522B (en) * | 2016-01-05 | 2019-06-28 | 深圳市金立通信设备有限公司 | A kind of method and terminal of video playing |
CN105657522A (en) * | 2016-01-05 | 2016-06-08 | 深圳市金立通信设备有限公司 | Video playing method and terminal |
CN105847897A (en) * | 2016-03-31 | 2016-08-10 | 乐视控股(北京)有限公司 | Method and device of providing and processing video downloading |
WO2017186036A1 (en) * | 2016-04-29 | 2017-11-02 | 腾讯科技(深圳)有限公司 | Playing processing method, terminal device, and computer storage medium |
CN105898625A (en) * | 2016-04-29 | 2016-08-24 | 腾讯科技(深圳)有限公司 | Playing processing method and terminal equipment |
CN105898625B (en) * | 2016-04-29 | 2020-03-17 | 腾讯科技(深圳)有限公司 | Playing processing method and terminal equipment |
US10715573B2 (en) | 2016-04-29 | 2020-07-14 | Tencent Technology (Shenzhen) Company Limited | Media playing method, terminal device, and computer storage medium based on two players |
CN106294827A (en) * | 2016-08-17 | 2017-01-04 | 合网络技术(北京)有限公司 | The caching method of multimedia resource and device |
CN107040826A (en) * | 2017-05-04 | 2017-08-11 | 珠海市魅族科技有限公司 | Video loading method and device, computer installation and computer-readable recording medium |
CN107040826B (en) * | 2017-05-04 | 2020-01-07 | 珠海市魅族科技有限公司 | Video loading method and device, computer device and computer readable storage medium |
CN110545480A (en) * | 2018-05-29 | 2019-12-06 | 北京字节跳动网络技术有限公司 | Preloading control method and device of media file and storage medium |
CN110198494A (en) * | 2019-06-28 | 2019-09-03 | 广州市百果园信息技术有限公司 | A kind of video broadcasting method, device, equipment and storage medium |
CN113038245A (en) * | 2019-12-24 | 2021-06-25 | 瑞昱半导体股份有限公司 | Multimedia content playing device and multimedia content playing method |
CN115460465A (en) * | 2022-08-11 | 2022-12-09 | 邑泽文化发展(上海)有限公司 | Video data processing system for improving fluency |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104202684A (en) | Segmental network video seamless playing method and device | |
CN103024456B (en) | A kind of Online Video player method and video playback server | |
US20170195744A1 (en) | Live-stream video advertisement system | |
KR102090261B1 (en) | Method and system for inserting content into streaming media at arbitrary time points | |
US11457171B2 (en) | Network storage device and method | |
CN107852534B (en) | Switching between broadcast and unicast streams | |
CN102664032B (en) | A kind of playing progress rate adjustment bar of direct broadcast time-shift and control method thereof | |
EP1912441B9 (en) | Buffering and transmittig video data upon request | |
CN107920258B (en) | Data processing method and device | |
CN109587514B (en) | Video playing method, medium and related device | |
CN105025351A (en) | Streaming media player buffering method and apparatus | |
CN113329267B (en) | Video playing method and device, terminal equipment and storage medium | |
JP6257611B2 (en) | Provision of media and content for individuals | |
US11778286B2 (en) | Systems and methods for summarizing missed portions of storylines | |
CN105100912A (en) | Streaming media processing method and streaming media processing apparatus | |
US11962818B2 (en) | Systems and methods for optimizing a set-top box to retrieve missed content | |
CN105791987B (en) | media data playing method and terminal | |
KR102640835B1 (en) | Transmitting devices, receiving devices, and data processing methods | |
CN106302465B (en) | A kind of method and device of playing audio-video data | |
US20220417594A1 (en) | Methods and systems for generating a playlist of content items and content item segments | |
KR102628917B1 (en) | Transmitting devices, receiving devices, and data processing methods | |
JP2014200099A (en) | Transmitting device and method, and receiving device and method | |
CN115623237B (en) | List live broadcast method, device, equipment and computer readable storage medium | |
CN113055703B (en) | IPTV video playing method and system | |
CN118283365A (en) | Method, apparatus, device and storage medium for generating live playback |
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: 20141210 |