I would like to convert a video file from mkv to mp4. Usually (Debian 9, main laptop), I do:

$ ffmpeg -i input.mkv -c:v libx264 output.mp4

On the other hand, on raspbian ffmpeg is replaced with avconv. My question is: is there an equivalent avconv command for doing exactly the same thing?

I am aware of possible other alternatives for reaching the same goal (mvk -> mp4), as for example listed on this website, but it is spontaneous for me to start with easier attempts.


1 Answer 1


Your Raspbian must be old

If your Raspbian doesn't provide ffmpeg, or you don't want to use the old Libav stuff, you can simply download a binary of ffmpeg for armel, armhf, or arm64. Which one to use depends on your Pi version.

MKV to MP4

If the video and audio formats in the MKV file are supported by MP4, such as H.264 video and AAC audio, then you can just re-mux:

ffmpeg -i input.mkv -c copy output.mp4

Otherwise, re-encode by removing -c copy.