Hi,
On Fri, Oct 10, 2014 at 4:19 PM, 'Sagara Wijetunga' via WebM
Discussion <
webm-d...@webmproject.org> wrote:
> Hi all
>
> I use the latest libvpx-git and the ffmpeg to encode HD video to vp9.
>
>
> I want to identify sane vp9 encoding parameters to be tweaked without increasing the video bitrate (-b:v) to get higher SSIM values.
>
> The deadline=best increases SSIM without increasing video bitrate, but its way too slow.
>
>
>
> I use following preset file values:
>
> cat libvpx-vp9-CQ-good-720p.ffpreset
> vcodec=libvpx-vp9
>
> g=120
> lag-in-frames=16
> deadline=good
> cpu-used=0
You can probably set this to 1 to speed things up a little.
> vprofile=0
> qmax=48
> qmin=0
> crf=8
You can disable crf to compare the behavior with vbr.
> slices=4
> b=2M
> tile-columns=2
> tile-rows=2
Leave this at 1, there's no benefit in encoding multiple rows.
> frame-parallel=1
>
>
> #ignored unless using -pass 2
> maxrate=24M
> minrate=100k
> auto-alt-ref=1
> arnr-maxframes=7
> arnr-strength=5
> arnr-type=centered
>
> 1. Is the above "slices" used for vp9 encode?
>
No this is for vp8, some terse mapping information is available [1].
> 2. what is "b=2M"? Is it used for vp9 encode?
>
b = bitrate, yes it's used by vp8/vp9.
> 3. Are the above values used sane? Can it be improved to achieve higher quality without much increasing video bitrate?
>
Are you using 2-pass?
> 4. Are there any other useful parameters to be added to the preset file?
>
Noted some above. Other changes will depend on your usage, if you
aren't planning on streaming the video you could enlarge the keyframe
frequency (-g), above it's 120 = 5s @ 24fps.
> Appreciate your comments in this.
>
[1]
http://ffmpeg.org/ffmpeg-codecs.html#libvpx