Batch convert video files with ffmpeg for Davinci Resolve Free Edition

Linux Arch ffmpeg Davinci Resolve

I needed to use Davinvi Resolve but the free version limits the codecs available on linux. To convert files, run the following script in the media folder. Adjust flags as needed.

mkdir converted; for i in *.mp4; do ffmpeg -i "$i" -vcodec mjpeg -q:v 2 -acodec pcm_s16be -q:a 0 -f mov "concerted/${i%.*}.mov"; done