CN106412580B - The method and device of intracoded frame in a kind of setting video sequence - Google Patents
The method and device of intracoded frame in a kind of setting video sequence Download PDFInfo
- Publication number
- CN106412580B CN106412580B CN201610936038.9A CN201610936038A CN106412580B CN 106412580 B CN106412580 B CN 106412580B CN 201610936038 A CN201610936038 A CN 201610936038A CN 106412580 B CN106412580 B CN 106412580B
- Authority
- CN
- China
- Prior art keywords
- frame
- kth
- value
- video sequence
- submodule
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/142—Detection of scene cut or scene change
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The embodiment of the invention discloses a kind of methods of intracoded frame in setting video sequence, comprising: obtains video sequence;Detect in the kth frame and first set of video sequence whether occurrence scene switches between each frame one by one, k is the integer greater than 1, and first set includes -1 frame of kth of video sequence;Detect in kth frame and second set whether occurrence scene switches between each frame one by one, second set includes+1 frame of kth of video sequence;When between frame each in kth frame and first set equal occurrence scene switch when, and in kth frame and second set between an at least frame non-occurrence scene switch when, set intracoded frame for kth frame.In the case that the code efficiency of non-occurrence scene switch frame is constant in constant and video sequence in guarantee video encoding quality, reduces the quantity of intracoded frame in video sequence, not only reduce the bit number of video, also improve the efficiency of whole Video coding.
Description
Technical field
The present invention relates to a kind of methods of intracoded frame in technical field of video processing more particularly to setting video sequence
And device.
Background technique
Frame is the basic unit for forming video sequence.In Video coding, frame type can be set as I frame, P frame or B
Frame.Intracoded frame (I frame) is the coded frame of a full frame data compression.Only use the data of I frame without necessarily referring to other when decoding
Picture, can be as the reference frame of subsequent several frames with regard to restructural complete image.Present frame is only preserved in prediction frame (P frame)
The data of picture difference between I frame or former frame;Bi-directional predicted frames (B frame) record is drawn between present frame and forward and backward frame
The data of face difference.And the code efficiency of I frame is minimum.Therefore, appropriate number of I frame is arranged in the video sequence to compile for improving
The efficiency of code is particularly significant.
In existing video coding technique, it will usually I frame is arranged in a certain frame in video sequence in both cases: with
When machine access needs and occurrence scene switches.Existing all the relevant technologies, all only detection present frame and forward direction consecutive frame or
Whether scene switching has occurred between person's forward reference frame.In case of scene switching, then present frame is just set as frame
Intra coded frame.But when continuing occurrence scene switching in video sequence, each scene switching frame is disposed as I frame can be to
Code rate control brings difficulty, influences video coding efficiency.
Summary of the invention
In view of this, can be solved the present invention provides a kind of method and device of intracoded frame in setting video sequence
When certainly the prior art continues occurrence scene switching in the video sequence, each scene switching frame is disposed as I frame, is influenced whether
The problem of video coding efficiency.
The method of intracoded frame in a kind of setting video sequence provided in an embodiment of the present invention, comprising:
Video sequence is obtained, the video sequence includes multiple frames being arranged in order;
Detect in the kth frame and first set of the video sequence whether occurrence scene switches between each frame one by one, k is
Integer greater than 1, the first set include -1 frame of kth of the video sequence;
Detect in the kth frame and second set whether occurrence scene switches between each frame one by one, the second set
+ 1 frame of kth including the video sequence;
When in the kth frame and the first set between each frame the switching of equal occurrence scene and the kth frame with it is described
When non-occurrence scene switches between an at least frame in second set, intracoded frame is set by the kth frame.
Preferably, the first set further includes the kth-m frame of the video sequence, and m is the integer greater than 1.
Preferably, the second set further includes the kth+n frame of the video sequence, and n is the integer greater than 1.
Preferably, whether occur between each frame in the kth frame and first set for detecting the video sequence one by one
Scene switching specifically includes:
Complexity in the frame of the kth frame is obtained, value in frame is obtained;
The inter-frame complexity between the kth frame and jth frame is obtained, inter values are obtained, the jth frame is first collection
A frame in conjunction;
The difference for obtaining value and the inter values frame Nei, obtains the first value;
Value in the frame is obtained into second value divided by first value;
When the second value is greater than preset threshold, occurrence scene switches between the kth frame and the jth frame.
Preferably, described to detect in the kth frame and second set whether occurrence scene switches between each frame one by one, tool
Body includes:
Complexity in the frame of the kth frame is obtained, value in frame is obtained;
The inter-frame complexity between the kth frame and q frame is obtained, inter values are obtained, the q frame is second collection
A frame in conjunction;
The difference for obtaining value and the inter values frame Nei, obtains the first value;
Value in the frame is obtained into second value divided by first value;
When the second value is greater than preset threshold, occurrence scene switches between the kth frame and the q frame.
The device of intracoded frame in a kind of setting video sequence provided in an embodiment of the present invention, comprising: video acquisition mould
Block, type set module, first detection module and the second detection module;
The video acquiring module, for obtaining video sequence, the video sequence includes multiple frames being arranged in order;
The first detection module, in the kth frame and first set for detecting the video sequence one by one each frame it
Between whether occurrence scene switches, k is integer greater than 1, and the first set includes -1 frame of kth of the video sequence;
Whether second detection module occurs between each frame for being detected in the kth frame and second set one by one
Scene switching, the second set include+1 frame of kth of the video sequence;
The type set module, for judging in the kth frame and the first set when the first detection module
Equal occurrence scene switches between each frame and second detection module judges in the kth frame and the second set at least
When non-occurrence scene switches between one frame, intracoded frame is set by the kth frame, the comparison frame is the second set
In a frame.
Preferably, the first set further includes the kth-m frame of the video sequence, and m is the integer greater than 1.
Preferably, the second set further includes the kth+n frame of the video sequence, and n is the integer greater than 1.
Preferably, the first detection module, specifically includes: the first complexity submodule, the first computational submodule, first
Judging submodule and first determines submodule;
The first complexity submodule, complexity in the frame for obtaining the kth frame obtain value in frame;
The first complexity submodule, is also used to obtain the inter-frame complexity between the kth frame and jth frame, obtains
Inter values, the jth frame are the frame in the first set;
First computational submodule obtains the first value for obtaining the difference of value and the inter values in the frame;
First computational submodule is also used to value in the frame obtaining second value divided by first value;
First judging submodule, for judging whether the second value is greater than preset threshold;
Described first determines submodule, for judging that the second value is greater than described preset when first judging submodule
When threshold value, determine that occurrence scene switches between the kth frame and the jth frame.
Preferably, second detection module, specifically includes: the second complexity submodule, the second computational submodule, second
Judging submodule and second determines submodule;
The second complexity submodule, complexity in the frame for obtaining the kth frame obtain value in frame;
The second complexity submodule, is also used to obtain the inter-frame complexity between the kth frame and q frame, obtains
Inter values, the q frame are the frame in the second set;
Second computational submodule obtains the first value for obtaining the difference of value and the inter values in the frame;
Second computational submodule is also used to value in the frame obtaining second value divided by first value;
The second judgment submodule, for judging whether the second value is greater than preset threshold;
Described second determines submodule, for judging that the second value is greater than preset threshold when the second judgment submodule
When, determine that occurrence scene switches between the kth frame and the q frame.
Compared with prior art, the present invention has at least the following advantages:
The method of intracoded frame in setting video sequence provided in an embodiment of the present invention, after getting video sequence,
Detect in the present frame in video sequence and forward frame set and backward frame set whether occurrence scene switches between each frame.Only
Have each frame in present frame and forward frame set have occurred scene switching and present frame with after into frame set at least
Between one frame in the case where non-occurrence scene switching, present frame is just set as intracoded frame.Guaranteeing video encoding quality
In the case that the code efficiency of non-occurrence scene switch frame is constant in constant and video sequence, reduces in video sequence and compiled in frame
The quantity of code frame, not only reduces the bit number of video, also improves the efficiency of whole Video coding.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The some embodiments recorded in application, for those of ordinary skill in the art, without creative efforts,
It can also be obtained according to these attached drawings other attached drawings.
Fig. 1 is the flow diagram of the embodiment of the method for intracoded frame in setting video sequence provided by the invention;
Fig. 2 is the structural schematic diagram of the Installation practice of intracoded frame in setting video sequence provided by the invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only this
Invention a part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
The method of intracoded frame in existing setting video sequence, be present frame and its forward direction consecutive frame or
When scene switching has occurred between the reference frame of forward direction, present frame is set as intracoded frame (I frame).If there is no fields
Scape switching, then according to the actual situation, be set as forward coding frame (P frame) or alternating binary coding frame (B frame) for present frame.Work as video
When recurring scene switching in sequence, due to picture between scene switching frame and subsequent one or more frame gap compared with
Greatly, reference can not be provided for the coding of subsequent several frames by setting I frame for scene switching frame, need to be by subsequent each generation
The frame of scene switching is disposed as I frame.It is excessive to will lead to the I number of frames being arranged in video sequence in this way, to influence whether to regard
The efficiency of frequency coding.
For this purpose, the embodiment of the invention provides a kind of methods of intracoded frame in setting video sequence.This method and existing
There is technology to compare, the judgment basis set to consecutive frame as I frame after introducing.It is had occurred between present frame and forward direction consecutive frame
In the case where scene switching, only between consecutive frame and present frame, there is no when scene switching, i.e., present frame can when rear
Present frame is just set as I frame to consecutive frame after thinking, or even when other more backward frames provide the reference of coding.Remaining feelings
Under condition, present frame is set as P frame or B frame (can be set according to actual conditions).Since the code efficiency of I frame can generally be lower than
P frame and B frame, compared to the prior art for, above reduce the quantity of I frame in video sequence, improve Video coding
Efficiency.
Based on above-mentioned thought, in order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below with reference to
Specific embodiments of the present invention will be described in detail for attached drawing.
Embodiment of the method:
Referring to Fig. 1, which is the process of the embodiment of the method for intracoded frame in setting video sequence provided by the invention
Schematic diagram.
The method of intracoded frame in setting video sequence provided in this embodiment, comprising:
S101: video sequence is obtained, the video sequence includes multiple frames being arranged in order;
Video is made of the still picture that multiple temporally axis arrange, and each still picture is a frame.
It should be noted that the resolution ratio of each frame needs phase in video sequence to guarantee the accurate of intracoded frame setting
Together.
S102: detect in the kth frame and first set of the video sequence whether occurrence scene is cut between each frame one by one
It changes, k is the integer greater than 1, and the first set includes -1 frame of kth of the video sequence;
It is understood that when Video coding being encoded frame by frame backward since first frame.And in video sequence
The foundation that one frame does not encode can only be set to I frame, to provide the foundation of coding for subsequent frame.
In preferred embodiments, the first set further includes the kth-m frame of the video sequence, and m is greater than 1
Integer.
Since P frame may generally be, subsequent frame provides the foundation of coding but B frame not necessarily can provide volume for subsequent frame
The foundation of code.Therefore, kth-m frame can for before kth frame to I frame or P frame.Frame in first set is not necessarily adjacent.
It in one example, may include first 2 or 3 to consecutive frame (i.e. -1 frame of kth) and forward direction adjacent in first set
Or non-conterminous P frame.
In some possible implementations of the present embodiment, the kth frame for detecting the video sequence one by one and the
Whether occurrence scene switching includes: between each frame in one set
Firstly, obtaining complexity in the frame of the kth frame, value in frame is obtained;
When calculating the autocorrelation of kth frame, the video image of original resolution can be used or reduce resolution ratio
Down-sampling video image, to carry out intra prediction.Then the sum of quadratic sum or the absolute value of intra prediction are calculated, with this
Complexity in frame to describe kth frame.Since the calculating of complexity and inter-frame complexity in frame is influenced by video resolution, phase
It answers, the frame in first set need to be identical as the resolution ratio of kth frame.
Secondly, obtaining the inter-frame complexity between the kth frame and jth frame, inter values are obtained, the jth frame is described
A frame in first set;
The inter-prediction between kth frame and jth frame can be used to be obtained for interframe cross correlation between kth frame and jth frame
Inter prediction residue quadratic sum or the sum of absolute value describe.Then, the quadratic sum of Inter prediction residue obtained
Perhaps the sum of absolute value need further with the quadratic sum of intra prediction obtained when kth frame intra prediction or absolutely
It compares to the sum of value, value lesser in the two is called to the inter-frame complexity of kth frame.
Again, the difference for obtaining value and the inter values frame Nei, obtains the first value;
It is understood that complexity is always greater than the inter-frame complexity between kth frame and jth frame in the frame of kth frame, i.e.,
First value is greater than zero.
It should be noted that one outstanding feature is when actual scene switching occurs for frame a certain in video
The different cross correlation very littles with reference to interframe, i.e. inter values are larger with a certain position on time shaft for kth frame.If do not sent out
When raw scene switching, since the cross correlation of kth frame and reference frame is larger, interframe complex value is smaller.In this way, coming to kth frame
It says, inter values when occurrence scene switches are greater than inter values when no scene switching.That is, for same frame, which is
The first value when scene switching frame is greater than the first value when the frame is not scene conversion frame.
As an example, can judge whether occurrence scene is cut between kth frame and jth frame according to the size of the first value
It changes.That is, when the first value is greater than or when preset threshold, scene switching has occurred between kth frame and jth frame;When the first value is less than in advance
If when threshold value, there is no scene switchings between kth frame and jth frame.
Further, also scene switching judgement can be carried out by following steps, improves the accuracy rate of judgement: will be in the frame
Value obtains second value divided by first value;When the second value is greater than preset threshold, the kth frame and the jth frame it
Between occurrence scene switch.
What needs to be explained here is that when in inter-frame complexity and frame complexity relatively in the case where, interframe is used only
The accuracy that the size relation of complexity and complexity in frame carries out the obtained result of scene change detection is lower.Therefore, it adopts
Judged with above-mentioned steps kth frame whether be scene switching in video sequence frame, using complexity difference as divisor, with complicated in frame
Degree is dividend, and the first complexity quotient may make to have a bigger variation range in different situations, is more accurately judged
First frame whether be scene switching in video sequence frame.
S103: detecting in the kth frame and second set whether occurrence scene switches between each frame one by one, and described second
Set includes+1 frame of kth of the video sequence;
In preferred embodiments, the second set further includes the kth+n frame of the video sequence, and n is greater than 1
Integer.
Similarly, I frame, P frame or B frame that kth+n frame can be backward for kth frame.Frame in second set is not necessarily adjacent.
In one example, adjacent to consecutive frame (i.e.+1 frame of kth) and backward 2 or 3 after may include in second set
Or non-conterminous frame.
It is described to be detected in the kth frame and second set one by one often in some possible implementations of the present embodiment
Whether occurrence scene switches between one frame, specifically includes:
Firstly, obtaining complexity in the frame of the kth frame, value in frame is obtained;
Secondly, obtaining the inter-frame complexity between the kth frame and q frame, inter values are obtained, the q frame is described
A frame in second set;
Again, the difference for obtaining value and the inter values frame Nei, obtains the first value;
As an example, can judge whether occurrence scene is cut between kth frame and q frame according to the size of the first value
It changes.That is, when the first value is greater than or when preset threshold, scene switching has occurred between kth frame and q frame;When the first value is less than in advance
If when threshold value, there is no scene switchings between kth frame and q frame.
Further, also scene switching judgement can be carried out by following steps, improves the accuracy rate of judgement: will be in the frame
Value obtains second value divided by first value;When the second value is greater than preset threshold, the kth frame and the q frame it
Between occurrence scene switch.
It is understood that detect in the kth frame and second set between each frame whether the side of occurrence scene switching
Method and detect between the kth frame and frame each in first set whether the method for occurrence scene switching is similar, specific explanations this
In no longer repeat one by one.
S104: when in the kth frame and the first set between each frame the switching of equal occurrence scene and the kth frame with
When non-occurrence scene switches between an at least frame in the second set, intracoded frame is set by the kth frame;
When equal occurrence scene switches between frame each in kth frame and first set, that is, illustrate do not have in the forward frame of kth frame
There is the frame similar with its picture.At this point, code efficiency is not much different when setting I frame, P frame or B frame for kth frame.At this point, needing
According to whether occurrence scene switching is to determine whether need to be set as intraframe coding for kth frame between frame in kth frame and second set
Frame, to provide the foundation of coding to frame to be rear, to the efficiency of frame coding after raising.
Later, when a certain frame (i.e. comparison frame) in kth frame and second set including backward one or more frames it
Between non-occurrence scene switch when, illustrate that kth frame can provide the foundation of coding for the frame, the reference coding frame as the frame.This
When, I frame is set by kth frame, for the prior art, it is ensured that there is no the volumes of the frame of scene switching between kth frame
Code efficiency is constant.
Generally speaking, the intracoded frame in video sequence is set through method provided in this embodiment, compared to existing
For technology, the quantity of the I frame of reduction improves the efficiency of Video coding.
The method of intracoded frame in setting video sequence provided in this embodiment, after getting video sequence, first
Detect in video sequence whether occurrence scene switches between each frame in present frame and forward frame set and backward frame set.Only
At least one of scene switching and present frame with after into frame set has occurred in each frame in present frame and forward frame set
Between frame in the case where non-occurrence scene switching, present frame is just set as intracoded frame.Guaranteeing video encoding quality not
In the case that the code efficiency of non-occurrence scene switch frame is constant in change and video sequence, reduce intraframe coding in video sequence
The quantity of frame not only reduces the bit number of video, also improves the efficiency of whole Video coding.
The method of intracoded frame, the embodiment of the present invention also provide in the setting video sequence provided based on the above embodiment
The device of intracoded frame in a kind of setting video sequence.
Installation practice:
Referring to fig. 2, which is the structure of the Installation practice of intracoded frame in setting video sequence provided by the invention
Schematic diagram.
The device of intracoded frame in setting video sequence provided in this embodiment, comprising: video acquiring module 100,
One detection module 200, the second detection module 300 and type set module 400;
The video acquiring module 100, for obtaining video sequence, the video sequence includes multiple is arranged in order
Frame;
The first detection module 200, each frame in the kth frame and first set for detecting the video sequence one by one
Between whether occurrence scene switches, k is integer greater than 1, and the first set includes -1 frame of kth of the video sequence;
It is understood that when Video coding being encoded frame by frame backward since first frame.And in video sequence
The foundation that one frame does not encode can only be set to I frame, to provide the foundation of coding for subsequent frame.
In preferred embodiments, the first set further includes the kth-m frame of the video sequence, and m is greater than 1
Integer.
In some possible implementations of the present embodiment, the first detection module 200 is specifically included: first is multiple
Miscellaneous degree submodule, the first computational submodule, the first judging submodule and first determine submodule (being not shown);
The first complexity submodule, complexity in the frame for obtaining the kth frame obtain value in frame;
The first complexity submodule, is also used to obtain the inter-frame complexity between the kth frame and jth frame, obtains
Inter values, the jth frame are the frame in the first set;
First computational submodule obtains the first value for obtaining the difference of value and the inter values in the frame;
First computational submodule is also used to value in the frame obtaining second value divided by first value;
First judging submodule, for judging whether the second value is greater than preset threshold;
Described first determines submodule, for judging that the second value is greater than described preset when first judging submodule
When threshold value, determine that occurrence scene switches between the kth frame and the jth frame.
Whether second detection module 300 is sent out between each frame for being detected in the kth frame and second set one by one
Raw scene switching, the second set includes+1 frame of kth of the video sequence;
In preferred embodiments, the second set further includes the kth+n frame of the video sequence, and n is greater than 1
Integer.
In some possible implementations of the present embodiment, second detection module 300 is specifically included: second is multiple
Miscellaneous degree submodule, the second computational submodule, second judgment submodule and second determine submodule (being not shown);
The second complexity submodule, complexity in the frame for obtaining the kth frame obtain value in frame;
The second complexity submodule, is also used to obtain the inter-frame complexity between the kth frame and q frame, obtains
Inter values, the q frame are the frame in the second set;
Second computational submodule obtains the first value for obtaining the difference of value and the inter values in the frame;
Second computational submodule is also used to value in the frame obtaining second value divided by first value;
The second judgment submodule, for judging whether the second value is greater than preset threshold;
Described second determines submodule, for judging that the second value is greater than preset threshold when the second judgment submodule
When, determine that occurrence scene switches between the kth frame and the q frame.
The type set module 400 is also used to judge the kth frame and described the when the first detection module 200
Occurrence scene switches and second detection module 300 judges the kth frame and described second between each frame in one set
When non-occurrence scene switches between an at least frame in set, intracoded frame is set by the kth frame.
The device of intracoded frame in setting video sequence provided in this embodiment, gets video in video acquiring module
After sequence, first detection module and the second detection module detect respectively present frame with it is each in forward frame set and backward frame set
Whether occurrence scene switches between frame.Each frame only in present frame and forward frame set has occurred scene switching and works as
Between an at least frame in previous frame and backward frame set in the case where non-occurrence scene switching, type set module is just by present frame
It is set as intracoded frame.Guarantee that video encoding quality is constant and in video sequence non-occurrence scene switch frame code efficiency
In the case where constant, reduce the quantity of intracoded frame in video sequence, not only reduces the bit number of video, also improve
The efficiency of whole Video coding.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment emphasis is said
Bright is the difference from other embodiments, and the same or similar parts in each embodiment may refer to each other.For reality
For applying device disclosed in example, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place ginseng
See method part illustration.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one
Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation
There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain
Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor
The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit
Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
The above described is only a preferred embodiment of the present invention, being not intended to limit the present invention in any form.Though
So the present invention has been disclosed as a preferred embodiment, and however, it is not intended to limit the invention.It is any to be familiar with those skilled in the art
Member, without departing from the scope of the technical proposal of the invention, all using the methods and technical content of the disclosure above to the present invention
Technical solution makes many possible changes and modifications or equivalent example modified to equivalent change.Therefore, it is all without departing from
The content of technical solution of the present invention, according to the technical essence of the invention any simple modification made to the above embodiment, equivalent
Variation and modification, all of which are still within the scope of protection of the technical scheme of the invention.
Claims (6)
1. a kind of method of intracoded frame in setting video sequence characterized by comprising
Video sequence is obtained, the video sequence includes multiple frames being arranged in order;
Detect in the kth frame and first set of the video sequence between each frame whether occurrence scene switches one by one, k be greater than
1 integer, the first set include -1 frame of kth and kth-m frame of the video sequence, and m is the integer greater than 1;
Detect in the kth frame and second set whether occurrence scene switches between each frame one by one, the second set includes
+ 1 frame of kth and kth+n frame of the video sequence, n are the integer greater than 1;
When the switching of equal occurrence scene and the kth frame and described second between each frame in the kth frame and the first set
When non-occurrence scene switches between an at least frame in set, intracoded frame is set by the kth frame.
2. the method for intracoded frame in setting video sequence according to claim 1, which is characterized in that described to examine one by one
Survey in the kth frame and first set of the video sequence whether occurrence scene switches between each frame, specifically include:
Complexity in the frame of the kth frame is obtained, value in frame is obtained;
The inter-frame complexity between the kth frame and jth frame is obtained, inter values are obtained, the jth frame is in the first set
A frame;
The difference for obtaining value and the inter values frame Nei, obtains the first value;
Value in the frame is obtained into second value divided by first value;
When the second value is greater than preset threshold, occurrence scene switches between the kth frame and the jth frame.
3. the method for intracoded frame in setting video sequence according to claim 1, which is characterized in that described to examine one by one
Survey in the kth frame and second set whether occurrence scene switches between each frame, specifically include:
Complexity in the frame of the kth frame is obtained, value in frame is obtained;
The inter-frame complexity between the kth frame and q frame is obtained, inter values are obtained, the q frame is in the second set
A frame;
The difference for obtaining value and the inter values frame Nei, obtains the first value;
Value in the frame is obtained into second value divided by first value;
When the second value is greater than preset threshold, occurrence scene switches between the kth frame and the q frame.
4. the device of intracoded frame in a kind of setting video sequence characterized by comprising video acquiring module, type are set
Cover half block, first detection module and the second detection module;
The video acquiring module, for obtaining video sequence, the video sequence includes multiple frames being arranged in order;
The first detection module is between each frame in the kth frame and first set for detecting the video sequence one by one
No occurrence scene switching, k is the integer greater than 1, and the first set includes -1 frame of kth and kth-m frame of the video sequence,
M is the integer greater than 1;
Second detection module, for detect in the kth frame and second set one by one between each frame whether occurrence scene
Switching, the second set include+1 frame of kth and kth+n frame of the video sequence, and n is the integer greater than 1;
The type set module, for when the first detection module judge the kth frame with it is each in the first set
Equal occurrence scene switching and second detection module judge at least frame in the kth frame and the second set between frame
Between non-occurrence scene switching when, set intracoded frame for the kth frame.
5. the device of intracoded frame in setting video sequence according to claim 4, which is characterized in that first inspection
Survey module, specifically include: the first complexity submodule, the first computational submodule, the first judging submodule and first determine submodule
Block;
The first complexity submodule, complexity in the frame for obtaining the kth frame obtain value in frame;
The first complexity submodule, is also used to obtain the inter-frame complexity between the kth frame and jth frame, obtains interframe
Value, the jth frame are the frame in the first set;
First computational submodule obtains the first value for obtaining the difference of value and the inter values in the frame;
First computational submodule is also used to value in the frame obtaining second value divided by first value;
First judging submodule, for judging whether the second value is greater than preset threshold;
Described first determines submodule, for judging that the second value is greater than the preset threshold when first judging submodule
When, determine that occurrence scene switches between the kth frame and the jth frame.
6. the device of intracoded frame in setting video sequence according to claim 4, which is characterized in that second inspection
Survey module, specifically include: the second complexity submodule, the second computational submodule, second judgment submodule and second determine submodule
Block;
The second complexity submodule, complexity in the frame for obtaining the kth frame obtain value in frame;
The second complexity submodule, is also used to obtain the inter-frame complexity between the kth frame and q frame, obtains interframe
Value, the q frame are the frame in the second set;
Second computational submodule obtains the first value for obtaining the difference of value and the inter values in the frame;
Second computational submodule is also used to value in the frame obtaining second value divided by first value;
The second judgment submodule, for judging whether the second value is greater than preset threshold;
Described second determines submodule, is used for when the second judgment submodule judges that the second value is greater than preset threshold,
Determine that occurrence scene switches between the kth frame and the q frame.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610936038.9A CN106412580B (en) | 2016-11-01 | 2016-11-01 | The method and device of intracoded frame in a kind of setting video sequence |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610936038.9A CN106412580B (en) | 2016-11-01 | 2016-11-01 | The method and device of intracoded frame in a kind of setting video sequence |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106412580A CN106412580A (en) | 2017-02-15 |
CN106412580B true CN106412580B (en) | 2019-07-09 |
Family
ID=58011704
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610936038.9A Active CN106412580B (en) | 2016-11-01 | 2016-11-01 | The method and device of intracoded frame in a kind of setting video sequence |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106412580B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2800593C1 (en) * | 2020-08-27 | 2023-07-25 | Биго Текнолоджи Пте. Лтд. | Method and device for separating group of images based on scene switching and method and device for video coding |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112019850B (en) * | 2020-08-27 | 2022-08-23 | 广州市百果园信息技术有限公司 | Image group dividing method based on scene switching, video coding method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6731684B1 (en) * | 1998-09-29 | 2004-05-04 | General Instrument Corporation | Method and apparatus for detecting scene changes and adjusting picture coding type in a high definition television encoder |
CN1758759A (en) * | 2005-11-18 | 2006-04-12 | 清华大学 | Switching detection method of video scene |
WO2008100000A1 (en) * | 2007-02-15 | 2008-08-21 | Chungbuk National University Industry-Academic Cooperation Foundation | Method of compressing and restoring moving picture using i frame tag |
CN101534442A (en) * | 2009-04-13 | 2009-09-16 | 腾讯科技(深圳)有限公司 | Video coding system and video coding method |
CN102630013A (en) * | 2012-04-01 | 2012-08-08 | 北京捷成世纪科技股份有限公司 | Bit rate control video compression method and device on basis of scene switching |
CN103826121A (en) * | 2013-12-20 | 2014-05-28 | 电子科技大学 | Scene switching detection based code rate control method in low-delay video coding |
CN104038762A (en) * | 2013-03-06 | 2014-09-10 | 三星电子株式会社 | Video Encoder, Method Of Detecting Scene Change And Method Of Controlling Video Encoder |
-
2016
- 2016-11-01 CN CN201610936038.9A patent/CN106412580B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6731684B1 (en) * | 1998-09-29 | 2004-05-04 | General Instrument Corporation | Method and apparatus for detecting scene changes and adjusting picture coding type in a high definition television encoder |
CN1758759A (en) * | 2005-11-18 | 2006-04-12 | 清华大学 | Switching detection method of video scene |
WO2008100000A1 (en) * | 2007-02-15 | 2008-08-21 | Chungbuk National University Industry-Academic Cooperation Foundation | Method of compressing and restoring moving picture using i frame tag |
CN101534442A (en) * | 2009-04-13 | 2009-09-16 | 腾讯科技(深圳)有限公司 | Video coding system and video coding method |
CN102630013A (en) * | 2012-04-01 | 2012-08-08 | 北京捷成世纪科技股份有限公司 | Bit rate control video compression method and device on basis of scene switching |
CN104038762A (en) * | 2013-03-06 | 2014-09-10 | 三星电子株式会社 | Video Encoder, Method Of Detecting Scene Change And Method Of Controlling Video Encoder |
CN103826121A (en) * | 2013-12-20 | 2014-05-28 | 电子科技大学 | Scene switching detection based code rate control method in low-delay video coding |
Non-Patent Citations (1)
Title |
---|
《视频编码中码率控制算法研究》;赵丹丹;《中国博士学位论文全文数据库-信息科技辑》;20121015;第33-38页,第3.2.1小节、第3.3.1小节,附图3-5、3-6 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
RU2800593C1 (en) * | 2020-08-27 | 2023-07-25 | Биго Текнолоджи Пте. Лтд. | Method and device for separating group of images based on scene switching and method and device for video coding |
Also Published As
Publication number | Publication date |
---|---|
CN106412580A (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10390021B2 (en) | Method and apparatus of video coding | |
US8184705B2 (en) | Method and apparatus for motion compensated filtering of video signals | |
GB2590222A (en) | MVD precision for affine | |
CN104427337A (en) | Region of interest (ROI) video coding method and apparatus based on object detection | |
KR960040020A (en) | Method and apparatus for setting motion region in video signal coding using feature point based motion compensation | |
EP2094017A2 (en) | Method for direct mode encoding and decoding | |
Xia et al. | Detecting video frame rate up-conversion based on frame-level analysis of average texture variation | |
CN101978698A (en) | Method and apparatus for encoding and decoding image | |
WO2011090789A1 (en) | Method and apparatus for video object segmentation | |
CN106412580B (en) | The method and device of intracoded frame in a kind of setting video sequence | |
CN102292727B (en) | Video descriptor generator | |
EP1287489A2 (en) | Method and apparatus for past and future motion classification | |
KR100734956B1 (en) | Method and apparatus for adaptive class tap selection according to multiple classification | |
CN106210718B (en) | Scene switching detection method and device in a kind of video sequence | |
CN105338362A (en) | Motion object detection method and motion object detection apparatus | |
KR970068623A (en) | Object Contour Coding System and Motion Estimation Method Thereof (SYSTEM FOR ENCODING CONTOUR OF OBJECT IN OBJECT BASED ENCODING SYSTEM AND MOTION ESTIMATION METHOD THEREOF) | |
WO2000048125A2 (en) | Method and apparatus for spatial class reduction | |
Kang | Adaptive luminance coding-based scene-change detection for frame rate up-conversion | |
CN102035996A (en) | Image processing apparatus and control method thereof | |
CN110933446B (en) | Method, system and equipment for identifying region of interest | |
EP0547460A1 (en) | Method and system for adapting the refresh frequency cycle to the image complexity | |
KR100343780B1 (en) | Method of Camera Motion Detection in Compressed Domain for Content-Based Indexing of Compressed Video | |
KR101979492B1 (en) | Method for adaptive scene change detection based on resolution and apparatus for the same | |
CN103533361A (en) | Determination method of multi-view disparity vector, coding equipment and decoding equipment | |
US6178266B1 (en) | Method and apparatus for the recovery of compression constants in the encoded domain |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |