Welcome to Linux Screw! If you're new here, you may want to subscribe our RSS feed.
Actually this tip is applicable to any Linux distribution mencoder can be run at (like Ubuntu, Debian, Fedora, Suse and even Slackware
)
MEncoder is a free command line video decoding, encoding and filtering tool released under the GNU General Public License. It is a close sibling to MPlayer and can convert all the formats that MPlayer understands into a variety of compressed and uncompressed formats using different codecs
Here is the fastest way to perform wmv to avi conversion:
- Ubuntu:
- Fedora:
sudo apt-get install mencoder
mencoder infile.wmv -ofps 23.976 -ovc lavc -oac copy -o outfile.avi
sudo yum install mencoder
mencoder infile.wmv -ofps 23.976 -ovc lavc -oac copy -o outfile.avi









Excelente
lo encontré rápido por google y me sirvió.
Gracias.
PS: Usé el de ubuntu.
Great!!!
Thank You!
works perfect!
added to my XXX2YYY scripts
thanks
only wmv to avi??
THANKS MATE
Only from wmv to avi? And the reverse? Is it possible to convert avi to wmv ? Thanks
hi! I’m new on Fedora and I don’t know what “infile” is, say if my file is on desktop what do I write for infile and outfile (location) in mencoder infile.wmv -ofps 23.976 -ovc lavc -oac copy -o outfile.avi?
a reply please
Thank you very much
regards
Frank
Thanks!! but sometimes the conversion skip some frames and final result isn’t better
Thanx for these commands. If someone want to convert to .avi (XVid) then instead of this command you can use this one
mencoder -ovc xvid -oac mp3lame -srate 44100 -af lavcresample=44100 -xvidencopts fixed_quant=4 Outfile.avi -o Newfile.avi
who do I specify outfile and infile?
how do I write the location?
please help
Thankyou
Frank
Fred, your desktop is located at /home/USERNAME/Desktop, so modify the command to match:
mencoder /home/USERNAME/Desktop/infile.wmv -ofps 23.976 -ovc lavc -oac copy -o /home/USERNAME/Desktop/outfile.avi
Using mencoder, you can convert practically any format to any other. While you’re on the command line, you might try:
man mencoder
THis will show input/output, frame rate, screen ratio and tons of other options.
??????? ?????? ??????? – ???? ? ?????? ????????
Hey there,
thanks for your awesome program. Works like a charm! One thing: is it possible to make the imagequality better. I just converted a wmv to an avi, but the quality is pretty bad. Any way to improve this?
thnx
Hey Skatespeare, I just wanted to update you on this, what your doing is taking an already compressed movie and then compressing it again, both of these formats are “Lossy” so they will never look as good as the source file. There is a way to change the container however thats beyond me and places like doom9 might be able to offer more in detail information.
Gracias, me ha servido el truquillo.
Funciona muy bien…
Gracias por tu esfuerzo..
Beauty, thanks a bunch!
How do I open MEncoder after installing it? I’ve searched around my system files and not found it, nor is it showing up under my programs through the start menu. I’m using the newest version of Ubuntu, and to be honest it confuses me alot… Computers aren’t really my thing, so if you could simply explain this to me I would be very grateful. Alternately, I tried running the command to run MEncoder to convert my video, and nothing happened. I’m fairly certain I had my location/file names input correctly, so I’m lost as to where I need to go or what I need to do from here…
This is a nasty command that will search your system for the wmv’s and make an avi copy of it in that same directory.
# find / -type f -name “*.wmv” -exec mencoder {} -ofps 23.976 -ovc lavc -oac copy -o {}.avi \;