[FFmpeg-trac] #9718(avcodec:new): vp8 VBR encoding targets to fixed 256kbit/s rate

FFmpeg trac at avcodec.org
Wed Nov 9 23:21:41 EET 2022


#9718: vp8 VBR encoding targets to fixed 256kbit/s rate
-------------------------------------+-------------------------------------
             Reporter:  Bastiaan     |                    Owner:  (none)
  Welmers                            |
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:  avcodec
              Version:  git-master   |               Resolution:
             Keywords:  libvpx       |               Blocked By:
  regression                         |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Description changed by Carl Eugen Hoyos:

Old description:

> Since version 5.0 the vp8 encoding when only setting -crf and setting
> -b:v 0 is suddenly targeted to 256kbit/s. This wasn't the case in
> previously installed version 4.1. Needless to say, 256kbit/s results in
> very poor quality videos.
> I assume this to be a bug, because Variable Bit Rate encodings for
> libvpx-vp8 never needed any targeting bitrate, only a CRF value, the
> bitrate was always advised to set to 0 and it works fine like that. I
> also cannot find a way to unset the 256kbit/s target for VBR mode,
> removing the `-b:v 0' option does not help.
>
> How to reproduce:
> {{{
> % ffmpeg -i $in -acodec libvorbis -ac 2 -b:a 96k -vcodec libvpx -b:v 0
> -crf 33 -threads 0 -s 854x480 $base.480p-vp8.webm
> ffmpeg version 5.0.1 and git-20220302
> }}}
>
> In the output, the following message appears, not apearing in 4.1 where
> the bug is not present:
> {{{
> [libvpx @ 0x6b6b780] Bitrate not specified for constrained quality mode,
> using default of 256kbit/sec
> }}}
> Perhaps this bug is introduced here:
> https://github.com/FFmpeg/FFmpeg/commit/14941d386acd90b92aaaf75fbdac2c07d33f167a

New description:

 Since version 5.0 the vp8 encoding when only setting -crf and setting -b:v
 0 is suddenly targeted to 256kbit/s. This wasn't the case in previously
 installed version 4.1. Needless to say, 256kbit/s results in very poor
 quality videos.
 I assume this to be a bug, because Variable Bit Rate encodings for libvpx-
 vp8 never needed any targeting bitrate, only a CRF value, the bitrate was
 always advised to set to 0 and it works fine like that. I also cannot find
 a way to unset the 256kbit/s target for VBR mode, removing the `-b:v 0'
 option does not help.

 How to reproduce:
 {{{
 % ffmpeg -i $in -acodec libvorbis -ac 2 -b:a 96k -vcodec libvpx -b:v 0
 -crf 33 -threads 0 -s 854x480 $base.480p-vp8.webm
 ffmpeg version 5.0.1 and git-20220302
 }}}

 In the output, the following message appears, not apearing in 4.1 where
 the bug is not present:
 {{{
 [libvpx @ 0x6b6b780] Bitrate not specified for constrained quality mode,
 using default of 256kbit/sec
 }}}
 Perhaps this bug is introduced here:
 14941d386acd90b92aaaf75fbdac2c07d33f167a

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9718#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list