Convert WMV into AVI with Ubuntu

Welcome to Linux Screw! If you're new here, you may want to subscribe our RSS feed.

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

 
 
» You might also be interested in the following articles:
Convert Nero image (.nrg) to ISO9660 (.iso)
Convert WMA to MP3 in Ubuntu
FAQ: How to open files .daa in Ubuntu
Two-way conversion of Unix time (seconds since 1970) and regular time
Download and convert YouTube video online and offline



» Want to stay up to date? Subscribe to our E-MAIL or RSS feed!

19 Responses to “Convert WMV into AVI with Ubuntu”


  1. 1 Gabriel

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

    Gracias.

    PS: Usé el de ubuntu.

  2. 2 pantera

    Great!!!

    Thank You!

  3. 3 kamon

    works perfect!
    added to my XXX2YYY scripts :D

    thanks

  4. 4 gEr_DaNnY

    only wmv to avi??

  5. 5 asldf

    THANKS MATE

  6. 6 pluto

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

  7. 7 Frank

    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

  8. 8 oMbra

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

  9. 9 Bravehart

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

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

    Thankyou

    Frank

  11. 11 Me

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

    ??????? ?????? ??????? – ???? ? ?????? ???????? :(

  13. 13 Skatespeare

    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

  14. 14 DanielS

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

    Gracias, me ha servido el truquillo.

  16. 16 Manu

    Funciona muy bien…

    Gracias por tu esfuerzo..

  17. 17 Topsexycelebs

    Beauty, thanks a bunch!

  18. 18 Brian

    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…

  19. 19 Will

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

Leave a Reply




Friendly Sites:Who is behind Linux Screw?
Aspiring Sysadmin | GeekyBits³ | Bash Cures Cancer | TOTMS
Linux Operating System | Small Linux Deployments | My SysAd Blog
The Danesh Project | ZEPY | Linux config Wiki | Planet Sysadmin
The Sys Admin | {buhay sysad} | a non-geek's linux notes
Linux HOWTOs, Tutorials & Projects with Adam Palmer | LinuxAlt.Com
My name is Artem Nosulchik (artiomix AT gmail DOT com) and I'm Linux/Unix, Cisco systems engineer. The main idea of Linux Screw is to share relevant knowledge, skills and observations over The Web. Here you can find a lot of information related to different Linux distributions, FreeBSD, IOS as well as a other Open Source around staff. Read more ››