Use FFmpeg to convert/remux mkv to mp4

Here are my most used ffmpeg commands for quickly remuxing .mkv videos to mp4, which doesn't involve any re-encoding.

Remux all the .mkv files in a folder, stripping the metadata

Windows Command Prompt

for %i in (*.mkv) do ffmpeg -i "%i" -c:v copy -c:a copy -map_metadata -1 "%~ni.mp4"


for i in *.mkv; do ffmpeg -i "$i" -c:v copy -c:a copy -map_metadata -1 "${i%.*}".mp4; done

more here

3 weeks ago 0 comments