Re: VP9 encoder in FFMpeg doesn't respect Constant Bitrate settings

154 views
Skip to first unread message

Devesh Mittal

unread,
Feb 24, 2021, 4:24:41 PM2/24/21
to Akshay Mittal, ji...@google.com, jz...@google.com, mar...@google.com, chen...@google.com, elli...@google.com, angi...@google.com, webm-d...@webmproject.org, bl...@chromium.org, mflo...@chromium.org
Hello Google team, 

Possible to help us out with our query? 


Thanks, 
Devesh

On Wed, Feb 24, 2021 at 7:49 PM Akshay Mittal <aks...@zaanu.com> wrote:
Hello WebM team,

I am trying to encode a live stream into VP9 with constant bitrate using FFMpeg.

I am using the instructions given here:

In particular I am using the following command (using VOD instead of Live Stream as a test):

ffmpeg -i screen-112s.mp4 -c:v vp9  -b:v 500k -minrate 500k -maxrate 500k -quality realtime -speed 8 -c:a libvorbis screen-112s-ffmpeg-cbr-500k.webm

I am expecting an output video bitrate of ~500kbps but the actual output is ~1800kbps.

I have tried many options on that page, but I am still not able to get the constant bitrate function to work.

I am using ffmpeg version 4.1.6-1~deb10u1
and libvpx-vp9 version 1.7.0

Please find the input file attached. Please let me know how to properly use CBR encoding with VP9 or point me to the correct resource.

Thank you
Akshay

Akshay Mittal

unread,
Feb 24, 2021, 4:24:44 PM2/24/21
to webm-d...@webmproject.org, bl...@chromium.org, mflo...@chromium.org, Devesh Mittal

Kernel Kangaroo

unread,
Mar 6, 2021, 7:21:49 PM3/6/21
to WebM Discussion, Akshay Mittal, bl...@chromium.org, mflo...@chromium.org, Devesh Mittal
Did you get any feedback on this? I too am at a loss to understand how CBR works with VP9. I have been playing with gstreamer and ffmpeg. Gstreamer at least maps options against libvpx arguments. FFMpeg hides this through its own options.

James Zern

unread,
Mar 11, 2021, 10:29:27 PM3/11/21
to WebM Discussion, Akshay Mittal, bl...@chromium.org, mflo...@chromium.org, Devesh Mittal
On Sat, Mar 6, 2021 at 4:21 PM Kernel Kangaroo <kernelk...@gmail.com> wrote:
Did you get any feedback on this? I too am at a loss to understand how CBR works with VP9. I have been playing with gstreamer and ffmpeg. Gstreamer at least maps options against libvpx arguments. FFMpeg hides this through its own options.

For reference, the ffmpeg option mapping is documented here:
 

On Wednesday, February 24, 2021 at 1:24:44 PM UTC-8 Akshay Mittal wrote:
Hello WebM team,

I am trying to encode a live stream into VP9 with constant bitrate using FFMpeg.

I am using the instructions given here:

In particular I am using the following command (using VOD instead of Live Stream as a test):

ffmpeg -i screen-112s.mp4 -c:v vp9  -b:v 500k -minrate 500k -maxrate 500k -quality realtime -speed 8 -c:a libvorbis screen-112s-ffmpeg-cbr-500k.webm

I am expecting an output video bitrate of ~500kbps but the actual output is ~1800kbps.

I have tried many options on that page, but I am still not able to get the constant bitrate function to work.

I am using ffmpeg version 4.1.6-1~deb10u1
and libvpx-vp9 version 1.7.0

Please find the input file attached. Please let me know how to properly use CBR encoding with VP9 or point me to the correct resource.

Thank you
Akshay

--
You received this message because you are subscribed to the Google Groups "WebM Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webm-discuss...@webmproject.org.
To view this discussion on the web visit https://groups.google.com/a/webmproject.org/d/msgid/webm-discuss/4757f0fe-5ede-42eb-90db-f65f8fe57cb9n%40webmproject.org.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages