CN103546755A - Constant-bitrate self-adaptive resolution transcoding method - Google Patents

Constant-bitrate self-adaptive resolution transcoding method Download PDF

Info

Publication number
CN103546755A
CN103546755A CN201310370473.6A CN201310370473A CN103546755A CN 103546755 A CN103546755 A CN 103546755A CN 201310370473 A CN201310370473 A CN 201310370473A CN 103546755 A CN103546755 A CN 103546755A
Authority
CN
China
Prior art keywords
resolution
video
transcoding
experience
bit rate
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.)
Granted
Application number
CN201310370473.6A
Other languages
Chinese (zh)
Other versions
CN103546755B (en
Inventor
焦华龙
高飞
张军
姚键
潘柏宇
卢述奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Youku Network Technology Beijing Co Ltd
Original Assignee
1Verge Internet Technology Beijing Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 1Verge Internet Technology Beijing Co Ltd filed Critical 1Verge Internet Technology Beijing Co Ltd
Priority to CN201310370473.6A priority Critical patent/CN103546755B/en
Publication of CN103546755A publication Critical patent/CN103546755A/en
Application granted granted Critical
Publication of CN103546755B publication Critical patent/CN103546755B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a constant-bitrate self-adaptive resolution transcoding method and relates to the field of audio and video multimedia. The method includes: setting parameters of transcoding video; encoding according to the set parameters, and acquiring a peak signal to noise ratio P1; reducing a video source to empirical resolution to obtain video 1, and reducing the video source to comparative resolution to obtain video 2; stretching the video 1 to the same resolution as the video 2 to obtain video 3, and calculating a peak signal to noise ratio P1 between the video 3 and the video 2; calculating a regulating range DR; if DR>1, regulating target resolution of the video to be DR times of the empirical resolution according to an equal ratio, and if a value of the target resolution exceeds native resolution of the video, regulating the target resolution to the native resolution; otherwise, keeping the target resolution in the empirical resolution. The method has the advantage that video definition is improved with bandwidth flow not increased.

Description

The adaptive resolution code-transferring method of cbr (constant bit rate)
Technical field
The present invention relates to MultiMedia Field, particularly audio/video multimedia field.
Background technology
In current video code conversion, set cbr (constant bit rate) to control bandwidth and flow, after code check is fixing, the resolution of corresponding transcoding video has also been fixed simultaneously, and this is current more general way.
But this way exists a problem to be exactly: different video content is in same code check coding situation, and the fixed resolution of setting may not be the resolution of the optimum definition of this video under this code check.
Such as some picture variation is less or picture lines are simply educated speech and cartoon class video, very low code check (such as for 250Kbps/H.264) also can show very high resolution content (such as 1920x1080), if what these videos were not also added identification is encoded into general fixed video resolution (such as being all 512x288) under low code check, the experience that brings so user certainly will be than (in the enough situations of subscriber set ability) far short of what is expected of high resolution and frame per second.
Prior art is to the fixed resolution that obtains and the irrelevant distribution of the content of video own after constant bit rate, has ignored the impact of video content on encoding efficiency itself.Technology of the present invention is relatively selected optimum transcoding resolution without the effect of coding convergent-divergent having introduced video code conversion effect and video, different video contents can obtain different code distinguishabilities, to improve definition, and the code check of transcoding is constant, does not need to increase extra bandwidth cost.
Summary of the invention
For the defect existing in prior art, the present invention analyzes the best transcoding resolution of transcoding video under certain cbr (constant bit rate) by the error that relatively Y-PSNR of transcoding video and the scaling video of this video are introduced, and this resolution information is applied to transcoding.
According to the solution of the present invention, the video that needs transcoding for each, analyzes the best transcoding resolution in the situation that of fixing transcoding code check and transcoding instrument and compression parameters.
Specific implementation step is as follows:
1. set the target bit rate of transcoding video, experience resolution, concrete transcoding instrument and transcoding parameter;
2. set the analytical sampling time of resolution adjustment scope and video, resolution adjustment intensity lamda; Also can above-mentioned parameter not set, the default value of resolution adjustment scope is arbitrary value, and the default value of analytical sampling time is whole video, and the default value of resolution adjustment intensity lamda is 1;
3. according to transcoding instrument and the parameter set, sample time and experience resolution, encode, and obtains its Y-PSNR P1 simultaneously;
4. according to the sample time, video source is narrowed down to experience resolution and obtain video 1, video source is narrowed down to comparison resolution and obtain video 2, the wide geometric ratio of height that described relatively resolution is experience resolution is amplified 0.25 times;
5. video 1 is stretched to the resolution identical with video 2 and obtains video 3, calculate the Y-PSNR P2 of 3 pairs of videos 2 of video;
6. calculate adjustable range DR=lamda * 2^ (0.25 * (P1-P2));
7. if, DR>1, the target resolution that geometric ratio regulates video to the DR of experience resolution doubly, if this value surpasses the original resolution of video, is adjusted to original resolution; Otherwise target resolution keeps experience resolution.
Beneficial effect: technical solution of the present invention, in the situation that not increasing bandwidth traffic, promotes the definition of quite a few video.
Embodiment
Below the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
Embodiment mono-
Picture changes definite method of the optimum transcoding resolution of less educational training class video.
Main performing step following (video source resolution is 1920 * 1080):
The 1.1 transcoding code checks of setting SD version (smooth version) are 250Kbps, (transcoding fixing with resolution is identical, and every pair of video flowing carries out single pass, is called a pass with corresponding transcoding parameter for transcoding instrument X264, if there are a plurality of pass, have corresponding many group parameters);
1.2 setting resolution adjustment scopes are 512x288~1280x720, and the analytical sampling time is whole video, resolution adjustment intensity lamda=1;
1.3 according to the parameter of 1pass coding (if only coding once, with regard to the parameter with this time) this video of transcoding when coding is made as 512x288, exports the Y-PSNR P1=50.3 when 512x288 resolution encoding simultaneously;
1.4 by video source without compression narrow down to 512x288, obtain video V1; The 640x360 that narrows down to by video source without compression, obtains video V2; V1 resolution is stretched to 640x360, obtains video V3; Calculate V3 simultaneously the signal to noise ratio P2=41.5(of V2 is realized by add corresponding function in Open-Source Tools ffmpeg, convergent-divergent algorithm is used the most frequently used bicubic interpolation algorithm);
1.5 calculating DR=2^ (0.25 * (50.3-41.5))=4.59>1, so will amplify resolution;
1.6 calculate target resolution, and wide is 512x4.59=2350, and height is 288 * 4.59=1322; Due to 2350 * 1322>1280 * 720, so target resolution is 1280 * 720, just with this resolution, carry out transcoding afterwards.
Embodiment bis-
Picture changes definite method (video source resolution is 1280 * 720) of the optimum transcoding resolution of more sports cast:
The 1.1 transcoding code checks of setting SD version (smooth version) are 250Kbps, transcoding instrument X264 and corresponding transcoding parameter (transcoding fixing with resolution is identical, if a plurality of pass has corresponding many group parameters);
1.2 setting resolution adjustment scopes are 512x288~1280x720, and the analytical sampling time is whole video, resolution adjustment intensity lamda=1;
1.3 according to the parameter of 1pass coding (if only coding once, with regard to the parameter with this time) this video of transcoding when coding is made as 512x288, exports the Y-PSNR P1=31.5 when 512x288 resolution encoding simultaneously;
1.4 by video source without compression narrow down to 512x288, obtain video V1; The 640x360 that narrows down to by video source without compression, obtains video V2; V1 resolution is stretched to 640x360, obtains video V3; Calculate V3 realizes by add corresponding function in Open-Source Tools ffmpeg the signal to noise ratio P2=40.2(of V2 simultaneously);
1.5 calculating DR=2^ (0.25 * (31.5-40.2))=0.22<1, so do not need to amplify resolution;
1.6 keep the resolution of 512x288 to carry out transcoding.
The above; be only the present invention's embodiment preferably, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in technical scope disclosed by the invention; the variation that can expect easily or replacement, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (5)

1. an adaptive resolution code-transferring method for cbr (constant bit rate), is characterized in that, comprises the steps:
(1) set the target bit rate of transcoding video, experience resolution, concrete transcoding instrument and transcoding parameter;
(2) set the analytical sampling time of resolution adjustment scope and video, resolution adjustment intensity lamda;
(3) according to transcoding instrument and the parameter of described setting, sample time and experience resolution, encode, and obtains its Y-PSNR P1 simultaneously;
(4) according to the described sample time, video source is narrowed down to experience resolution and obtain video 1, video source is narrowed down to comparison resolution and obtain video 2;
(5) described video 1 is stretched to the identical resolution of described video 2 and obtains video 3, calculate the Y-PSNR P2 of 3 pairs of described videos 2 of described video;
(6) calculate adjustable range (DR), according to the value of described DR, regulate resolution.
2. the adaptive resolution code-transferring method of cbr (constant bit rate) according to claim 1, it is characterized in that, in described step (2), each parameter has default value, the default value of resolution adjustment scope is arbitrary value, the default value of analytical sampling time is whole video, and the default value of resolution adjustment intensity lamda is 1.
3. according to the adaptive resolution code-transferring method of the cbr (constant bit rate) described in claim 1-2, it is characterized in that, the comparison resolution in described step (4) is that the wide geometric ratio of the height of experience resolution is amplified 0.25 times.
4. according to the adaptive resolution code-transferring method of the cbr (constant bit rate) one of claim 1-2 Suo Shu, it is characterized in that, described in described step (6), the computational methods of DR are: DR=lamda * 2^ (0.25 * (P1-P2)).
5. according to the adaptive resolution code-transferring method of the cbr (constant bit rate) one of claim 1-2 Suo Shu, it is characterized in that, in described step (6), calculate adjustable range (DR), according to the value of described DR, regulate resolution, concrete grammar is: if DR>1, the target resolution of geometric ratio adjusting video, to DR times of experience resolution, if this value surpasses the original resolution of video, is adjusted to original resolution; Otherwise target resolution keeps experience resolution.
CN201310370473.6A 2013-08-22 2013-08-22 Constant-bitrate self-adaptive resolution transcoding method Active CN103546755B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310370473.6A CN103546755B (en) 2013-08-22 2013-08-22 Constant-bitrate self-adaptive resolution transcoding method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310370473.6A CN103546755B (en) 2013-08-22 2013-08-22 Constant-bitrate self-adaptive resolution transcoding method

Publications (2)

Publication Number Publication Date
CN103546755A true CN103546755A (en) 2014-01-29
CN103546755B CN103546755B (en) 2015-05-20

Family

ID=49969749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310370473.6A Active CN103546755B (en) 2013-08-22 2013-08-22 Constant-bitrate self-adaptive resolution transcoding method

Country Status (1)

Country Link
CN (1) CN103546755B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008095825A1 (en) * 2007-02-05 2008-08-14 Thomson Licensing Video transcoding with reduced drift
CN102737390A (en) * 2007-11-02 2012-10-17 高等技术学校 Method and system for generating a quality prediction table for quality-aware transcoding of digital images
CN103051926A (en) * 2011-09-30 2013-04-17 美国博通公司 Streaming transcoder with adaptive upstream and downstream transcode coordination

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008095825A1 (en) * 2007-02-05 2008-08-14 Thomson Licensing Video transcoding with reduced drift
CN102737390A (en) * 2007-11-02 2012-10-17 高等技术学校 Method and system for generating a quality prediction table for quality-aware transcoding of digital images
CN103051926A (en) * 2011-09-30 2013-04-17 美国博通公司 Streaming transcoder with adaptive upstream and downstream transcode coordination

Also Published As

Publication number Publication date
CN103546755B (en) 2015-05-20

Similar Documents

Publication Publication Date Title
JP2019501554A5 (en)
CN104469367B (en) The video code rate control method adjusted based on frame losing and quantization parameter
US20190014331A1 (en) Picture decoding and encoding methods and apparatuses, decoder, and encoder
MX2021010608A (en) Encoding and decoding method and device, encoder side apparatus and decoder side apparatus.
US20150172680A1 (en) Producing an Output Need Parameter for an Encoder
CN102724510B (en) Code rate control algorithm based on fullness degree of virtual encoding buffer area
CN101917612A (en) Streaming media video coding method and device
KR102611940B1 (en) Content adaptive quantization strength and bit rate modeling
US20070280294A1 (en) Constrained Fidelity Constant Bit Rate Video Encoding Systems and Methods
JP2019512970A5 (en)
CN105141985A (en) System and method for smoothly playing film and television stream
JP2013501246A (en) Transcoding method, apparatus, apparatus, and system
JP6987856B2 (en) Parametric audio decoding
MX2022006338A (en) Signaling multiple transform selection.
WO2020244328A1 (en) Image processing method and apparatus
CN102724502B (en) The control method of code check and device in a kind of Video coding
TW200518478A (en) Video transcoder adaptively reducing frame rate
WO2015071613A3 (en) Transition from a transform coding/decoding to a predictive coding/decoding
CN103491381B (en) Video coding key frame position method is optimized in a kind of Dynamic Programming
JP2016005043A (en) Information processing device and program
CN103546755B (en) Constant-bitrate self-adaptive resolution transcoding method
JP6357542B2 (en) Method and apparatus for multipath adaptive quantization
MX2022001306A (en) An encoder, a decoder and corresponding methods of chroma intra mode derivation.
CN103646647B (en) In mixed audio demoder, the spectrum parameter of frame error concealment replaces method and system
CN105959731B (en) A kind of statistical-multiplexing encoding method of DTV

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C

Patentee after: Youku network technology (Beijing) Co.,Ltd.

Address before: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C

Patentee before: 1VERGE INTERNET TECHNOLOGY (BEIJING) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200318

Address after: 310009 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C

Patentee before: Youku network technology (Beijing) Co.,Ltd.