Skip to content

Instantly share code, notes, and snippets.

@queglay
Last active July 28, 2019 05:04
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 queglay/9ddfbf4652ca324561e4c7780d8cc0a3 to your computer and use it in GitHub Desktop.
Save queglay/9ddfbf4652ca324561e4c7780d8cc0a3 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Convert a bunch of mov / mp4 files in the current dir to prores format for editting in an NLE (FCP X, Davinci Resolve etc).
# not great for large numbers of files that will max out cores.
# Consider this post for thread limiting https://gist.github.com/Brainiarc7/2afac8aea75f4e01d7670bc2ff1afad1
shopt -s nullglob;
for file in "$arg"*.{mov,mp4,MOV,MP4} ; do
echo "convert $file"
ffmpeg -i "$file" -vcodec prores -acodec pcm_s16le "prores_${file%.*}.mov" </dev/null > /dev/null 2>&1 &
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment