Skip to content

Instantly share code, notes, and snippets.

@julbrs
Created August 30, 2018 17:23
Show Gist options
  • Save julbrs/661d49376fddaff0b1ba0b9f28afd330 to your computer and use it in GitHub Desktop.
Save julbrs/661d49376fddaff0b1ba0b9f28afd330 to your computer and use it in GitHub Desktop.
Convert vob to ogv/mp4/webm for video balise
Here is the code with ffmpeg:
ffmpeg -i ete2012.vob -vcodec libtheora -b 400k -s 640x480 -acodec libvorbis -ab 64k ete2012.ogv
ffmpeg -i ete2012.vob -b 500k -s 640x480 -ab 64k -vcodec libx264 -acodec aac -strict experimental ete2012.mp4
ffmpeg -i ete2012.vob -b 500k -s 640x480 -ab 64k -vcodec libvpx -acodec libvorbis ete2012.webm
for f in *.AVI; do echo "Converting $f"; g=`basename $f .AVI`; ffmpeg -i $f -y -b 500k -ab 64k -vcodec libx264 -acodec aac -ar 44100 -strict experimental $g.mp4 || echo FAILED; ffmpeg -i $f -y -b 500k -ab 64k -vcodec libvpx -acodec libvorbis -ar 44100 $g.webm; done
for f in *.mp4; do echo "FAST START MP4 $f"; g=`basename $f .mp4`; mv $f $g-old.mp4; qt-faststart $g-old.mp4 $f; rm $g-old.mp4; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment