- Published on
Transcode 4k video from a Oneplus3 phone to DNXHR format for Davinci Resolve 16
A very short script to transcode 4k video from a Oneplus3 phone to DNXHR format compatible with Davinci Resolve 16.
transcode.sh
#!/bin/bash
# if an argument is supplied, use that as the filename
if test ! -z "$1"
then
ffmpeg -i ${1} -c:v dnxhd -profile:v dnxhr_hq -pix_fmt yuv420p -c:a pcm_s16le ${1}.mov
# else, get all the MP4s
else
for f in *.MP4
do
ffmpeg -i ${f} -c:v dnxhd -profile:v dnxhr_hq -pix_fmt yuv420p -c:a pcm_s16le ${f}.mov
done
fi