Skip to content

Instantly share code, notes, and snippets.

@spig
Last active December 5, 2016 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spig/77cd85c28a729c6ef45964fae596a876 to your computer and use it in GitHub Desktop.
Save spig/77cd85c28a729c6ef45964fae596a876 to your computer and use it in GitHub Desktop.
for i in *.ts; do filename=$(basename $i); base=${filename%.*}; ffmpeg -i $filename -ss 00:03:00.000 -t 00:00:30.000 -c:v libvpx -b:v 1M -c:a libvorbis $base.webm; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment