LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-11-2007, 12:29 PM   #1
Gortex
Member
 
Registered: Nov 2005
Location: Enid Ok
Distribution: ubuntu 64 , debian , fedora core , vista ultimate 64, Winows 7 64 ultimate :p
Posts: 219

Rep: Reputation: 30
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 ?
 
Old 08-11-2007, 03:33 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
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
 
Old 08-11-2007, 03:34 PM   #3
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
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

Last edited by SciYro; 08-11-2007 at 03:35 PM.
 
Old 08-13-2007, 04:29 PM   #4
Gortex
Member
 
Registered: Nov 2005
Location: Enid Ok
Distribution: ubuntu 64 , debian , fedora core , vista ultimate 64, Winows 7 64 ultimate :p
Posts: 219

Original Poster
Rep: Reputation: 30
I keep gertting -aoc is not an Mencoder option
 
Old 08-13-2007, 04:32 PM   #5
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
oooooooops. its supposed to be "-ovc" and "-oac".
 
Old 08-13-2007, 04:37 PM   #6
Gortex
Member
 
Registered: Nov 2005
Location: Enid Ok
Distribution: ubuntu 64 , debian , fedora core , vista ultimate 64, Winows 7 64 ultimate :p
Posts: 219

Original Poster
Rep: Reputation: 30
Audio format 0x4134504d is incompatible with '-oac copy', please try '-oac pcm' instead or use '-fafmttag' to override it.
 
Old 08-13-2007, 04:57 PM   #7
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Media player for SuSE 10.0 - Will play .avi, .mkv, .ogm Tino_B Linux - General 3 04-17-2006 11:49 AM
Zaurus SL-c3000 playing video (avi, ogm, mkv) sadarax Linux - Laptop and Netbook 2 10-24-2005 08:03 PM
Convert AVI to MPEG? mrgrieves Linux - Software 1 07-10-2004 03:04 PM
Convert avi to svcd skon Linux - General 2 12-28-2003 11:18 PM
convert avi to mpeg xgreen Linux - Software 7 11-30-2003 09:45 AM


All times are GMT -5. The time now is 05:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration