Recommended options for best quality in real-time mode (VP9)

186 views
Skip to first unread message

djco...@gmail.com

unread,
Aug 27, 2014, 3:40:41 PM8/27/14
to codec...@webmproject.org
Hello,

I've been tinkering with different values for --cpu-used in real-time mode to reach a particular encoding speed --
now I'm trying to figure out what combination of options would generate the best possible quality video.

In specific, I'm working with a YUV file, encoding it to 2000 kb/s CBR with --cpu-used=6. Here is what
my command line looks like, presently:

vpxenc --codec=vp9 --width=${width} --height=${height} --fps=${fps} --end-usage=cbr
       --target-bitrate=2000 --rt --cpu-used=6 -o ${output}.webm ${input}.yuv


I know that many of the options are situational and real-time mode encoding speed/quality is dependent upon the 
specifications of the machine being used, but in general, what settings would you recommend to increase 
quality (for example, in terms of PSNR) given these constraints? I tried --undershoot-pct=1 on a whim and 
while PSNR did increase, the resulting bitrate was much higher than 2000 kb/s. Anyway, any suggestions
would be greatly appreciated.

Thanks,

Dennis

Yunqing Wang

unread,
Aug 27, 2014, 7:03:23 PM8/27/14
to codec...@webmproject.org
Hi Dennis,

For 1-pass real-time encoding, you can limit the quantizer to improve the quality, such as: --min-q=2 --max-q=56, and also try the AQ mode: --aq-mode=3

Yunqing



--
You received this message because you are subscribed to the Google Groups "Codec Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codec-devel...@webmproject.org.
To post to this group, send email to codec...@webmproject.org.
Visit this group at http://groups.google.com/a/webmproject.org/group/codec-devel/.
For more options, visit https://groups.google.com/a/webmproject.org/d/optout.

djco...@gmail.com

unread,
Aug 29, 2014, 2:22:36 PM8/29/14
to codec...@webmproject.org
Hi Yunqing,

The settings you recommended did improve quality for the most part. I noticed, however, that with certain videos ("busy" ones, with a lot of action), the output bitrate was much higher than the specified target (i.e. for a target bitrate of 500 kb/s, the output was 2577 kb/s). Why does this happen?

Thanks,

Dennis 

Yunqing Wang

unread,
Aug 29, 2014, 4:11:40 PM8/29/14
to codec...@webmproject.org
If you need to limit the bitrate undershooting/overshooting, use these options:  --undershoot-pct=50 --overshoot-pct=50. Adjust the values to achieve your goal. There is always a trade-off between quality and bitrate.

Yunqing

Reply all
Reply to author
Forward
0 new messages