CN106937141A - A kind of bitstreams switching method and device - Google Patents
A kind of bitstreams switching method and device Download PDFInfo
- Publication number
- CN106937141A CN106937141A CN201710183249.4A CN201710183249A CN106937141A CN 106937141 A CN106937141 A CN 106937141A CN 201710183249 A CN201710183249 A CN 201710183249A CN 106937141 A CN106937141 A CN 106937141A
- Authority
- CN
- China
- Prior art keywords
- code stream
- key frame
- code
- frame interval
- frames
- 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
- 238000000034 method Methods 0.000 title claims abstract description 36
- 230000000694 effects Effects 0.000 claims description 2
- 238000005516 engineering process Methods 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/438—Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
- H04N21/26208—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
- H04N21/26216—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints involving the channel capacity, e.g. network bandwidth
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/266—Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
- H04N21/2662—Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/44—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440281—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by altering the temporal resolution, e.g. by frame skipping
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/60—Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client
- H04N21/63—Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
- H04N21/637—Control signals issued by the client directed to the server or network components
- H04N21/6373—Control signals issued by the client directed to the server or network components for rate control, e.g. request to the server to modify its transmission rate
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
This application provides a kind of bitstreams switching method and device, bitstreams switching method includes:Obtain the corresponding key frame interval of quick bitstreams switching;Obtain the corresponding key frame interval of video coding efficiency high;According to the quick corresponding key frame interval of bitstreams switching and the corresponding key frame interval of the video coding efficiency high, the code stream of predetermined number is generated, wherein, the predetermined number is the integer not less than 2;According to predetermined manner, a code stream is selected from code stream each described, as code stream to be used;The video of current play time point is switched into the code stream to be used to play out.In this application, video coding efficiency and fast bitstreams switching speed high is realized simultaneously by with upper type.
Description
Technical field
The application is related to multimedia technology field, more particularly to a kind of bitstreams switching method and device.
Background technology
The situation of bitstreams switching is frequently encountered in stream video playing process, is switched such as between high-resolution and low resolution
Or the situation of bitstreams switching can be produced when switching between switching or different visual angles between different code checks.Wherein, because video is compiled
Key frame (such as I frames, every IDR frame or CRA frames) needs to wait until in could providing handoff functionality, therefore stream video playing process in code
One key frame time point could start bitstreams switching.
Because key frame interval is smaller, the speed of bitstreams switching is faster, thus in order to improve bitstreams switching speed, it is necessary to
Key frame interval is reduced, but reducing key frame interval can cause the video coding efficiency to reduce.It can be seen that, in bitstreams switching, soon
Fast bitstreams switching and video coding efficiency high can not get both.
The content of the invention
In order to solve the above technical problems, the embodiment of the present application provides a kind of bitstreams switching method and device, to reach simultaneously
The purpose of video coding efficiency high and fast bitstreams switching speed is realized, technical scheme is as follows:
A kind of bitstreams switching method, including:
Obtain the corresponding key frame interval of quick bitstreams switching;
Obtain the corresponding key frame interval of video coding efficiency high;
According to the quick corresponding key frame interval of bitstreams switching and the corresponding key frame of the video coding efficiency high
Interval, generates the code stream of predetermined number, wherein, the predetermined number is the integer not less than 2;
According to predetermined manner, a code stream is selected from code stream each described, as code stream to be used;
The video of current play time point is switched into the code stream to be used to play out.
Preferably, it is corresponding according to the quick corresponding key frame interval of bitstreams switching and the video coding efficiency high
Key frame interval, generates the process of the code stream of predetermined number, including:
Using relational expression t=N/M, t code stream is generated, the t is the predetermined number, and the N is compiled for the video high
The corresponding key frame interval of code efficiency, the M is the corresponding key frame interval of the quick bitstreams switching, and the t code stream is each
From the first frame be key frame;
First the second of code stream key frame in t code streams in N+1 frames, m1Individual key frame is in (m1-
1) * N+1 frames, m1>=1;
Second the second of code stream key frame in t code streams in M+1 frames, m2Individual key frame is in (m2-
2) * N+M+1 frames, m2>=2;
Second key frame of the 3rd code stream in t code streams in 2M+1 frames, m3Individual key frame is in (m3-
2) * N+2M+1 frames, m3>=2;
Second key frame of u-th code stream in the t code stream is in (u-1) * M+1 frames, m4Individual key frame exists
(m4- 2) * N+ (u-1) * M+1 frames, m4>=2,1<u<=t.
Preferably, according to predetermined manner, a code stream is selected from code stream each described, as code stream to be used, bag
Include:
Selected from first code stream, second code stream, the 3rd code stream and u-th code stream in the t code stream
The nearest key frame of current play time point described in time gap;
Code stream described in the time gap that will be selected belonging to the nearest key frame of current play time point, as to be used
Code stream.
Preferably, it is corresponding according to the quick corresponding key frame interval of bitstreams switching and the video coding efficiency high
Key frame interval, generates the code stream of predetermined number, including:
According to the quick corresponding key frame interval of bitstreams switching and the corresponding key frame of the video coding efficiency high
Interval, generates 2 code streams, and 2 respective first frames of code stream are first codes in key frame, and 2 code streams
The key frame interval of stream is M, and second key frame interval of code stream in 2 code streams is N, and the M is the speed code
The corresponding key frame interval of stream switching, the N is the corresponding key frame interval of the video coding efficiency high.
Preferably, according to predetermined manner, a code stream is selected from code stream each described, as code stream to be used, bag
Include:
First code stream is selected from 2 code streams, as code stream to be used;
The video of current play time point is switched to after the code stream to be used plays out, is also included:
During the key frame position of second code stream in video playback to 2 code streams of current play time point,
Second code stream video of current play time point switched in 2 code streams is played out.
A kind of bitstreams switching device, including:
First acquisition module, for obtaining the corresponding key frame interval of quick bitstreams switching;
Second acquisition module, for obtaining the corresponding key frame interval of video coding efficiency high;
Generation module, for according to the quick corresponding key frame interval of bitstreams switching and the video coding efficiency high
Corresponding key frame interval, generates the code stream of predetermined number, wherein, the predetermined number is the integer not less than 2;
Module is chosen, for according to predetermined manner, selecting a code stream from code stream each described, as code to be used
Stream;
First handover module, plays out for the video of current play time point to be switched into the code stream to be used.
Preferably, the generation module includes:
First generation unit, for utilizing relational expression t=N/M, generates t code stream, and the t is the predetermined number, institute
It is the corresponding key frame interval of the video coding efficiency high to state N, and the M is the corresponding crucial interframe of the quick bitstreams switching
Every t respective first frame of code stream is key frame;
First the second of code stream key frame in t code streams in N+1 frames, m1Individual key frame is in (m1-
1) * N+1 frames, m1>=1;
Second the second of code stream key frame in t code streams in M+1 frames, m2Individual key frame is in (m2-
2) * N+M+1 frames, m2>=2;
Second key frame of the 3rd code stream in t code streams in 2M+1 frames, m3Individual key frame is in (m3-
2) * N+2M+1 frames, m3>=2;
Second key frame of u-th code stream in the t code stream is in (u-1) * M+1 frames, m4Individual key frame exists
(m4- 2) * N+ (u-1) * M+1 frames, m4>=2,1<u<=t.
Preferably, the selection module includes:
First chooses unit, for from first code stream in t code streams, second code stream, the 3rd code stream and
The nearest key frame of current play time point described in time gap is selected in u-th code stream;
Determining unit, for the code belonging to the nearest key frame of current play time point described in the time gap that will select
Stream, as code stream to be used.
Preferably, the generation module includes:
Second generation unit, for according to the quick corresponding key frame interval of bitstreams switching and the Video coding high
The corresponding key frame interval of efficiency, generates 2 code streams, and 2 respective first frames of code stream are key frames, and described in 2
First key frame interval of code stream in code stream is M, and second key frame interval of code stream in 2 code streams is N, institute
It is the corresponding key frame interval of the quick bitstreams switching to state M, and the N is the corresponding crucial interframe of the video coding efficiency high
Every.
Preferably, the selection module includes:
Second chooses unit, for selecting first code stream from 2 code streams, as code stream to be used;
Described device also includes:
Second handover module, for second code in the video playback of current play time point to 2 code streams
During the key frame position of stream, second code stream video of current play time point switched in 2 code streams is broadcast
Put.
Compared with prior art, the application has the beneficial effect that:
In this application, based on the principle for exchanging code efficiency and switch speed for space, cut according to the quick code stream
Corresponding key frame interval and the corresponding key frame interval of the video coding efficiency high are changed, the code stream of predetermined number is generated, pressed
According to predetermined manner, a code stream is selected from code stream each described, as code stream to be used;By regarding for current play time point
Frequency switches to the code stream to be used and plays out, and video coding efficiency and fast code stream high is realized simultaneously by multiple code streams
Switch speed.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme in the embodiment of the present application, below will be to make needed for embodiment description
Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present application, for
For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these accompanying drawings
His accompanying drawing.
Fig. 1 is a kind of flow chart of the bitstreams switching method that the application is provided;
Fig. 2 is a kind of logical construction schematic diagram of the bitstreams switching device that the application is provided.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.It is based on
Embodiment in the application, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of the application protection.
Embodiment one
Fig. 1 is referred to, a kind of flow chart of the bitstreams switching method provided it illustrates the application can include following step
Suddenly:
Step S11:Obtain the corresponding key frame interval of quick bitstreams switching.
In the present embodiment, because the corresponding key frame interval of the bitstreams switching of friction speed is different, therefore can foundation
The bitstreams switching of friction speed and the corresponding relation of key frame interval, it is determined that the corresponding key frame interval of quick bitstreams switching.
Wherein, quick bitstreams switching refers to the bitstreams switching of speed.As for the big I of the speed of bitstreams switching
To be set as needed.
Step S12:Obtain the corresponding key frame interval of video coding efficiency high.
In the present embodiment, because the corresponding key frame interval of different size of video coding efficiency is different, therefore can be with
According to the bitstreams switching and the corresponding relation of key frame interval of different video code efficiency, determine that video coding efficiency high is corresponding
Key frame interval.
Wherein, video coding efficiency high refers to video coding efficiency high.Size as video coding efficiency can be with
Set as needed.
Step S13:It is corresponding with the video coding efficiency high according to the corresponding key frame interval of the quick bitstreams switching
Key frame interval, generate predetermined number code stream.
Wherein, the predetermined number is the integer not less than 2.
Step S14:According to predetermined manner, a code stream is selected from code stream each described, as code stream to be used.
Step S15:The video of current play time point is switched into the code stream to be used to play out.
In this application, based on the principle for exchanging code efficiency and switch speed for space, cut according to the quick code stream
Corresponding key frame interval and the corresponding key frame interval of the video coding efficiency high are changed, the code stream of predetermined number is generated, pressed
According to predetermined manner, a code stream is selected from code stream each described, as code stream to be used;By regarding for current play time point
Frequency switches to the code stream to be used and plays out, and video coding efficiency and fast code stream high is realized simultaneously by multiple code streams
Switch speed.
In the present embodiment, according to the quick corresponding key frame interval of bitstreams switching and the video coding efficiency high
Corresponding key frame interval, generates the process of the code stream of predetermined number, is specifically as follows:
Using relational expression t=N/M, t code stream is generated, the t is the predetermined number, and the N is compiled for the video high
The corresponding key frame interval of code efficiency, the M is the corresponding key frame interval of the quick bitstreams switching, and the t code stream is each
From the first frame be key frame;
First the second of code stream key frame in t code streams in N+1 frames, m1Individual key frame is in (m1-
1) * N+1 frames, m1>=1;
Second the second of code stream key frame in t code streams in M+1 frames, m2Individual key frame is in (m2-
2) * N+M+1 frames, m2>=2;
Second key frame of the 3rd code stream in t code streams in 2M+1 frames, m3Individual key frame is in (m3-
2) * N+2M+1 frames, m3>=2;
Second key frame of u-th code stream in the t code stream is in (u-1) * M+1 frames, m4Individual key frame exists
(m4- 2) * N+ (u-1) * M+1 frames, m4>=2,1<u<=t.
Corresponding, according to predetermined manner, a code stream is selected from code stream each described, as code stream to be used
Detailed process is then:
Step A11:First code stream, second code stream, the 3rd code stream and u-th code stream from the t code stream
In select the nearest key frame of current play time point described in time gap.
Step A12:Code stream described in the time gap that will be selected belonging to the nearest key frame of current play time point, makees
It is code stream to be used.
In the present embodiment, according to the quick corresponding key frame interval of bitstreams switching and the video coding efficiency high
Corresponding key frame interval, generates the process of the code stream of predetermined number, is specifically as follows:
According to the quick corresponding key frame interval of bitstreams switching and the corresponding key frame of the video coding efficiency high
Interval, generates 2 code streams, and 2 respective first frames of code stream are first codes in key frame, and 2 code streams
The key frame interval of stream is M, and second key frame interval of code stream in 2 code streams is N, and the M is the speed code
The corresponding key frame interval of stream switching, the N is the corresponding key frame interval of the video coding efficiency high.
Corresponding, according to predetermined manner, a code stream is selected from code stream each described, as code stream to be used
Detailed process, then for:
First code stream is selected from 2 code streams, as code stream to be used.
According to predetermined manner, a code stream is being selected from code stream each described, as the specific mistake of code stream to be used
Journey is that first code stream is selected from 2 code streams, as code stream to be used in the case of, by current play time point
Video is switched to after the code stream to be used plays out, and is also included:
During the key frame position of second code stream in video playback to 2 code streams of current play time point,
Second code stream video of current play time point switched in 2 code streams is played out.
According to the quick corresponding key frame interval of bitstreams switching and the corresponding key frame of the video coding efficiency high
Interval, generates the process of the code stream of predetermined number, is specifically as follows:According to the corresponding key frame interval of the quick bitstreams switching
Key frame interval corresponding with the video coding efficiency high, during 2 code streams of generation, corresponding complete skill scheme is:
According to the quick corresponding key frame interval of bitstreams switching and the corresponding key frame of the video coding efficiency high
Interval, generates 2 code streams, and 2 respective first frames of code stream are first codes in key frame, and 2 code streams
The key frame interval of stream is M, and second key frame interval of code stream in 2 code streams is N, and the M is the speed code
The corresponding key frame interval of stream switching, the N is the corresponding key frame interval of the video coding efficiency high;
First code stream is selected from 2 code streams, as code stream to be used;
First code stream video of current play time point switched in 2 code streams is played out;
During the key frame position of second code stream in video playback to 2 code streams of current play time point,
Second code stream video of current play time point switched in 2 code streams is played out.
Embodiment two
It is corresponding with above method embodiment, a kind of bitstreams switching device is present embodiments provided, refer to Fig. 2, code stream
Switching device includes:First acquisition module 21, the second acquisition module 22, generation module 23, the selection switching mould of module 24 and first
Block 25.
First acquisition module 21, for obtaining the corresponding key frame interval of quick bitstreams switching.
Second acquisition module 22, for obtaining the corresponding key frame interval of video coding efficiency high.
Generation module 23, for according to the quick corresponding key frame interval of bitstreams switching and the Video coding effect high
The corresponding key frame interval of rate, generates the code stream of predetermined number, wherein, the predetermined number is the integer not less than 2.
Module 24 is chosen, for according to predetermined manner, selecting a code stream from code stream each described, as to be used
Code stream.
First handover module 25, is broadcast for the video of current play time point to be switched into the code stream to be used
Put.
In the present embodiment, generation module 23 can specifically include:
First generation unit, for utilizing relational expression t=N/M, generates t code stream, and the t is the predetermined number, institute
It is the corresponding key frame interval of the video coding efficiency high to state N, and the M is the corresponding crucial interframe of the quick bitstreams switching
Every t respective first frame of code stream is key frame;
First the second of code stream key frame in t code streams in N+1 frames, m1Individual key frame is in (m1-
1) * N+1 frames, m1>=1;
Second the second of code stream key frame in t code streams in M+1 frames, m2Individual key frame is in (m2-
2) * N+M+1 frames, m2>=2;
Second key frame of the 3rd code stream in t code streams in 2M+1 frames, m3Individual key frame is in (m3-
2) * N+2M+1 frames, m3>=2;
Second key frame of u-th code stream in the t code stream is in (u-1) * M+1 frames, m4Individual key frame exists
(m4- 2) * N+ (u-1) * M+1 frames, m4>=2,1<u<=t.
Corresponding, choose module 24 and specifically include:First chooses unit and determining unit.
First chooses unit, for from first code stream in t code streams, second code stream, the 3rd code stream and
The nearest key frame of current play time point described in time gap is selected in u-th code stream.
Determining unit, for the code belonging to the nearest key frame of current play time point described in the time gap that will select
Stream, as code stream to be used.
In the present embodiment, generation module 23 can specifically include:Second generation unit, for according to the quick code stream
Switch corresponding key frame interval and the corresponding key frame interval of the video coding efficiency high, 2 code streams are generated, described in 2
Respective first frame of code stream is that first key frame interval of code stream in key frame, and 2 code streams is M, described in 2
Second key frame interval of code stream in code stream is N, and the M is the corresponding key frame interval of the quick bitstreams switching, institute
It is the corresponding key frame interval of the video coding efficiency high to state N.
Corresponding, choose module 24 and specifically include:Second chooses unit, for selecting the from 2 code streams
One code stream, as code stream to be used.
In the case where module 24 is chosen including the second selection unit, bitstreams switching device also includes:
Second handover module, for second code in the video playback of current play time point to 2 code streams
During the key frame position of stream, second code stream video of current play time point switched in 2 code streams is broadcast
Put.
It should be noted that each embodiment in this specification is described by the way of progressive, each embodiment weight
Point explanation is all difference with other embodiment, between each embodiment identical similar part mutually referring to.
For device class embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, related part ginseng
See the part explanation of embodiment of the method.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between there is any this actual relation or order.And, term " including ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or equipment including a series of key elements not only include that
A little key elements, but also other key elements including being not expressly set out, or also include for this process, method, article or
The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", does not arrange
Except also there is other identical element in the process including the key element, method, article or equipment.
A kind of bitstreams switching method and device provided herein is described in detail above, it is used herein
Specific case is set forth to the principle and implementation method of the application, and the explanation of above example is only intended to help and understands this
The method and its core concept of application;Simultaneously for those of ordinary skill in the art, according to the thought of the application, specific
Be will change in implementation method and range of application, in sum, this specification content should not be construed as to the application's
Limitation.
Claims (10)
1. a kind of bitstreams switching method, it is characterised in that including:
Obtain the corresponding key frame interval of quick bitstreams switching;
Obtain the corresponding key frame interval of video coding efficiency high;
According to the quick corresponding key frame interval of bitstreams switching and the corresponding key frame interval of the video coding efficiency high,
The code stream of predetermined number is generated, wherein, the predetermined number is the integer not less than 2;
According to predetermined manner, a code stream is selected from code stream each described, as code stream to be used;
The video of current play time point is switched into the code stream to be used to play out.
2. method according to claim 1, it is characterised in that according to the corresponding key frame interval of the quick bitstreams switching
Key frame interval corresponding with the video coding efficiency high, generates the process of the code stream of predetermined number, including:
Using relational expression t=N/M, t code stream is generated, the t is the predetermined number, and the N is the Video coding effect high
The corresponding key frame interval of rate, the M is the corresponding key frame interval of the quick bitstreams switching, and the t code stream is respective
First frame is key frame;
First the second of code stream key frame in t code streams in N+1 frames, m1Individual key frame is in (m1-1)*N+
1 frame, m1>=1;
Second the second of code stream key frame in t code streams in M+1 frames, m2Individual key frame is in (m2-2)*N+
M+1 frames, m2>=2;
Second key frame of the 3rd code stream in t code streams in 2M+1 frames, m3Individual key frame is in (m3-2)*N
+ 2M+1 frames, m3>=2;
Second key frame of u-th code stream in the t code stream is in (u-1) * M+1 frames, m4Individual key frame is in (m4-
2) * N+ (u-1) * M+1 frames, m4>=2,1<u<=t.
3. method according to claim 2, it is characterised in that according to predetermined manner, selected from code stream each described
One code stream, as code stream to be used, including:
The time is selected from first code stream, second code stream, the 3rd code stream and u-th code stream in the t code stream
The key frame nearest apart from the current play time point;
Code stream described in the time gap that will be selected belonging to the nearest key frame of current play time point, as code to be used
Stream.
4. method according to claim 1, it is characterised in that according to the corresponding key frame interval of the quick bitstreams switching
Key frame interval corresponding with the video coding efficiency high, generates the code stream of predetermined number, including:
According to the quick corresponding key frame interval of bitstreams switching and the corresponding key frame interval of the video coding efficiency high,
2 code streams of generation, 2 respective first frames of code stream are first passes of code stream in key frame, and 2 code streams
Key interframe is divided into M, and second key frame interval of code stream in 2 code streams is N, and the M is the quick bitstreams switching
Corresponding key frame interval, the N is the corresponding key frame interval of the video coding efficiency high.
5. method according to claim 4, it is characterised in that according to predetermined manner, selected from code stream each described
One code stream, as code stream to be used, including:
First code stream is selected from 2 code streams, as code stream to be used;
The video of current play time point is switched to after the code stream to be used plays out, is also included:
During the key frame position of second code stream in video playback to 2 code streams of current play time point, ought
Second code stream that the video of preceding play time is switched in 2 code streams is played out.
6. a kind of bitstreams switching device, it is characterised in that including:
First acquisition module, for obtaining the corresponding key frame interval of quick bitstreams switching;
Second acquisition module, for obtaining the corresponding key frame interval of video coding efficiency high;
Generation module, for corresponding with the video coding efficiency high according to the corresponding key frame interval of the quick bitstreams switching
Key frame interval, generate predetermined number code stream, wherein, the predetermined number is the integer not less than 2;
Module is chosen, for according to predetermined manner, selecting a code stream from code stream each described, as code stream to be used;
First handover module, plays out for the video of current play time point to be switched into the code stream to be used.
7. device according to claim 6, it is characterised in that the generation module includes:
First generation unit, for utilizing relational expression t=N/M, generates t code stream, and the t is the predetermined number, and the N is
The corresponding key frame interval of the video coding efficiency high, the M is the corresponding key frame interval of the quick bitstreams switching, t
Individual respective first frame of the code stream is key frame;
First the second of code stream key frame in t code streams in N+1 frames, m1Individual key frame is in (m1-1)*N+
1 frame, m1>=1;
Second the second of code stream key frame in t code streams in M+1 frames, m2Individual key frame is in (m2-2)*N+
M+1 frames, m2>=2;
Second key frame of the 3rd code stream in t code streams in 2M+1 frames, m3Individual key frame is in (m3-2)*N
+ 2M+1 frames, m3>=2;
Second key frame of u-th code stream in the t code stream is in (u-1) * M+1 frames, m4Individual key frame is in (m4-
2) * N+ (u-1) * M+1 frames, m4>=2,1<u<=t.
8. device according to claim 7, it is characterised in that the selection module includes:
First chooses unit, for from first code stream in the t code stream, second code stream, the 3rd code stream and u-th
The nearest key frame of current play time point described in time gap is selected in code stream;
Determining unit, for the code stream belonging to the nearest key frame of current play time point described in the time gap that will select,
As code stream to be used.
9. device according to claim 7, it is characterised in that the generation module includes:
Second generation unit, for according to the quick corresponding key frame interval of bitstreams switching and the video coding efficiency high
Corresponding key frame interval, generates 2 code streams, and 2 respective first frames of code stream are key frames, and 2 code streams
In first key frame interval of code stream be M, second key frame interval of code stream in 2 code streams is N, the M
It is the corresponding key frame interval of the quick bitstreams switching, the N is the corresponding key frame interval of the video coding efficiency high.
10. device according to claim 9, it is characterised in that the selection module includes:
Second chooses unit, for selecting first code stream from 2 code streams, as code stream to be used;
Described device also includes:
Second handover module, for second code stream in the video playback of current play time point to 2 code streams
During key frame position, second code stream video of current play time point switched in 2 code streams is played out.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710183249.4A CN106937141A (en) | 2017-03-24 | 2017-03-24 | A kind of bitstreams switching method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710183249.4A CN106937141A (en) | 2017-03-24 | 2017-03-24 | A kind of bitstreams switching method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106937141A true CN106937141A (en) | 2017-07-07 |
Family
ID=59425902
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710183249.4A Pending CN106937141A (en) | 2017-03-24 | 2017-03-24 | A kind of bitstreams switching method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106937141A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111741314A (en) * | 2020-06-18 | 2020-10-02 | 聚好看科技股份有限公司 | Video playing method and display equipment |
CN112165653A (en) * | 2020-09-28 | 2021-01-01 | 中国建设银行股份有限公司 | Video playing method, device and equipment |
WO2021012180A1 (en) * | 2019-07-23 | 2021-01-28 | 深圳市大疆创新科技有限公司 | Transmission control method and device for code streams, and computer readable storage medium |
CN113691797A (en) * | 2021-08-27 | 2021-11-23 | 咪咕文化科技有限公司 | Video playing processing method, device, equipment and storage medium |
WO2022048277A1 (en) * | 2020-09-01 | 2022-03-10 | 中兴通讯股份有限公司 | Virtual reality video processing method and terminal thereof, server and storage medium |
CN115529474A (en) * | 2021-06-24 | 2022-12-27 | 北京金山云网络技术有限公司 | Panoramic video transmission method and device, electronic equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2007072244A1 (en) * | 2005-12-23 | 2007-06-28 | Koninklijke Philips Electronics N.V. | A device for and a method of processing a data stream comprising a plurality of frames |
US20110191803A1 (en) * | 2002-11-07 | 2011-08-04 | Microsoft Corporation | Trick Mode Support for VOD with Long Intra-Frame Intervals |
CN102172028A (en) * | 2009-07-31 | 2011-08-31 | 松下电器产业株式会社 | Video data processing device and video data processing system |
CN102291599A (en) * | 2011-05-07 | 2011-12-21 | 董友球 | Network video playing method and network video playing device |
CN104780443A (en) * | 2015-03-19 | 2015-07-15 | 四川长虹电器股份有限公司 | Method for realizing I-frame interval dynamic detection on set-top box |
CN104967884A (en) * | 2015-04-17 | 2015-10-07 | 北京奇艺世纪科技有限公司 | Code stream switching method and code stream switching device |
CN105144727A (en) * | 2013-03-13 | 2015-12-09 | 苹果公司 | Codec techniques for fast switching |
CN106162235A (en) * | 2016-08-17 | 2016-11-23 | 北京百度网讯科技有限公司 | Method and apparatus for Switch Video stream |
-
2017
- 2017-03-24 CN CN201710183249.4A patent/CN106937141A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110191803A1 (en) * | 2002-11-07 | 2011-08-04 | Microsoft Corporation | Trick Mode Support for VOD with Long Intra-Frame Intervals |
WO2007072244A1 (en) * | 2005-12-23 | 2007-06-28 | Koninklijke Philips Electronics N.V. | A device for and a method of processing a data stream comprising a plurality of frames |
CN102172028A (en) * | 2009-07-31 | 2011-08-31 | 松下电器产业株式会社 | Video data processing device and video data processing system |
CN102291599A (en) * | 2011-05-07 | 2011-12-21 | 董友球 | Network video playing method and network video playing device |
CN105144727A (en) * | 2013-03-13 | 2015-12-09 | 苹果公司 | Codec techniques for fast switching |
CN104780443A (en) * | 2015-03-19 | 2015-07-15 | 四川长虹电器股份有限公司 | Method for realizing I-frame interval dynamic detection on set-top box |
CN104967884A (en) * | 2015-04-17 | 2015-10-07 | 北京奇艺世纪科技有限公司 | Code stream switching method and code stream switching device |
CN106162235A (en) * | 2016-08-17 | 2016-11-23 | 北京百度网讯科技有限公司 | Method and apparatus for Switch Video stream |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021012180A1 (en) * | 2019-07-23 | 2021-01-28 | 深圳市大疆创新科技有限公司 | Transmission control method and device for code streams, and computer readable storage medium |
CN111741314A (en) * | 2020-06-18 | 2020-10-02 | 聚好看科技股份有限公司 | Video playing method and display equipment |
WO2022048277A1 (en) * | 2020-09-01 | 2022-03-10 | 中兴通讯股份有限公司 | Virtual reality video processing method and terminal thereof, server and storage medium |
CN112165653A (en) * | 2020-09-28 | 2021-01-01 | 中国建设银行股份有限公司 | Video playing method, device and equipment |
CN115529474A (en) * | 2021-06-24 | 2022-12-27 | 北京金山云网络技术有限公司 | Panoramic video transmission method and device, electronic equipment and storage medium |
CN113691797A (en) * | 2021-08-27 | 2021-11-23 | 咪咕文化科技有限公司 | Video playing processing method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106937141A (en) | A kind of bitstreams switching method and device | |
KR101126021B1 (en) | Method and apparatus for seamlessly switching reception between multimedia streams in a wireless communication system | |
CN1150509C (en) | Subtitle colorwiping and positioning method and apparatus | |
CN103069799B (en) | Signaling is used for the data of multiplex video component | |
CN102055967B (en) | Visual angle switching and encoding method and device of multi-viewpoint video | |
CN103248941B (en) | A kind of method of multi-channel video source simultaneous display and device | |
CN102347042B (en) | Audio track switching method, system thereof and audio and video file playing device | |
BRPI0817192B1 (en) | METHOD FOR ENCODING A VIDEO DATA SIGNAL, SYSTEM FOR ENCODING A VIDEO SIGNAL, NON-TRANSITIONAL MEDIA READABLE BY COMPUTER, METHOD FOR DECODING VIDEO SIGNS, AND SYSTEM FOR DECODING VIDEO SIGNALS | |
CN105979347A (en) | Video play method and device | |
JP2002016500A (en) | Method and device for variable length encoding and decoding using plural mapping tables | |
CN102572587A (en) | Set-top box and method for quickly switching channel | |
CN104219527A (en) | Coding method and coding system for embedded device-oriented 4K ultra-high-definition video | |
CN1694529A (en) | Transmission method for video flow in interactive multi-viewpoint video system | |
CN101047860A (en) | Vedio layering coding method at interleaving mode | |
CN107197369A (en) | A kind of video stream media parallel decoding method of many subflow collaborations | |
CN106303682A (en) | The method and device of channel switch | |
CN104683858A (en) | Preview method and device for content of stream medium | |
CN108540852A (en) | A kind of screenshotss method | |
CN106331871A (en) | Method and device for realizing fast-forward or fast-backward playback of video stream | |
CN101388982A (en) | Television program browsing method, system and digital television receiving terminal | |
CN106131573B (en) | A kind of HEVC spatial resolutions code-transferring method | |
CN104506866B (en) | A kind of video coding processing method and video encoder suitable for more code streams | |
EP2845382A1 (en) | Identifying leading pictures in video coding | |
WO2002005567A3 (en) | Method and apparatus for video encoding | |
CN1286875A (en) | Apparatus and method for time stamping using modulo time base and time increment resolution |
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: 20170707 |
|
RJ01 | Rejection of invention patent application after publication |