LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-26-2015, 11:11 PM   #1
littlejoe5
Member
 
Registered: Aug 2006
Location: Arizona
Distribution: ubuntu dirivatives mostly Mate
Posts: 260

Rep: Reputation: 19
mencoder reduce size of output-file.avi


I was following an old post trying to convert mkv to avi, using mencoder:
mencoder input.mkv -ovc lavc -oac mp3lame -o output.avi

It worked, but the resulting avi file was more than twice the size of the mkv file. It seems to be of good/great quality, but I need to get it down to about the size of the mkv. How do I do that?
 
Old 02-26-2015, 11:30 PM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
See this site page.

The input mkv file is using some video compression while the output file is perhaps raw video file. That's why double size.
You should pass some video compression options as specified in above link.

E.g.

Code:
mencoder input.mkv -ovc lavc -lavcopts vcodec=mpeg4 -oac mp3lame -o output.avi
 
1 members found this post helpful.
Old 03-02-2015, 09:32 AM   #3
littlejoe5
Member
 
Registered: Aug 2006
Location: Arizona
Distribution: ubuntu dirivatives mostly Mate
Posts: 260

Original Poster
Rep: Reputation: 19
Thanks everyone, for your help. I've got a lot of learning to do about all of this, but your answers have set me on a good course, and I managed to get the immediate job done, (and took notes so I can do it again). So I'm going to mark the thread "solved".
 
Old 04-10-2022, 10:14 AM   #5
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,103
Blog Entries: 6

Rep: Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822Reputation: 1822
@mount.nfs
In my opionion, mencoder had been broken, or doesn't work well for 10-12 years. ffmpeg is a much better choice.
 
1 members found this post helpful.
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to convert avi file to h264 with mencoder Darth Maul Linux - Newbie 3 08-11-2013 11:10 PM
[SOLVED] Unable to convert MKV file to AVI using mencoder - help please horde Linux - Software 1 05-31-2010 08:53 AM
avi to mpeg, reduce size of mpeg? gunnix Linux - General 5 03-04-2007 05:55 PM
any ideas to reduce log file size or make log file size managed? George2 Programming 2 08-13-2006 06:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration