Skip to content

Instantly share code, notes, and snippets.

@oneblackcrayon
Last active June 27, 2021 02:21
Show Gist options
  • Save oneblackcrayon/f2cdef74a5be332703b402cfa052646d to your computer and use it in GitHub Desktop.
Save oneblackcrayon/f2cdef74a5be332703b402cfa052646d to your computer and use it in GitHub Desktop.
FFMPEG conversion for DaVinci Resolve
# One off
ffmpeg -i input/filename.MOV -vcodec dnxhd -acodec pcm_s16le -s 1920x1080 -r 24000/1001 -b:v 36M -pix_fmt yuv422p -f mov output/filename.MOV
# Batch processing
for i in *.MP4; do ffmpeg -i "$i" -vcodec dnxhd -acodec pcm_s16le -s 1920x1080 -r 24000/1001 -b:v 36M -pix_fmt yuv422p -f mov output/\"${i%.*}.mp4\"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment