mplayer logoActually 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:

  1. Ubuntu:
  2. sudo apt-get install mencoder
    mencoder infile.wmv -ofps 23.976 -ovc lavc -oac copy -o outfile.avi

  3. Fedora:
  4. sudo yum install mencoder
    mencoder infile.wmv -ofps 23.976 -ovc lavc -oac copy -o outfile.avi

Information improvisation: Sign up with http:///70-461.htm for getting incredible online exam and . We also provide best and Best Wishes.




  1. February 29, 2008  6:00 pm by Gabriel Reply

    Excelente :D

    lo encontré rápido por google y me sirvió.


    PS: Usé el de ubuntu.

  2. March 17, 2008  10:37 pm by pantera Reply


    Thank You!

  3. April 21, 2008  6:25 pm by kamon Reply

    works perfect!
    added to my XXX2YYY scripts :D


  4. May 15, 2008  3:30 pm by gEr_DaNnY Reply

    only wmv to avi??

  5. May 17, 2008  8:36 pm by asldf Reply


  6. June 5, 2008  2:25 pm by pluto Reply

    Only from wmv to avi? And the reverse? Is it possible to convert avi to wmv ? Thanks

  7. October 12, 2008  1:42 am by Frank Reply

    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



  8. October 13, 2008  9:34 pm by oMbra Reply

    Thanks!! but sometimes the conversion skip some frames and final result isn't better

  9. October 25, 2008  5:51 am by Bravehart Reply

    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

  10. October 25, 2008  12:19 pm by frank Reply

    who do I specify outfile and infile?
    how do I write the location?
    please help



  11. December 20, 2008  9:50 pm by Me Reply

    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.

  12. February 20, 2009  7:49 am by Online Reply

    ??????? ?????? ??????? - ???? ? ?????? ???????? :(

  13. March 9, 2009  6:25 pm by Skatespeare Reply

    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?


  14. March 24, 2009  8:32 am by DanielS Reply

    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.

  15. September 8, 2009  5:28 pm by Pato Reply

    Gracias, me ha servido el truquillo.

  16. September 30, 2009  8:33 am by Manu Reply

    Funciona muy bien...

    Gracias por tu esfuerzo..

  17. January 2, 2010  8:54 am by Brian Reply

    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...

  18. January 22, 2010  12:23 am by Will Reply

    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 \;

  19. Pingback : - Finding the right torrents!

  20. May 10, 2010  8:14 am by kcyberjob Reply

    From 1.3 gb wmv file to 480 mb avi that work and best quality. I use ubuntu 9.10.

  21. June 18, 2010  7:57 pm by Pascal Reply

    Thanks for the tips, I was looking for this and it works perfect.

  22. June 23, 2010  6:50 pm by Demonoid Reply

    .ogv TO .avi

    mencoder input.ogv -ovc xvid -oac mp3lame -xvidencopts pass=1 -o output.avi

    .flv TO .avi

    mencoder input.flv -o output.avi -oac mp3lame -lameopts cbr:br=64 -srate 22050 -ovc xvid -xvidencopts fixed_quant=6

    .mpeg TO .avi

    mencoder input.mpg -ovc xvid -oac mp3lame -xvidencopts bitrate=800 -o output.avi

    .mp4 TO .avi

    mencoder -oac copy -ovc copy input.mp4 -o output.avi

    .wmv TO .avi

    mencoder input.wmv -ofps 23.976 -ovc lavc -oac copy -o output.avi

    Enjoy porn! :)

  23. July 16, 2010  3:27 am by zune setup Reply

    This is just now the sort of information I was looking for! Thanks.

  24. July 18, 2010  6:07 pm by Soso Reply

    absolutely helpfull, Works PERFECT and EASY

  25. July 20, 2010  5:40 pm by Sir Geek Reply

    I'm having a problem with the command on a Centos system:

    ffmpeg -i 20100706_0900_Time_Will_Tell.mpg -f avi -vcodec xvid -acodec mp3 -ar 22050 /tmp/20100706_0900_Time_Will_Tell.avi

    This gives me the following error:
    Unknown encoder 'xvid'

    ffmpeg -version gives:

    FFmpeg version SVN-r22794-snapshot, Copyright (c) 2000-2010 the FFmpeg developers
    built on Apr 5 2010 13:50:59 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)

    Am I missing something ?

    • June 7, 2013  12:42 pm by Solid Reply

      You can do it this way too:
      find /DirectoryWhereFilesAreLocated type -name "*.wmv" -exec ffmpeg -i {} {}.avi \;

  26. July 20, 2010  8:25 pm by Sir Geek Reply

    FYI - I was able to get it to work using -vcodec libxvid -acodec libmp3lame

  27. November 21, 2010  8:15 am by Harshit Sureka Reply

    Awesome man! Works great! Thanks a ton!

  28. November 29, 2010  7:05 pm by lunettes loupes Reply

    Connaissez-vous un annuaire qui recapitule les sites relatifs à ce sujet? Merci d'avance.

  29. January 17, 2011  6:52 am by Outlet Reply

    Great concepts on this website. It's rare these days to find websites with data you are seeking. I am happy I chanced on this webpage.

  30. January 20, 2011  10:02 pm by NewbieX2 Reply

    I used this command to batch convert a bunch of .WMV's to xvid.

    find ~/VIDEOS type -f -name "*.WMV" -exec mencoder {} -ovc xvid -oac mp3lame -srate 44100 -af lavcresample=44100 -xvidencopts fixed_quant=4 copy -o {}.avi \;

    Just substitute ~/VIDEOS for whatever dir you want to search.

  31. February 17, 2011  4:26 pm by jobs in graphic design Reply

    I do not accept this article. Nonetheless, I had searched in Google and I have found out that you're correct and I was thinking in the improper way. Continue creating high quality content such as this.

  32. Pingback : Convert WMV into AVI with Ubuntu | Joko Susamto

  33. March 14, 2011  7:28 am by Wicker Reply

    The module implements a simple image gallery allowing to display picture sliding caption with title/teaser text on hovering. It is based on the jQuery tutorial "Sliding Boxes and Captions with jQuery" from Sam Dunn.

  34. March 28, 2011  6:00 pm by Hooks Reply

    Reparatii calculatoare / laptop, configurare, instalare sistem de operare (WINDOWS, LINUX), routere. OPTIMIZARE SISTEM. Instalare programe, devirusare, mentenanta, schimbare piese, recuperare date, partitii sterse. Upgrade componente, implementare firewall, antivirus. Resoftari/Decodari/Modari telefoane (inclusiv iPhone), PSP, PlayStation. Interventii remote sau la domiciliu.
    Situatiile descrise mai sus sunt doar o mica parte a lucrurilor la care ne pricem si pe care le putem rezolva.

  35. March 28, 2011  11:35 pm by jack3d supplements Reply

    I do not accept this article. Nonetheless, I had searched in Google and I have found out that you’re correct and I was thinking in the improper way. Continue creating high quality content such as this.

  36. April 26, 2011  10:12 pm by bird houses for sale Reply

    well written article, you did a good job of describing the article in a simple manner

  37. May 13, 2011  8:39 am by ifen Reply

    However, not all reading systems were created equal. Let's have a look at what sets them apart.

  38. May 21, 2011  2:48 am by fivefingers Reply

    Hello! I just would like to give a huge thumbs up for the great info you have here on this post.I will be coming back to your blog for more soon.

  39. June 5, 2011  9:38 pm by Francis Esquivel Reply

    You have brought up a very good details , thanks for the post.

  40. January 4, 2013  7:24 am by Maybell Reply

    Greetings, I do believe your blog may be having
    web browser compatibility issues. Whenever
    I take a look at your website in Safari, it looks fine
    but when opening in I.E., it's got some overlapping issues. I merely wanted to provide you with a quick heads up! Aside from that, great site!

  41. January 4, 2013  7:39 am by conference centres Reply

    If some one wants to be updated with newest technologies afterward he must be pay a quick visit this web page and be up to date every day.

  42. February 15, 2013  2:58 am by Eric Reply

    Please let me know if you're looking for a author for your site. You have some really great articles and I feel I would be a good asset. If you ever want to take some of the load off, I'd love to write
    some articles for your blog in exchange for a link back to mine.
    Please shoot me an e-mail if interested. Many thanks!

  43. May 2, 2013  6:16 am by Media Streaming Reply

    My cousin encouraged I could similar to this site. He appeared to be completely right. This specific publish essentially built my personal morning. You should not envision just how lots occasion I had put in with this data! Thanks!

  44. May 6, 2013  8:55 pm by charles penzone family of salons Reply

    Howdy! Someone in my Facebook group shared this website
    with us so I came to take a look. I'm definitely enjoying the information. I'm bookmarking and will be tweeting this to
    my followers! Great blog and superb design.

  45. June 6, 2013  8:49 pm by Solid Reply

    You can do it this way too:
    find /DirectoryWhereFilesAreLocated type -name "*.wmv" -exec ffmpeg -i {} {}.avi \;

  46. June 17, 2013  4:32 am by Ashli Reply

    fantastic publish, very informative. I wonder why the opposite experts of
    this sector don't understand this. You must proceed your writing. I am confident, you've a great
    readers' base already!

  47. June 17, 2013  8:51 am by raspberry ketones cvs Reply

    Pretty nice post. I just stumbled upon your weblog
    and wanted to say that I have truly enjoyed surfing
    around your blog posts. In any case I'll be subscribing to your rss feed and I hope you write again very soon!

Leave a reply


Your email address will not be published.