Skip to content

Instantly share code, notes, and snippets.

@smokku
Created July 4, 2016 07:00
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 smokku/2260d6155806cb20aed65bc48143fe2a to your computer and use it in GitHub Desktop.
Save smokku/2260d6155806cb20aed65bc48143fe2a to your computer and use it in GitHub Desktop.
for i in *.mkv; do nice ffmpeg -i "$i" -c:v libx264 -preset slow -crf 20 -tune animation -profile:v high -level 4.0 -vf scale=-1:540 -c:a aac -strict -2 -ac 2 -c:s mov_text -map_metadata 0 -y "${i/.mkv/.mp4}" </dev/null; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment