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.


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.

| improve this answer | |

Another method is to add mp4 to iDealshare VideoGo, click Profile drop down button to select MKV from General Video category and click Convert button.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy