CN107835180A - The method and system that a kind of video multiple plays - Google Patents
The method and system that a kind of video multiple plays Download PDFInfo
- Publication number
- CN107835180A CN107835180A CN201711124424.9A CN201711124424A CN107835180A CN 107835180 A CN107835180 A CN 107835180A CN 201711124424 A CN201711124424 A CN 201711124424A CN 107835180 A CN107835180 A CN 107835180A
- Authority
- CN
- China
- Prior art keywords
- offset
- key frame
- video data
- video
- redirect
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/75—Media network packet handling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/65—Network streaming protocols, e.g. real-time transport protocol [RTP] or real-time control protocol [RTCP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/75—Media network packet handling
- H04L65/764—Media network packet handling at the destination
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The present invention is applied to data processing field, there is provided the method and system that a kind of video multiple plays, methods described include:The play parameter for setting multiple to play;Key frame in data to be played is obtained according to the play parameter, and obtains the corresponding of the key frame and redirects offset;Video is played according to the offset multiple that redirects.Implement the embodiment of the present invention so that the key frame of video data can be obtained by the client of HTTP technologies progress video playback, the multiple for realizing the video data based on HTTP technologies plays.
Description
Technical field
The invention belongs to data processing field, more particularly to the method and system that a kind of video multiple plays.
Background technology
With the development of digital technology and Internet technology, the demand of streaming media service is also more and more.Streaming media on demand
Business is realized usually using RTSP agreements and http protocol.
Http protocol is not special transmission of video agreement, and it is most widely used a kind of network transmission association on internet
View.It is perfect with infrastructure, realize that simply, deployment is fast, proxy server is strong (quantity is more, CDN cache optimizations), adaptive code
The advantages that rate switching etc..
RTSP agreements are special streaming media control protocols, play control precisely, can be played with speed.But RTSP is assisted
The service end of view realizes complexity, and proxy server is weak (quantity is few, and optimization is few), and (RTSP only provides control function to pipe flow separation, also
Other agreements are needed to transmit Streaming Media).
A variety of factors due to more than, the advantage of http protocol is more and more obvious, and the transmission of Streaming Media is gradually to HTTP transition.
But the missing that http protocol speed plays, also results in the decline of Consumer's Experience.
The content of the invention
The purpose of the embodiment of the present invention is to provide the method and system that a kind of video multiple plays, to solve prior art
Video playback based on HTTP technologies can not realize the problem of multiple plays.
The embodiment of the present invention is achieved in that a kind of method that video multiple plays, and methods described includes:
The play parameter for setting multiple to play;
Key frame in data to be played is obtained according to the play parameter, and obtains the corresponding of the key frame and redirects
Offset;
Video is played according to the offset multiple that redirects.
The another object of the embodiment of the present invention is to provide the system that a kind of video multiple plays, and the system includes:
Play parameter setting unit, for the play parameter for setting multiple to play;
Offset acquiring unit is redirected, for obtaining the key frame in data to be played according to the play parameter, and is obtained
The corresponding of the key frame is taken to redirect offset;
Multiple broadcast unit, video is played for redirecting offset multiple according to.
The embodiment of the present invention, the play parameter for setting multiple to play, the pass in data to be played is obtained according to play parameter
Key frame, and obtain the corresponding of key frame and redirect offset, play video according to offset multiple is redirected so that pass through HTTP skills
The client of art progress video playback can obtain the key frame of video data, realize the video data based on HTTP technologies
Multiple plays.
Brief description of the drawings
Fig. 1 is the flow chart for the method that a kind of video multiple shown in an exemplary embodiment of the invention plays;
Fig. 2 is the flow chart for the method that a kind of video multiple shown in the another exemplary embodiment of the present invention plays;
Fig. 3 is the structure chart for the system that a kind of video multiple shown in an exemplary embodiment of the invention plays;
Fig. 4 is the structure chart for the system that a kind of video multiple shown in the another exemplary embodiment of the present invention plays.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
The flow chart of the method played as shown in Figure 1 for a kind of video multiple shown in an exemplary embodiment of the invention,
It the described method comprises the following steps:
Step S101, the play parameter for setting multiple to play.
In embodiments of the present invention, for playing the client of video before multiple broadcasting is carried out to video, it is necessary to set
The parameter related to multiple broadcasting is put, is included but is not limited to:Download period, play step-length.
As the alternative embodiment of the present invention, client can be configured to the decoder of local:By decoder
The key frame being arranged in only parsing video data.Because decoder only parses key frame, the workload of decoder is reduced,
Decoding speed is improved, improves Consumer's Experience.
Step S102, the key frame in data to be played is obtained according to the play parameter, and obtain the key frame
It is corresponding to redirect offset.
In embodiments of the present invention, video data can be the key in video data to be got with the key that multiple plays
Frame, therefore, client parse to the data to be played of acquisition, obtain key frame therein, while record acquisition key frame
When corresponding data to be played redirect skew.
It is illustrated in figure 2 the flow for the method that a kind of video multiple shown in another exemplary embodiment of the present invention plays
Figure, the key frame obtained according to the play parameter in data to be played, and obtain the corresponding of the key frame and redirect
Offset, including:
Step S201, offset is redirected according to the download period and broadcasting step size computation first, and obtain described first
Redirect video data corresponding to offset.
In the embodiment of the present invention, client first jump according to corresponding to can obtaining broadcasting step-length, the download period of setting
Turn offset, it should be pointed out that redirect offset if first calculating, then without download period this parameter, it is necessary to root
First, which is calculated, according to default download period redirects offset.Calculate first redirect offset after, obtain this and first redirect
Video data corresponding to offset.
Step S202, the video data is decoded, judge whether the video data includes key frame.
In embodiments of the present invention, the detailed step of decoding acquisition key frame is as follows:
1. obtain the encapsulated type of the key frame;
2. digital video TV elementary stream PES is obtained according to the encapsulated type;
3. key frame is determined whether according to the header packet information of the PES.
Step S203, if including key frame in the video data, redirect offset by described first and be arranged to jump
Turn offset;Or
If not including key frame in the video data, described first is obtained again and redirects video counts corresponding to offset
According to until including key frame in the video data of acquisition, and redirecting offset by corresponding to all video datas first and be arranged to
Redirect offset.
In embodiments of the present invention, if obtain for the first time first redirects in video data corresponding to offset comprising key
Frame, then it can redirect offset first and be arranged to redirect offset, if obtain for the first time first redirects corresponding to offset
Do not include key frame in video data, then need repetition to obtain first and redirect video data corresponding to offset, until acquisition
Key frame is included in video data, and redirects offset by corresponding to all video datas first and is arranged to redirect offset.
Illustrate:
Assuming that first to redirect offset be 1S, parse in 1S video datas whether include key frame, if comprising will jump
Turn offset and be arranged to 1S, if do not included, repeat to obtain 1S video data, and parse, if parsing pass in 5S
Key frame, then it will redirect offset and be arranged to 5S.
Step S103, video is played according to the offset multiple that redirects.
In embodiments of the present invention, video data corresponding to offset is redirected to represent to include key frame in the video data,
Multiple broadcasting can be carried out, therefore the recursive acquisition key frame of offset is redirected according to this, that is, carries out multiple and plays video.
The embodiment of the present invention, the play parameter for setting multiple to play, the pass in data to be played is obtained according to play parameter
Key frame, and obtain the corresponding of key frame and redirect offset, play video according to offset multiple is redirected so that pass through HTTP skills
The client of art progress video playback can obtain the key frame of video data, realize the video data based on HTTP technologies
Multiple plays.
The structure chart for the system that a kind of video multiple shown in an exemplary embodiment of the invention plays is illustrated in figure 3,
The system includes:
Play parameter setting unit 301, for the play parameter for setting multiple to play.
In embodiments of the present invention, for playing the client of video before multiple broadcasting is carried out to video, it is necessary to set
The parameter related to multiple broadcasting is put, is included but is not limited to:Download period, play step-length.
As the alternative embodiment of the present invention, client can be configured to the decoder of local:By decoder
The key frame being arranged in only parsing video data.Because decoder only parses key frame, the workload of decoder is reduced,
Decoding speed is improved, improves Consumer's Experience.
Offset acquiring unit 302 is redirected, for obtaining the key frame in data to be played according to the play parameter, and
Obtain the corresponding of the key frame and redirect offset.
In embodiments of the present invention, video data can be the key in video data to be got with the key that multiple plays
Frame, therefore, client parse to the data to be played of acquisition, obtain key frame therein, while record acquisition key frame
When corresponding data to be played redirect skew.
It is illustrated in figure 4 the structure for the system that a kind of video multiple shown in another exemplary embodiment of the present invention plays
Figure, it is described to redirect offset acquiring unit 302, including:
Video data obtains subelement 3021, for redirecting skew according to the download period and broadcasting step size computation first
Amount, and obtain described first and redirect video data corresponding to offset.
In the embodiment of the present invention, client first jump according to corresponding to can obtaining broadcasting step-length, the download period of setting
Turn offset, it should be pointed out that redirect offset if first calculating, then without download period this parameter, it is necessary to root
First, which is calculated, according to default download period redirects offset.Calculate first redirect offset after, obtain this and first redirect
Video data corresponding to offset.
Key frame judgment sub-unit 3022, for decoding the video data, judge the video data whether comprising pass
Key frame.
In embodiments of the present invention, the detailed step of decoding acquisition key frame is as follows:
1. obtain the encapsulated type of the key frame;
2. digital video TV elementary stream PES is obtained according to the encapsulated type;
3. key frame is determined whether according to the header packet information of the PES.
Redirect offset and obtain subelement 3023, if including key frame in the video data, described first is jumped
Turn offset to be arranged to redirect offset;Or
If not including key frame in the video data, described first is obtained again and redirects video counts corresponding to offset
According to until including key frame in the video data of acquisition, and redirecting offset by corresponding to all video datas first and be arranged to
Redirect offset.
In embodiments of the present invention, if obtain for the first time first redirects in video data corresponding to offset comprising key
Frame, then it can redirect offset first and be arranged to redirect offset, if obtain for the first time first redirects corresponding to offset
Do not include key frame in video data, then need repetition to obtain first and redirect video data corresponding to offset, until acquisition
Key frame is included in video data, and redirects offset by corresponding to all video datas first and is arranged to redirect offset.
Multiple broadcast unit 303, video is played for redirecting offset multiple according to.
In embodiments of the present invention, video data corresponding to offset is redirected to represent to include key frame in the video data,
Multiple broadcasting can be carried out, therefore the recursive acquisition key frame of offset is redirected according to this, that is, carries out multiple and plays video.
The embodiment of the present invention, the play parameter for setting multiple to play, the pass in data to be played is obtained according to play parameter
Key frame, and obtain the corresponding of key frame and redirect offset, play video according to offset multiple is redirected so that pass through HTTP skills
The client of art progress video playback can obtain the key frame of video data, realize the video data based on HTTP technologies
Multiple plays.
One of ordinary skill in the art will appreciate that simply patrolled for the unit included by above-described embodiment according to function
Collect what is divided, but be not limited to above-mentioned division, as long as corresponding function can be realized;In addition, each function list
The specific name of member is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.
Those of ordinary skill in the art are further appreciated that all or part of step realized in above-described embodiment method is can
To instruct the hardware of correlation to complete by program, described program can be stored in a computer read/write memory medium
In, described storage medium, including ROM/RAM, disk, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
All any modification, equivalent and improvement made within refreshing and principle etc., should be included in the scope of the protection.
Claims (10)
1. a kind of method that video multiple plays, it is characterised in that methods described includes:
The play parameter for setting multiple to play;
Key frame in data to be played is obtained according to the play parameter, and obtains the corresponding of the key frame and redirects skew
Amount;
Video is played according to the offset multiple that redirects.
2. the method as described in claim 1, it is characterised in that the play parameter includes:Download period, play step-length.
3. method as claimed in claim 2, it is characterised in that described to be obtained according to the play parameter in data to be played
Key frame, and obtain the corresponding of the key frame and redirect offset, including:
Offset is redirected according to the download period and broadcasting step size computation first, and obtains described first and redirects offset correspondingly
Video data;
The video data is decoded, judges whether the video data includes key frame;
If including key frame in the video data, redirect offset by described first and be arranged to redirect offset;Or
If not including key frame in the video data, described first is obtained again and redirects video data corresponding to offset,
Until including key frame in the video data of acquisition, and redirect offset by corresponding to all video datas first and be arranged to redirect
Offset.
4. method as claimed in claim 3, it is characterised in that the decoding video data, judge the video data
Whether key frame is included, including:
Obtain the encapsulated type of the key frame;
Digital video TV elementary stream PES is obtained according to the encapsulated type;
Key frame is determined whether according to the header packet information of the PES.
5. the method as described in any one of Claims 1 to 4, it is characterised in that in the play parameter that the setting multiple plays
Afterwards, methods described also includes:
Decoder is arranged to the key frame in only parsing video data.
6. the system that a kind of video multiple plays, it is characterised in that the system includes:
Play parameter setting unit, for the play parameter for setting multiple to play;
Offset acquiring unit is redirected, for obtaining the key frame in data to be played according to the play parameter, and obtains institute
State the corresponding of key frame and redirect offset;
Multiple broadcast unit, video is played for redirecting offset multiple according to.
7. system as claimed in claim 6, it is characterised in that the play parameter includes:Download period, play step-length.
8. system as claimed in claim 7, it is characterised in that it is described to redirect offset acquiring unit, including:
Video data obtains subelement, for redirecting offset according to the download period and broadcasting step size computation first, and obtains
Described first is taken to redirect video data corresponding to offset;
Key frame judgment sub-unit, for decoding the video data, judge whether the video data includes key frame;
Redirect offset and obtain subelement, if including key frame in the video data, offset is redirected by described first
It is arranged to redirect offset;Or
If not including key frame in the video data, described first is obtained again and redirects video data corresponding to offset,
Until including key frame in the video data of acquisition, and redirect offset by corresponding to all video datas first and be arranged to redirect
Offset.
9. system as claimed in claim 8, it is characterised in that the decoding video data, judge the video data
Whether key frame is included, including:
Obtain the encapsulated type of the key frame;
Digital video TV elementary stream PES is obtained according to the encapsulated type;
Key frame is determined whether according to the header packet information of the PES.
10. the system as described in any one of claim 6~9, it is characterised in that in the play parameter that the setting multiple plays
Afterwards, the play parameter setting unit is additionally operable to:
Decoder is arranged to the key frame in only parsing video data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711124424.9A CN107835180A (en) | 2017-11-14 | 2017-11-14 | The method and system that a kind of video multiple plays |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711124424.9A CN107835180A (en) | 2017-11-14 | 2017-11-14 | The method and system that a kind of video multiple plays |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107835180A true CN107835180A (en) | 2018-03-23 |
Family
ID=61654328
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711124424.9A Pending CN107835180A (en) | 2017-11-14 | 2017-11-14 | The method and system that a kind of video multiple plays |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107835180A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110087109A (en) * | 2019-04-19 | 2019-08-02 | 中国科学院信息工程研究所 | Video code rate adaptive approach and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102487458A (en) * | 2010-12-02 | 2012-06-06 | 中兴通讯股份有限公司 | Method for broadcasting and processing TS (Transport Stream) document and device thereof |
CN103596059A (en) * | 2013-11-21 | 2014-02-19 | 乐视致新电子科技(天津)有限公司 | Intelligent-television media player and playing progress adjusting method thereof, and intelligent television |
WO2016014129A1 (en) * | 2014-07-23 | 2016-01-28 | Arris Technology, Inc. | Methods of implementing multi mode trickplay |
CN107087214A (en) * | 2016-02-16 | 2017-08-22 | 中国电信股份有限公司 | Realize method, client and system that streaming medium content speed is played |
-
2017
- 2017-11-14 CN CN201711124424.9A patent/CN107835180A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102487458A (en) * | 2010-12-02 | 2012-06-06 | 中兴通讯股份有限公司 | Method for broadcasting and processing TS (Transport Stream) document and device thereof |
CN103596059A (en) * | 2013-11-21 | 2014-02-19 | 乐视致新电子科技(天津)有限公司 | Intelligent-television media player and playing progress adjusting method thereof, and intelligent television |
WO2016014129A1 (en) * | 2014-07-23 | 2016-01-28 | Arris Technology, Inc. | Methods of implementing multi mode trickplay |
CN107087214A (en) * | 2016-02-16 | 2017-08-22 | 中国电信股份有限公司 | Realize method, client and system that streaming medium content speed is played |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110087109A (en) * | 2019-04-19 | 2019-08-02 | 中国科学院信息工程研究所 | Video code rate adaptive approach and device |
CN110087109B (en) * | 2019-04-19 | 2020-09-29 | 中国科学院信息工程研究所 | Video code rate self-adaption method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11178435B2 (en) | Systems and methods for saving encoded media streamed using adaptive bitrate streaming | |
US10645429B2 (en) | Systems and methods for encoding and streaming video encoded using a plurality of maximum bitrate levels | |
US10263875B2 (en) | Real-time processing capability based quality adaptation | |
RU2622621C2 (en) | System and method for flow transfer of reproduced content | |
US10051013B2 (en) | Method and apparatus for streaming multimedia content of server by using cache | |
RU2543568C2 (en) | Smooth, stateless client media streaming | |
JP5824465B2 (en) | Method and apparatus for adaptation in HTTP streaming | |
JP5748765B2 (en) | Streaming method and apparatus that operates by inserting other contents into main contents | |
JP2019036967A (en) | Method and apparatus for streaming media content to client device | |
CN102143384B (en) | Method, device and system for generating media file | |
CN105916058B (en) | A kind of streaming media buffer playback method, device and display equipment | |
US9462302B2 (en) | Efficient delineation and distribution of media segments | |
US9596522B2 (en) | Fragmented file structure for live media stream delivery | |
TW201123795A (en) | System, method and apparatus for dynamic media file streaming | |
KR20110053176A (en) | Method and apparatus for providing trick play service | |
CN102957672A (en) | Method, client side and system for self-adaptive playing of FLV (flash video) media streams | |
US9313084B2 (en) | Systems and methods for client-side media chunking | |
WO2019128800A1 (en) | Content service implementation method and device, and content delivery network node | |
US20110299586A1 (en) | Quality adjustment using a fragmented media stream | |
WO2014048198A1 (en) | Multi-speed playing method, device and system | |
JP5278059B2 (en) | Information processing apparatus and method, program, and information processing system | |
CN106303754A (en) | A kind of audio data play method and device | |
KR101863598B1 (en) | Operating method of client for streaming service | |
CN107835180A (en) | The method and system that a kind of video multiple plays | |
CN102594773B (en) | A kind of method and system for realizing data acquisition |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180323 |
|
RJ01 | Rejection of invention patent application after publication |