CN106791850A - Method for video coding and device - Google Patents
Method for video coding and device Download PDFInfo
- Publication number
- CN106791850A CN106791850A CN201611104365.4A CN201611104365A CN106791850A CN 106791850 A CN106791850 A CN 106791850A CN 201611104365 A CN201611104365 A CN 201611104365A CN 106791850 A CN106791850 A CN 106791850A
- Authority
- CN
- China
- Prior art keywords
- video
- frequency band
- section
- multistage
- encoded
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- 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/154—Measured or subjectively estimated visual quality after decoding, e.g. measurement of distortion
-
- 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/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
-
- 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, rendering scenes according to MPEG-4 scene graphs
- H04N21/4402—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
- H04N21/440236—Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by media transcoding, e.g. video is transformed into a slideshow of still pictures, audio is converted into text
-
- 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/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/83—Generation or processing of protective or descriptive data associated with content; Content structuring
- H04N21/845—Structuring of content, e.g. decomposing content into time segments
- H04N21/8456—Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
Abstract
The present invention discloses a kind of method for video coding and device, is related to areas of information technology, wherein, methods described includes:Video to be encoded is divided into multistage sub-video section from the video-frequency band for playing starting point scheduled duration;Multistage sub-video section is encoded to the multistage transition video-frequency band with different video quality, the video quality of the multistage transition video-frequency band is reduced paragraph by paragraph according to the sequencing that the multistage transition video-frequency band is played, and is finally tended towards stability.Because the embodiment of the present invention only needs to be encoded the video in a period of time of the beginning of video according to video quality high, the quality of video is gradually reduced afterwards, it is possible to obtaining meeting the video of the time cost and equipment cost user reduces encoded video to the demand of video quality again needed for.
Description
Technical field
The present invention relates to areas of information technology, more particularly to a kind of method for video coding and device.
Background technology
Video definition and fluency decide the subjective experience of user, and video opens definition and fluency pair in broadcasting
Stick user extremely crucial.As continuing to develop for the Internet infrastructure is perfect, the bandwidth that Virtual network operator can be provided
It is increasing therewith.This is great development opportunity for the great video industry of bandwidth demand.However, not all
User can possess enough bandwidth resources and go to watch the video of the definition rank that disclosure satisfy that the demand of viewing and admiring.Therefore,
Major video websites also lift institute again and again in order to meet demand of the user with different available bandwidths to video definition
The definition of video is provided, video has been divided into the ranks such as general clear, high definition, super clear, blue light according to definition, and each is clear
The video of clear degree rank corresponds to a kind of code check.
However, inventor realize it is of the invention during find, even the video of same code check, by adjust encode
The complexity of video can also obtain the video of different video quality.But if the complexity of undue lifting encoded video
Words will increase amount of calculation, so on the one hand bring the expense of time cost, on the other hand cause the damage to video encoder
Consumption.For especially for video provider, all videos that it is provided are all according to maximum video quality under correspondence code check
If being encoded to video bigger time cost and equipment loss will be consumed.Therefore, video provider is regarded in same code check
The solution of compromise is constantly looked between frequency quality and cost consumption.
The content of the invention
The embodiment of the present invention provides a kind of method for video coding and device, can not both expire at least solving prior art
Sufficient user encoded video is reduced again to the demand of video quality needed for time cost and equipment cost technical problem.
In a first aspect, the embodiment of the present invention provides a kind of method for video coding, it includes:By video to be encoded from broadcasting
The video-frequency band of initial point scheduled duration is divided into multistage sub-video section;Multistage sub-video section is encoded to different video matter
The multistage transition video-frequency band of amount, the video quality of the multistage transition video-frequency band is played according to the multistage transition video-frequency band
Sequencing is reduced paragraph by paragraph.
Second aspect, the embodiment of the present invention provides a kind of video coding apparatus, and it includes:Sub-video section division module, uses
In video to be encoded is divided into multiple sub-videos section from the video-frequency band of starting point scheduled duration;Dynamic video coding module, uses
In by the multiple sub-video section be encoded to the multiple transition video-frequency bands with different video quality, the multiple transition video-frequency band
Video quality reduced paragraph by paragraph according to played sequencing.
The third aspect, the embodiment of the present invention provides a kind of non-volatile computer readable storage medium storing program for executing, the storage medium
In be stored with one or more including execute instruction programs, the execute instruction can be by electronic equipment (including but not limited to
Computer, server, or network equipment etc.) read and perform, for performing any of the above-described Video coding side of the present invention
Method.
Fourth aspect, there is provided a kind of electronic equipment, it includes:At least one processor, and with described at least one at
The memory of reason device communication connection, wherein, the memory storage has can be by the instruction of at least one computing device, institute
Instruction is stated by least one computing device, so that at least one processor is able to carry out any of the above-described of the present invention
Method for video coding.
5th aspect, the embodiment of the present invention also provides a kind of computer program product, and the computer program product includes
The calculation procedure on non-volatile computer readable storage medium storing program for executing is stored, the computer program includes programmed instruction, works as institute
When stating programmed instruction and being computer-executed, the computer is set to perform any of the above-described method for video coding.
Embodiments of the invention are divided into multistage by by video to be encoded from the video-frequency band for playing starting point scheduled duration
Sub-video section;And it is (described more that multistage sub-video section is encoded into the multistage transition video-frequency band with different video quality
Section transition video-frequency band video quality according to the multistage transition video-frequency band be played sequencing reduce paragraph by paragraph) method,.
Because the embodiment of the present invention only needs to be encoded the video in a period of time of the beginning of video according to video quality is done, it
The quality of video is gradually reduced afterwards, it is possible to obtain that user can either be met and reducing coding again to the demand of video quality and regarding
The video of time cost and equipment cost needed for frequency.Further, since the video of scheduled duration has been divided into multistage sub-video section
The transition of video quality is carried out, so switching the image quality drastically saltus step of presence between avoiding different video quality, is lifted
The viewing experience of user.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will use needed for embodiment description
Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, for ability
For the those of ordinary skill of domain, on the premise of not paying creative work, can also obtain other attached according to these accompanying drawings
Figure.
Fig. 1 is the flow chart of the embodiment of method for video coding of the invention;
Fig. 2 is the flow chart of an implementation method of step S11 in Fig. 1;
Fig. 3 is the flow chart of an implementation method of step S12 in Fig. 1;
Fig. 4 is the structured flowchart of the embodiment of video coding apparatus of the invention;
Fig. 5 is the structured flowchart of the sub-video section embodiment of division module one in video coding apparatus of the invention;
Fig. 6 is the structured flowchart of the embodiment of dynamic video coding module one in video coding apparatus of the invention;
Fig. 7 is the structural representation of an embodiment of electronic equipment of the invention.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.
The present invention can be described in the general context of computer executable instructions, such as program
Module.Usually, program module includes performing particular task or realizes routine, program, object, the unit of particular abstract data type
Part, data structure etc..The present invention can also be in a distributed computing environment put into practice, in these DCEs, by
Remote processing devices connected by communication network perform task.In a distributed computing environment, program module can be with
In local and remote computer-readable storage medium including including storage device.
In the present invention, " module ", " device ", " system " etc. refer to and be applied to the related entities of computer, such as hardware, hard
The combination of part and software, software or executory software etc..In detail, for example, element can with but be not limited to run on place
Manage process, processor, object, executable element, execution thread, program and/or the computer of device.Further, server is run on
On application program or shell script, server can be element.One or more elements can be in the process and/or line for performing
Cheng Zhong, and element can on one computer localize and/or be distributed between two or multiple stage computers, it is possible to by
Various computer-readable medium operations.Element can also be according to the signal with one or more packets, for example, coming from one
Interacted with another element in local system, distributed system, and/or network in internet is handed over by signal and other systems
The signal of mutual data is communicated by locally and/or remotely process.
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", not only including those key elements, and
And also include other key elements being not expressly set out, or also include for this process, method, article or equipment institute are intrinsic
Key element.In the absence of more restrictions, the key element limited by sentence " including ... ", it is not excluded that including it is described will
Also there is other identical element in process, method, article or the equipment of element.
Inventor has found in practice:The user of limited bandwidth open a video when would rather pending buffer it is also total
It is to like for video selecting the definition for super clear even blue light rank to obtain more preferable viewing experience.But, sent out through statistics
Existing these users are just unwilling frequently to wait slow again after the video that have viewed certain time length is attracted by the plot of video
Rush, video has at this time been switched to high definition even general clear level again on the contrary in order to obtain more smooth viewing experience
Not.It follows that just no longer lying in the height of video quality when user is attracted by video content.Additionally, inventor is also
It was found that:User gets used to watching video in different video websites, and when user has found the same class video of video website A
(that is, same to bit-rate video) not as B websites quality when (for example, being equally the video of high definition rank, video website A is provided
Video quality provides the quality of video not as video website B), user can close video website A, stay in video website B continuation
Viewing video.
If it is possible to encode obtain it is a kind of play start a period of time video quality it is higher, play one section when
Between after quality step-down video if, can either just meet demand of the user to video quality, encoded video institute can be reduced again
The time cost of consumption and equipment loss.Therefore, inventor devises the method for video coding described in the embodiment of the present invention.
Under the constraint of code rate distortion optimization, the time complexity of Video coding is in positive with the video quality under same code check
Pass relation, that is, the time for encoding consuming is more, and the video quality that can be obtained is better.Core concept of the invention is compiled in video
The incipient stage of code is configured using different codings, i.e., exchange under same code check preferably video matter for using the time complexity of lifting
Amount.
As shown in figure 1, the method for video coding of one embodiment of the invention, methods described can be next by a kind of electronic equipment
Perform, methods described includes:
S11, by video to be encoded from play starting point scheduled duration video-frequency band be divided into multistage sub-video section;
S12, by the multistage sub-video section be encoded to the multistage transition video-frequency band with different video quality, the multistage
The video quality of transition video-frequency band is reduced paragraph by paragraph according to the sequencing that the multistage transition video-frequency band is played.
The method for video coding of the present embodiment is drawn by by video to be encoded from the video-frequency band for playing starting point scheduled duration
It is divided into multistage sub-video section;And multistage sub-video section is encoded to the multistage transition video-frequency band with different video quality
(video quality of the multistage transition video-frequency band is reduced paragraph by paragraph according to the sequencing that the multistage transition video-frequency band is played).
Because the embodiment of the present invention only needs to be encoded the video in a period of time of the beginning of video according to video quality high, it
The quality of video is gradually reduced afterwards, it is possible to obtain that user can either be met and reducing coding again to the demand of video quality and regarding
The video of time cost and equipment cost needed for frequency.Further, since the video of scheduled duration has been divided into multistage sub-video section
The transition of video quality is carried out, so switching the image quality drastically saltus step of presence between avoiding different video quality, is lifted
The viewing experience of user.
Video-frequency band described in the present embodiment step S11 is to start at pre- timing at the time point commenced play out from video to be encoded
One section of video long, i.e., one section of video that video to be encoded starts, this section of when a length of scheduled duration of video.Wherein, pre- timing
Length can be but be not limited to 40s, 4min, 10min etc., and the embodiment of the present invention is not limited scheduled duration.The present embodiment
It is middle by the video-frequency band be divided into multistage sub-video section the step of can be in advance by the video-frequency band divide in order to multistage is regarded
Frequency range, or video is carried out to divide video into multistage sub-video section in cataloged procedure in real time.The present embodiment is to institute
Stating the opportunity that video-frequency band is segmented is not limited.
The present embodiment step S12 is segmented according to the multistage sub-video section divided to the video-frequency band in step S11
Coding.The coding method of the present embodiment can be:Perform step S12 to encode the video-frequency band, when according to the first video
After the first paragraph sub-video section that the complete step S11 of quality coded is divided, continue to divide step S11 according to the second video quality
The second sub-video section encoded ... the like until step S11 is divided multistage sub-video section coding complete,
Obtain the multistage transition video-frequency band of multistage video quality gradually step-down, thus realize video quality higher to relatively low video quality it
Between automatic Transition switching.As a example by the video-frequency band is divided into n cross-talk video-frequency bands, the value of n can be according to video higher
Ropy size between quality and relatively low video quality determines, with reach play the video-frequency band during be presented to
The video of user is experienced in the absence of the target of the change of obvious image quality with the viewing for ensureing user.
As shown in Fig. 2 in certain embodiments, it is described by video to be encoded from the video-frequency band for playing starting point scheduled duration
Being divided into multistage sub-video section includes:
S21, the scene switching point and GOP separations determined in the video-frequency band;
S22, with determine the scene switching point and/or GOP separations the video-frequency band is divided into as waypoint it is many
Cross-talk video-frequency band.
The selection of waypoint has been determined into the field in the video-frequency band when being segmented to the video-frequency band in the present embodiment
Scape switching point and/or GOP separations, the video-frequency band is divided into multistage sub-video section rather than machinery.Scene switching point
And/or GOP separations are the intrinsic coding characteristics of video, and each scene in video and each GOP are entirely being regarded
All it is one group of relatively independent image in frequency, therefore, scene switching point and/or GOP separations will drop in the present embodiment used as right
The waypoint that video-frequency band is segmented, on the one hand ensure that the integrality of each cross-talk video-frequency band of division, reduce to video
The influence of quality (for example, it is the video of different video quality that the video-frequency band in two scenes is separately encoded, works as video playback
When, picture switches to another scene by a scene, because the overall background of picture is different, even if so at this moment there is video
The decline of quality can also weaken this difference, the transition more relaxed between the sub-video section for having reached different video quality);
On the other hand amount of calculation and the destruction to integrity of video for carrying out again that segmentation band is come to video-frequency band are avoided;Furthermore, compile
Reconfiguring for code parameter can only occur at key frame (key frame inserted in the borderline frames of GOP or scene switching).This
Scene switching point in embodiment refers to mutual switching critical points between two pictures of different background.GOP(Group Of
Picture an image sets) are referred to, is a parameter of the frame structure of MPEG-2 compressions, such as one length of GOP image sets
General value is spent by 1-250 (quantity of the image that i.e. one GOP is included).
Step S21 determines the method for scene switching point included in video-frequency band and/or GOP separations such as in the present embodiment
Under:
Determine that the frame of video to be encoded first is first key frame;Second key frame (scene switching point, GOP in other words
Separation) determination mode has two kinds:
(1) frame number between present frame and a upper key frame has reached maximum key frame apart from (this is a coding ginseng
Number, for example 240);I.e. from a upper key frame (including) to present frame former frame (including) frame number reached maximum key
Frame pitch from when, determine present frame for key frame, this key frame may not be scene switching point, but be the beginning of next GOP
Point (i.e., GOP separations).
(2) if present frame is widely different with previous frame, then it is assumed that be scene switching point, its specific detection has much to be done
Image, do video, do machine learning people design different algorithms;Herein for the example in an encoder for:[1-
(present frame being encoded into the bit numbers of P frames consumption)/(present frame being encoded into the bit numbers of I consumption)]<(scenecut/100)*
(distance/maximum key frame number of the present frame to a upper key frame).
If (wherein scenecut is to set decision-making to use I frames, the threshold value of every IDR frame, its value to meet this condition above
Scope be 0~100), present frame just has the basis for being set to key frame.Needs are determined whether:Present frame is to upper one
Whether the distance of key frame has exceeded minimum key frame distance, if it is can set present frame as key frame (that is, scene
Switching point).
In step S22 with step S21 determine scene switching point and/or GOP separations be divide sub-video section draw
Branch.Scene switching is there may be in the video-frequency band to be likely to switch in the absence of scene.Switch when there is scene in video-frequency band
When, every IDR frame is inserted at scene switching, and using this every IDR frame as the mark of scene switching point.Determined at least in step S21
One scene switching point and multiple GOP separations, at this moment with least one scene switching point of determination and/or many in step S22
Individual GOP separations divide video-frequency band.When switching in the absence of scene in video-frequency band, multiple GOP boundary are determined in step S21
Point, at this moment divides video-frequency band in step S22 with the multiple GOP separations for determining.
In certain embodiments, the mode of sub-video section is divided in step S22 can be:Each two in video-frequency band is adjacent
Scene switching point between video be divided into a sub- video-frequency band, or by the adjacent GOP separations of each two in video-frequency band
Between video be divided into a sub- video-frequency band, or by each group in video-frequency band adjacent scene switching point and GOP separations
Between video be divided into a sub- video-frequency band.
In certain embodiments, the mode that sub-video section is divided in step S22 can also be:Multiple will be included in video-frequency band
One section of video of scene switching point is divided into a sub- video-frequency band, or the video-frequency band comprising multiple GOP in video-frequency band is divided
It is a sub- video-frequency band, or the video-frequency band comprising multiple scene switching points and GOP separations in video-frequency band is divided into one
Sub-video section.The quantity of scene switching point and/or GOP separations in the present embodiment included in each cross-talk video-frequency band is by right
The duration of each cross-talk video-frequency band determines, this duration we be set as being segmented duration.For example, when according to a certain video quality
When carrying out Video coding, coding starts often to detect in timing, and cataloged procedure when starting and has been encoded to a scene switching
Whether point or GOP separations are judged as the duration of timing more than segmentation duration, continue a certain to be regarded according to described when no more than
Frequency quality is encoded, when judged result be more than when then switch to and carry out Video coding according to another video quality.So may be used
More reasonably to carry out hierarchical coding according to video quality to video-frequency band, more balanced and reasonable is realized between different video quality
Transition, the scene switching existed at random in video-frequency band is not relied on, also not dependent on adjustable length GOP.During by being segmented
Video-frequency band can be divided into multiple lengths sub-video section in a balanced way by setting long.
As shown in figure 3, in certain embodiments, it is described that multistage sub-video section is encoded to different video quality
Multistage transition video-frequency band include:
S31, determine multigroup video coding parameter collection, multigroup video coding parameter collection and multistage sub-video section one
One correspondence, and multigroup video coding parameter collection corresponds to different video qualities;
S32, successively according to multigroup video coding parameter set pair multistage sub-video section encoded, to be regarded
The multistage transition video-frequency band that frequency quality is reduced paragraph by paragraph.
The present embodiment is encoded by way of configuring one group of video coding parameter collection for each cross-talk video-frequency band and has obtained many
Section has the transition video-frequency band of different video quality.Video coding parameter can directly affect the time complexity of Video coding and same
Video quality correlation under the video quality of code check, the time complexity of Video coding and same code check, i.e. coding consumption
The time taken is more, and the video quality that can be obtained is better.The present embodiment is exactly the incipient stage in Video coding using different
Coding configuration, i.e., exchange under same code check preferably video quality for using the time complexity of lifting.The present embodiment is exactly based on
The mode for adjusting the coding parameter of video realizes the transition video that the coding in the case of same code check obtains different video quality
Section, i.e., achieve the transition video-frequency band of different video quality under same code check by lifting the time complexity of coding.
In certain embodiments, video coding parameter collection at least includes described in every group:Reference frame number refNum, Block granularity
PartGrain, largest motion vector mvMax and continuous B frame numbers bFrames.Can by the adjustment of multiple video coding parameters
To realize the adjustment for more refining to video quality, so that the transition between different video quality more relaxes.This
These coding parameter sets are referred to as EPS (Encoding Parameters Set) in embodiment, wherein:
The adjustable range 1~16 of refNum, and numerical value is bigger, it is better with video quality under code check.
PartGrain adjustable ranges include whether to use P8 × 4, B8 × 4, P4 × 8, B4 × 8, P4 × 4, B4 × 4 etc.,
It is better with video quality under code check and the piecemeal of use is thinner;Wherein, P represents P frame video images, and B represents B frame video images,
P8 × 4 represent and P frame video images are encoded according to the Block granularity of laterally 8 pixels longitudinal direction, 4 pixels that B8 × 4 are represented to B frames
Video image is encoded according to the Block granularity of laterally 8 pixels longitudinal direction, 4 pixels.
- 256~the 256 of the adjustable range of mvMax, and amplitude is bigger, it is better with video quality under code check.
The adjustable range of bFrames is 2~9, and numerical value is bigger, better with video quality under code check.
In certain embodiments, method for video coding of the invention also includes:
Entered using video-frequency band of the video to be encoded from after starting point scheduled duration described in default video coding parameter set pair
Row coding;Wherein, the default video coding parameter collection is concentrated for multigroup video coding parameter and can be used in obtaining minimum
The video parameter coded set of video quality.
In the embodiment of the present invention, coding strategy is changed over time by configuring various combination video coding parameter collection.
The embodiment of the present invention is intended to not influence the encoding scheme of overall use (to be applied to video to be encoded from broadcasting starting point scheduled duration
Video-frequency band after video-frequency band encoding scheme, i.e. video coding parameter collection), therefore encoded Developing Tactics in time
Afterwards, it should close or consistent with the overall encoding scheme for using.For the not video caused by the adjustment of front and rear video coding parameter
Quality significantly switches, and the invention is by the way of coding parameter transition switching, so that the switching of video image quality is also more delayed
With.For example:
In the first paragraph sub-video section for most starting, the parameter set of contracting dynamics is relatively suppressed by being found out from EPS, for example, making
The compression dynamics of sub-video section is than the pressure under original encoding parameter (that is, overall the encoding scheme for using corresponding coding parameter collection)
Contracting dynamics lifting 20%, so with code check, video quality has lifting;
And then in second segment sub-video section, suitably the EPS in first paragraph sub-video section is adjusted, i.e., compared with first paragraph
Appropriate in sub-video section to reduce compression dynamics, such as the compression dynamics in the chronomere is than the compression dynamics under original encoding parameter
Lifting 15%;
The like, until EPS is adjusted to consistent with the parameter of original coding scheme, stop adjustment.
The multigroup EPS obtained according to above-mentioned steps is encoded the multistage that can obtain transition mitigation to multistage from video-frequency band
Transition video-frequency band.
Here we are carried out as a example by the video-frequency band to be divided into three sub- video-frequency bands and five sub- video-frequency bands respectively
Illustrate:
Video-frequency band will be started when being divided into three cross-talk video-frequency bands, each parameter values of EPS are shown in Table 1 under different compression ratios:
Compression ratio | refNum | partGrain | mvMax | bFrames |
20% | 9 | P8×4、B8×4 | 256 | 9 |
10% | 6 | P4×8、B4×8 | 128 | 5 |
Original coding scheme | 4 | Whole two field picture | 72 | 3 |
Video-frequency band will be started when being divided into five cross-talk video-frequency bands, each parameter values of EPS are shown in Table 2 under different compression ratios:
Compression ratio | refNum | partGrain | mvMax | bFrames |
20% | 12 | P8×4、B8×4 | 256 | 12 |
15% | 9 | P4×4、B4×4 | 256 | 9 |
10% | 7 | P4×8、B4×8 | 128 | 7 |
5% | 5 | P4×4、B4×4 | 128 | 5 |
Original coding scheme | 4 | Whole two field picture | 72 | 3 |
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of
Action merge, but those skilled in the art should know, the present invention not by described by sequence of movement limited because
According to the present invention, some steps can sequentially or simultaneously be carried out using other.Secondly, those skilled in the art should also know
Know, embodiment described in this description belongs to preferred embodiment, involved action and module is not necessarily of the invention
It is necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion described in detail in certain embodiment
Point, may refer to the associated description of other embodiment.
A kind of video coding apparatus 400 of the embodiment of the application one offer are provided, including:
Sub-video section division module 410 is more for video to be encoded to be divided into from the video-frequency band of starting point scheduled duration
Individual sub- video-frequency band;
Dynamic video coding module 420, for the multiple sub-video section to be encoded to many of different video quality
Individual transition video-frequency band, the video quality of the multiple transition video-frequency band is reduced paragraph by paragraph according to played sequencing.
The video coding apparatus of the present embodiment are drawn by by video to be encoded from the video-frequency band for playing starting point scheduled duration
It is divided into multistage sub-video section;And multistage sub-video section is encoded to the multistage transition video-frequency band with different video quality
(video quality of the multistage transition video-frequency band is reduced paragraph by paragraph according to the sequencing that the multistage transition video-frequency band is played),
Solve in video display process in the prior art between different definition videos can not automatically transition switching technical problem,
While switching the image quality drastically saltus step of presence between avoiding different definition videos, the viewing experience of user is improved.
As shown in figure 5, in certain embodiments, the sub-video section division module 410 includes:
Scene switching point and/or GOP separations determining unit 411, determine scene switching point in the video-frequency band and
GOP;
Video segmentation unit 412, is waypoint by institute for the scene switching point and/or GOP separations to determine
State video-frequency band and be divided into multistage sub-video section.
As shown in fig. 6, in certain embodiments, the dynamic video coding module 420 includes:
Video coding parameter collection determining unit 421, for determining multigroup video coding parameter collection, multigroup Video coding
Parameter set is corresponded with the multiple sub-video section, and multigroup video coding parameter collection corresponds to different video matter
Amount;
Dynamic video coding unit 422, for being regarded according to multigroup the multiple son of video coding parameter set pair successively
Frequency range is encoded, to obtain multiple transition video-frequency bands that video quality is reduced paragraph by paragraph.
In certain embodiments, video coding parameter collection at least includes described in every group:Reference frame number, Block granularity, maximum
Motion vector and continuous B frame numbers.
In certain embodiments, video coding apparatus of the invention also include:
Video encoding module, for using video to be encoded described in default video coding parameter set pair from the pre- timing of starting point
Video-frequency band after length is encoded;Wherein, the default video coding parameter collection is multigroup video coding parameter concentration
Can be used in obtaining the video parameter coded set of lowest video quality.
The video coding apparatus of the embodiments of the present invention can be used to perform the method for video coding of the embodiment of the present invention, and
The technique effect that the method for video coding of the embodiments of the present invention is reached is reached accordingly, is repeated no more here.
Correlation function mould can be realized by hardware processor (hardware processor) in the embodiment of the present invention
Block.
On the other hand, the embodiment of the present invention provides a kind of non-volatile computer readable storage medium storing program for executing, the storage medium
In be stored with one or more including execute instruction programs, the execute instruction can be by electronic equipment (including but not limited to
Computer, server, or network equipment etc.) read and perform, for performing the correlation step in above method embodiment,
For example:
Video to be encoded is divided into multistage sub-video section from the video-frequency band for playing starting point scheduled duration;
Multistage sub-video section is encoded to the multistage transition video-frequency band with different video quality, the multistage transition
The video quality of video-frequency band is reduced paragraph by paragraph according to the sequencing that the multistage transition video-frequency band is played.
On the other hand, the embodiment of the present invention is also disclosed a kind of electronic equipment, and the electronic equipment includes:
At least one memory, for depositing computer-managed instruction;
At least one processor, the computer-managed instruction for performing the memory storage, to perform:
Video to be encoded is divided into multistage sub-video section from the video-frequency band for playing starting point scheduled duration;
Multistage sub-video section is encoded to the multistage transition video-frequency band with different video quality, the multistage transition
The video quality of video-frequency band is reduced paragraph by paragraph according to the sequencing that the multistage transition video-frequency band is played.
Fig. 7 is that the hardware configuration of the electronic equipment of the execution method for video coding that another embodiment of the application is provided is illustrated
Figure, as shown in fig. 7, the equipment includes:
One or more processors 710 and memory 720, in Fig. 7 by taking a processor 710 as an example.
The equipment for performing method for video coding can also include:Input unit 730 and output device 740.
Processor 710, memory 720, input unit 730 and output device 740 can be by bus or other modes
Connection, in Fig. 7 as a example by being connected by bus.
Memory 720 can be used to store non-volatile software journey as a kind of non-volatile computer readable storage medium storing program for executing
Sequence, non-volatile computer executable program and module, such as corresponding program of the method for video coding in the embodiment of the present application
Instruction/module.Processor 710 passes through to run the non-volatile software program stored in memory 720, instruction and module,
Various function application and data processing so as to execute server, that is, realize above method embodiment method for video coding.
Memory 720 can include storing program area and storage data field, wherein, storing program area can store operation system
Application program required for system, at least one function;Storage data field can be stored and created according to using for video coding apparatus
Data etc..Additionally, memory 720 can include high-speed random access memory, nonvolatile memory, example can also be included
Such as at least one disk memory, flush memory device or other non-volatile solid state memory parts.In certain embodiments, deposit
Reservoir 720 is optional including the memory remotely located relative to processor 710, and these remote memories can be by network connection
To video coding apparatus.The example of above-mentioned network includes but is not limited to internet, intranet, LAN, mobile radio communication
And combinations thereof.
Input unit 730 can receive the numeral or character information of input, and generation sets with the user of video coding apparatus
Put and the input of key signals that function control is relevant.Output device 740 may include the display devices such as display screen.
One or more of modules are stored in the memory 720, when by one or more of processors
During 710 execution, the method for video coding in above-mentioned any means embodiment is performed.
The method that the executable the embodiment of the present application of the said goods is provided, possesses the corresponding functional module of execution method and has
Beneficial effect.Not ins and outs of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present application is provided.
The electronic equipment of the embodiment of the present application exists in a variety of forms, including but not limited to:
(1) mobile communication equipment:The characteristics of this kind equipment is that possess mobile communication function, and to provide speech, data
It is main target to communicate.This Terminal Type includes:Smart mobile phone (such as iPhone), multimedia handset, feature mobile phone, and it is low
End mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the category of personal computer, there is calculating and treatment work(
Can, typically also possess mobile Internet access characteristic.This Terminal Type includes:PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device:This kind equipment can show and play content of multimedia.The kind equipment includes:Audio,
Video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigation equipment.
(4) server:The equipment for providing the service of calculating, the composition of server includes that processor, hard disk, internal memory, system are total
Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, therefore in treatment energy
The requirement of the aspects such as power, stability, reliability, security, scalability, manageability is higher.
(5) other have the electronic installation of data interaction function.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can
To be or may not be physically separate, the part shown as unit can be or may not be physics list
Unit, you can with positioned at a place, or can also be distributed on multiple NEs.It can according to the actual needs be selected
In some or all of module realize the purpose of this embodiment scheme.
Through the above description of the embodiments, those skilled in the art can be understood that each implementation method can
Realized by the mode of software plus general hardware platform, naturally it is also possible to by hardware.Based on such understanding, above-mentioned technology
The part that scheme substantially contributes to correlation technique in other words can be embodied in the form of software product, the computer
Software product can be stored in a computer-readable storage medium, and such as ROM/RAM, magnetic disc, CD, including some instructions are used to
So that computer equipment (can be personal computer, server, or network equipment etc.) perform each embodiment or
Method described in some parts of embodiment.
Finally it should be noted that:Above example is only used to illustrate the technical scheme of the application, rather than its limitations;Although
The application has been described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used
Modified with to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from each embodiment technical scheme of the application spirit and
Scope.
Claims (11)
1. a kind of method for video coding, including:
Video to be encoded is divided into multistage sub-video section from the video-frequency band for playing starting point scheduled duration;
Multistage sub-video section is encoded to the multistage transition video-frequency band with different video quality, the multistage transition video
The video quality of section is reduced paragraph by paragraph according to the sequencing that the multistage transition video-frequency band is played.
2. method according to claim 1, wherein, it is described by video to be encoded from the video for playing starting point scheduled duration
Section is divided into multistage sub-video section to be included:
Determine the scene switching point and GOP separations in the video-frequency band;
The video-frequency band is divided into by multistage sub-video as waypoint with the scene switching point and/or GOP separations that determine
Section.
3. method according to claim 1, wherein, it is described that multistage sub-video section is encoded to different video matter
The multistage transition video-frequency band of amount includes:
Determine multigroup video coding parameter collection, multigroup video coding parameter collection is corresponded with multistage sub-video section,
And corresponding to different video qualities;
Successively according to multigroup video coding parameter set pair multistage sub-video section encoded, with obtain video quality by
The multistage transition video-frequency band that section is reduced.
4. method according to claim 3, wherein, video coding parameter collection at least includes described in every group:Reference frame number, point
The continuous B frame numbers of block granularity, largest motion vector sum.
5. the method according to claim any one of 1-4, wherein, also include:
Compiled using video-frequency band of the video to be encoded from after starting point scheduled duration described in default video coding parameter set pair
Code;Wherein, the default video coding parameter collection is concentrated for multigroup video coding parameter and can be used in obtaining minimum video
The video parameter coded set of quality.
6. a kind of video coding apparatus, including:
Sub-video section division module, for video to be encoded to be divided into multiple sub-videos from the video-frequency band of starting point scheduled duration
Section;
Dynamic video coding module, regards for the multiple sub-video section to be encoded into the multiple transition with different video quality
Frequency range, the video quality of the multiple transition video-frequency band is reduced paragraph by paragraph according to played sequencing.
7. device according to claim 6, wherein, the sub-video section division module includes:
Scene switching point and/or GOP separation determining units, determine the scene switching point and GOP separations in the video-frequency band;
Video segmentation unit, is waypoint by the video-frequency band for the scene switching point and/or GOP separations to determine
It is divided into multistage sub-video section.
8. device according to claim 6, wherein, the dynamic video coding module includes:
Video coding parameter collection determining unit, for determining multigroup video coding parameter collection, multigroup video coding parameter collection
Corresponded with the multiple sub-video section, and corresponding to different video qualities;
Dynamic video coding unit, for being carried out according to multigroup the multiple sub-video section of video coding parameter set pair successively
Coding, to obtain multiple transition video-frequency bands that video quality is reduced paragraph by paragraph.
9. device according to claim 8, wherein, video coding parameter collection at least includes described in every group:Reference frame number, point
The continuous B frame numbers of block granularity, largest motion vector sum.
10. the device according to claim any one of 6-9, wherein, also include:
Video encoding module, for using video to be encoded described in default video coding parameter set pair from starting point scheduled duration it
Video-frequency band afterwards is encoded;Wherein, the default video coding parameter collection is that multigroup video coding parameter concentration can
Video parameter coded set for obtaining lowest video quality.
11. a kind of electronic equipment, including:
At least one processor,
And the memory being connected with least one processor communication, wherein, the memory storage have can by it is described extremely
A few instruction for computing device, the instruction is by least one computing device:
Video to be encoded is divided into multistage sub-video section from the video-frequency band for playing starting point scheduled duration;
Multistage sub-video section is encoded to the multistage transition video-frequency band with different video quality, the multistage transition video
The video quality of section is reduced paragraph by paragraph according to the sequencing that the multistage transition video-frequency band is played.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611104365.4A CN106791850A (en) | 2016-12-05 | 2016-12-05 | Method for video coding and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611104365.4A CN106791850A (en) | 2016-12-05 | 2016-12-05 | Method for video coding and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106791850A true CN106791850A (en) | 2017-05-31 |
Family
ID=58874117
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611104365.4A Pending CN106791850A (en) | 2016-12-05 | 2016-12-05 | Method for video coding and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106791850A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109672887A (en) * | 2019-03-06 | 2019-04-23 | 北京奇艺世纪科技有限公司 | A kind of method for video coding and device |
CN110582012A (en) * | 2018-06-11 | 2019-12-17 | 腾讯科技(深圳)有限公司 | Video switching method, video processing device and storage medium |
CN110636389A (en) * | 2019-09-19 | 2019-12-31 | 深圳市梦网百科信息技术有限公司 | Method and system for analyzing complexity of sheet source |
CN110691246A (en) * | 2019-10-31 | 2020-01-14 | 北京金山云网络技术有限公司 | Video coding method and device and electronic equipment |
CN110856034A (en) * | 2019-11-25 | 2020-02-28 | 西安奥卡云数据科技有限公司 | Video file caching method and system |
WO2023030402A1 (en) * | 2021-08-31 | 2023-03-09 | 北京字跳网络技术有限公司 | Video processing method, apparatus and system |
-
2016
- 2016-12-05 CN CN201611104365.4A patent/CN106791850A/en active Pending
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110582012A (en) * | 2018-06-11 | 2019-12-17 | 腾讯科技(深圳)有限公司 | Video switching method, video processing device and storage medium |
CN110582012B (en) * | 2018-06-11 | 2021-07-30 | 腾讯科技(深圳)有限公司 | Video switching method, video processing device and storage medium |
CN109672887A (en) * | 2019-03-06 | 2019-04-23 | 北京奇艺世纪科技有限公司 | A kind of method for video coding and device |
CN110636389A (en) * | 2019-09-19 | 2019-12-31 | 深圳市梦网百科信息技术有限公司 | Method and system for analyzing complexity of sheet source |
CN110636389B (en) * | 2019-09-19 | 2021-11-09 | 深圳市梦网视讯有限公司 | Method and system for analyzing complexity of sheet source |
CN110691246A (en) * | 2019-10-31 | 2020-01-14 | 北京金山云网络技术有限公司 | Video coding method and device and electronic equipment |
CN110691246B (en) * | 2019-10-31 | 2022-04-05 | 北京金山云网络技术有限公司 | Video coding method and device and electronic equipment |
CN110856034A (en) * | 2019-11-25 | 2020-02-28 | 西安奥卡云数据科技有限公司 | Video file caching method and system |
WO2023030402A1 (en) * | 2021-08-31 | 2023-03-09 | 北京字跳网络技术有限公司 | Video processing method, apparatus and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106791850A (en) | Method for video coding and device | |
US20220030244A1 (en) | Content adaptation for streaming | |
CN110072119B (en) | Content-aware video self-adaptive transmission method based on deep learning network | |
CN108322747B (en) | Coding unit division optimization method for ultra-high definition video | |
CN112102212B (en) | Video restoration method, device, equipment and storage medium | |
CN110620924B (en) | Method and device for processing coded data, computer equipment and storage medium | |
US9609338B2 (en) | Layered video encoding and decoding | |
CN109688407B (en) | Reference block selection method and device for coding unit, electronic equipment and storage medium | |
CN104754361A (en) | Image encoding and decoding method and device | |
CN106937121A (en) | Image decoding and coding method, decoding and code device, decoder and encoder | |
CN102625147A (en) | Self-adapting display method for mobile video equipment | |
CN114982227A (en) | Optimal format selection for video players based on predicted visual quality using machine learning | |
CN114554211A (en) | Content adaptive video coding method, device, equipment and storage medium | |
CN105635715A (en) | Video format identification method and device | |
WO2016054889A1 (en) | Image dynamic range adjustment method, terminal, and storage media | |
CN103530895A (en) | Method and device for detecting mosaic | |
CN112954350B (en) | Video post-processing optimization method and device based on frame classification | |
CN113132756B (en) | Video coding and transcoding method | |
CN107071449A (en) | A kind of trans-coding system and method | |
CN111464805B (en) | Three-dimensional panoramic video rapid coding method based on panoramic saliency | |
CN102833620B (en) | System and method for time optimized encoding | |
CN103596012A (en) | Interframe macro block type selecting method used in real-time AVS-based video frame rate transcoding | |
CN110300305A (en) | Video coding apparatus and method | |
CN115396683B (en) | Video optimization processing method and device, electronic equipment and computer readable medium | |
CN114554213B (en) | Motion adaptive and detail-focused compressed video quality enhancement method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170531 |
|
WD01 | Invention patent application deemed withdrawn after publication |