LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   convert .mkv to .avi (https://www.linuxquestions.org/questions/linux-general-1/convert-mkv-to-avi-576381/)

Gortex 08-11-2007 12:29 PM

convert .mkv to .avi
 
I dont know if this is the right spot for this but,
Does any one know how to convert .mkv files to .avi in linux ?

MS3FGX 08-11-2007 03:33 PM

Mencoder can convert anything that Mplayer can play, so assuming you are able to successfully play this video under Mplayer, the command to convert it to an .avi would be:

Code:

mencoder input.mkv -ovc lavc -oac mp3lame -o output.avi

SciYro 08-11-2007 03:34 PM

Assuming avi supports the given video and audio codec, simply:

Code:

mencoder input.mkv -o output.avi -aoc copy -aov copy -of avi
Tho, i do wonder why you would want to convert to avi, mkv is so much more superior.

edit: yea, do it as MS3FGX said, as it will also convert audio and video into a supported avi codec

Gortex 08-13-2007 04:29 PM

I keep gertting -aoc is not an Mencoder option

SciYro 08-13-2007 04:32 PM

oooooooops. its supposed to be "-ovc" and "-oac".

Gortex 08-13-2007 04:37 PM

Audio format 0x4134504d is incompatible with '-oac copy', please try '-oac pcm' instead or use '-fafmttag' to override it.

SciYro 08-13-2007 04:57 PM

Like i said, mkv supports more codecs. You will have to use the command MS3FGX gave instead, simply copying the audio stream will not work in your case.

ondoho 10-20-2017 01:36 AM

i'd use ffmpeg.
guaranteed mal/spyware free!

suicidaleggroll 10-20-2017 05:24 PM

I use handbrake, and I absolutely recommend it.

jsbjsb001 10-21-2017 06:51 AM

Quote:

Originally Posted by Gortex (Post 2855636)
I dont know if this is the right spot for this but,
Does any one know how to convert .mkv files to .avi in linux ?

If you want a nice easy GUI way of being able to convert to and from many different audio/video formats; and is available in the repo's of many different Linux distributions: WinFF is GUI frontend for ffmpeg, that makes it very easy as long as you have the necessary dependencies installed for ffmpeg and WinFF. Your Linux distributions package manager should make it easy to install both ffmpeg and WinFF.

Good luck with it!

jojolendir 12-05-2017 03:19 AM

Quote:

Originally Posted by suicidaleggroll (Post 5772147)
I use handbrake, and I absolutely recommend it.

I agree, Handbrake such a great tool for video conversion, available in many OS platform, both GUI And Command line also avalaible. with a proper setting we can have video with higher quality but also smaller size


All times are GMT -5. The time now is 08:26 AM.