Skip to content

Instantly share code, notes, and snippets.

@beatwiz
Last active April 29, 2022 09:09
Show Gist options
  • Save beatwiz/ca80735288cbd08a92fa70485e33b8ee to your computer and use it in GitHub Desktop.
Save beatwiz/ca80735288cbd08a92fa70485e33b8ee to your computer and use it in GitHub Desktop.
Convert movie files using ffmpeg on macos (mov to mp4) (dolby vision mkv to mp4 container for LG)
# convert mov to mp4
# https://medium.com/macoclock/convert-mov-to-mp4-on-a-mac-c9c93b730d84
brew install ffmpeg
ffmpeg -i demo.mov -vcodec h264 demo.mp4
# convert DoVi mkv to DoVi mp4
# will only convert first video and audio stream and will skip subtitles
# https://www.reddit.com/r/ffmpeg/comments/qe7oq1/comment/i45kbpy/?utm_source=share&utm_medium=web2x&context=3
ffmpeg -i input.mkv -c copy -strict unofficial output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment