GNOME Bugzilla – Bug 684815
vp8enc: altref frames are not generated on two pass mode
Last modified: 2012-09-26 07:52:08 UTC
I use this script to transcode video. Normally vpx produce lots of altref packets, but not with current gstreamer-1.0 in_file=""$1"" gst-launch-1.0 filesrc location="$in_file" ! decodebin ! vp8enc threads=3 multipass-mode=1 target-bitrate=800000 multipass-cache-file=multipass.cache token-partitions=1 ! fakesink gst-launch-1.0 filesrc location="$in_file" ! decodebin name=d webmmux name=m ! filesink location="$in_file.webm" d. ! queue ! vp8enc threads=3 multipass-mode=2 target-bitrate=800000 multipass-cache-file=multipass.cache end-usage=vbr auto-alt-ref=1 keyframe-max-dist=360 min-quantizer=0 max-quantizer=60 token-partitions=1 ! m. d. ! queue ! audiorate tolerance=50000000 ! audioconvert ! audioresample ! audio/x-raw,rate=44100,channels=2 ! vorbisenc ! m.
I can confirm that. Note however that you should a) use the exact same properties for the first pass and b) the number of threads that can be used depends on the number of token-partitions.
Oh actually no, there's no bug. The problem is that you need to set lag-to-frames to something else than 0.