Skip to content

Instantly share code, notes, and snippets.

@spig
Created December 5, 2016 14:37
Show Gist options
  • Save spig/a8014e53ab5325fcc159059fdf05d05f to your computer and use it in GitHub Desktop.
Save spig/a8014e53ab5325fcc159059fdf05d05f to your computer and use it in GitHub Desktop.
for i in *.ts; do filename=$(basename $i); base=${filename%.*}; ffmpeg -i $filename -c:v libx264 -c:a libfaac -vf scale=-1:720 -q:a 100 -ac 2 $base.mp4; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment