Skip to content

Instantly share code, notes, and snippets.

@yas375
Last active January 21, 2016 22:52
Show Gist options
  • Save yas375/a4a7aefa2e60c003e3fa to your computer and use it in GitHub Desktop.
Save yas375/a4a7aefa2e60c003e3fa to your computer and use it in GitHub Desktop.
Process `ffmpeg` on all mp4 files in current directory.
#!/bin/sh
mkdir -p processed
for file in *.mp4
do
ffmpeg -i $file -vcodec libx264 -crf 10 -x264opts colorprim=bt709:transfer=bt709:colormatrix=bt709:fullrange=off processed/$file
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment