[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Debconf-video] Re-encoding dc17

On Thu, Aug 24, 2017 at 09:55:35AM +0200, Richard Hartmann wrote:
> Can you dump your encoder settings in here?

Not sure from that question whether you're just interested in copying
them for your own projects, or helping out.

For the former: I based the updated settings on the FFmpeg official
documentation, and I recommend you do so too:

https://trac.ffmpeg.org/wiki/Encode/VP8 and
https://trac.ffmpeg.org/wiki/Encode/VP9; there is also
https://developers.google.com/media/vp9/ which the ffmpeg VP9 page
links to, and for which I would love it if there would also be a VP8
equivalent ;-)

For the latter, here's the relevant snippet from the transcode script:

# VP8
system("ffmpeg -y -i $outputdir/$slug.ts -pass 1 -passlogfile $tmpdir/passlog-vp8 -c:v libvpx -crf 10 -qmin 0 -qmax 20 -b:v 1M -c:a libvorbis $outputdir/$slug.vp8.webm");
system("ffmpeg -y -i $outputdir/$slug.ts -pass 2 -passlogfile $tmpdir/passlog-vp8 -c:v libvpx -crf 10 -qmin 0 -qmax 20 -b:v 1M -c:a libvorbis -metadata \"title=$title\" -metadata \"event=$event\" -metadata \"language=eng\" -metadata \"speakers=$speakers\" -metadata \"track=$track\" -metadata \"date=$startdate\" $outputdir/$slug.vp8.webm");
# VP9
system("ffmpeg -y -i $outputdir/$slug.ts -pass 1 -passlogfile $tmpdir/passlog-vp9 -c:v libvpx-vp9 -crf 32 -b:v 1024k -minrate 512k -maxrate 1485k -c:a libopus -quality good -speed 4 -g 240 -tile-columns 2 -threads 4 $outputdir/$slug.vp9.webm");
system("ffmpeg -y -i $outputdir/$slug.ts -pass 2 -passlogfile $tmpdir/passlog-vp9 -c:v libvpx-vp9 -crf 32 -b:v 1024k -minrate 512k -maxrate 1485k -c:a libopus -quality good -speed 2 -g 240 -tile-columns 2 -threads 4 -metadata \"title=$title\" -metadata \"event=$event\" -metadata \"language=eng\" -metadata \"speakers=$speakers\" -metadata \"track=$track\" -metadata \"date=$startdate\" $outputdir/$slug.vp9.webm");

(I'm probably going to drop the -threads and -tile-columns options in
the final version, but I doubt that's relevant for the issues I'm

Could you people please use IRC like normal people?!?

  -- Amaya Rodrigo Sastre, trying to quiet down the buzz in the DebConf 2008

Reply to: