Convert to CFR (29.97)

Convert to constant frame rate of 29.97fps (accurately 30000/1001)

Output format is h.264 lossless and aac audio, so it can be edited in most editing programs.

 

ffmpeg  -loglevel verbose \
-i $1 \
-map 0 \
-map_metadata 0 \
-map -0:d \
-map -0:s \
-map -0:t \
-ignore_unknown \
-c:a aac \
-vbr 5 \
-c:v libx264 \
-crf 0 \
-coder 1 \
-context 1 \
-g 1 \
-threads 8 \
-y \
-r 30000/1001 \
$2