This is an old revision of the document!
dvd_mkv
I'd like to be able to duplicate what HandBrake does using libav directly.
Here's what I've got so far, to duplicate my setup:
- x264 slow preset, high profile, level 4.1, CRF 14
- 60 fps
dvd_copy dvd.iso -c 1-1 -o - | avconv -y -i - -vcodec libx264 -acodec libfdk_aac -tune animation -ab 160k -r 60 -vsync cfr -crf 14 -x264-params ref=10:subme=8:trellis=2:keyint=240:rc-lookahead=50:direct=auto -bufsize 78125k -maxrate 62500k -t 1 -color_primaries smpte170m -color_trc smpte170m -colorspace smpte170m dvd_encode.mkv
Note that Handbrake will set the colorspace to BT.709 if it doesn't recognize what it is (source: I lost it, but I remember it being verified by a second one).
See here for the same scenario I was running into – comparing mediainfo output from a HandBrake encode to a direct ffmpeg one.