ffmpeg -i input.mkv -c copy output.mp4 If container change fails (some subtitle/codec incompatibilities), extract and remux streams selectively.