Skip to content

Instantly share code, notes, and snippets.

@gsilano
Last active November 20, 2023 21:13
Show Gist options
  • Save gsilano/939c696e4fd72b177d8b21ef183c1c83 to your computer and use it in GitHub Desktop.
Save gsilano/939c696e4fd72b177d8b21ef183c1c83 to your computer and use it in GitHub Desktop.
This script uses ffmpeg to convert MKV and MP4 file format in MOV for DaVinci Resolve video editing program

Overview

This script uses ffmpeg to convert MKV and MP4 file format in MOV for DaVinci Resolve video editing program

To install ffmpeg

sudo apt-get update
sudo apt-get install ffmpeg

From MKV to MOV

ffmpeg -i input.mkv -map 0:0 -map 0:1 -map 0:2? -vcodec dnxhd -acodec:0 pcm_s16le -acodec:1 pcm_s16le -s 1920x1080 -r 30000/1001 -b:v 36M -pix_fmt yuv422p -f mov output.mov

From MP4 to MOV

ffmpeg -i input-video.mp4 -c:v dnxhd -profile:v dnxhr_hq -pix_fmt yuv422p -c:a pcm_s16le output-video.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment