Follow

@joancatala isn't it better to use this command to change the container format?(should work for any container format like mkv, flv, webm, mp4)

ffmpeg -i source.mkv -f mp4 -c copy output.mp4

with -f parameter being mp4 / mastroska / webm / flv