nixCraft Poll

Topics

How to: Linux Play DivX .avi video codec file

Posted by Vivek Gite [Last updated: December 14, 2007]

From my mail bag:

I've downloaded .avi files which is compressed into small sizes while maintaining relatively high visual quality using DivX format. How do I play DivX compressed files under Debian / Ubuntu Linux?

The current version of the DivX Community Codec for the Windows platform is version 6.6, and for Mac OS X is 6.6x. There is no Linux version available however with the help of VLC and DivX for Linux codec, you should able to play all sort of DivX files.

Download and Install DivX Linux Codec

Open terminal and type the following command to download DivX codec:
$ cd /tmp
$ wget http://download.divx.com/labs/divx611-20060201-gcc4.0.1.tar.gz

Untar DivX 6.1.1 codec for Linux:
$ tar -zxvf divx611-20060201-gcc4.0.1.tar.gz
Install divx611 codec:
$ cd divx611-20060201-gcc4.0.1
$ sudo ./install.sh

Press Q after reading agreement, please type yes to install codes.

Install vlc player

The VLC media player can be installed using apt-get command, type:
$ sudo apt-get update
$ sudo apt-get vlc

How do I play files?

Open VLC player by Visiting Applications > Sound and Video > VLC Player. You can also open terminal and type the command:
$ vlc /path/to/my-downloaded-movie.avi

Further readings:

Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

You may also be interested in other helpful articles:

Discussion on This Article:

  1. Kartik Says:

    I tried the above procedure mentioned. But after i did ” sudo ./install.sh ” , it asked me to enter a password.

    I’m even unable to extract the files because it is password protected. How do I resolve this to install divx codecs on my linux ??

  2. vivek Says:

    Enter your own password

  3. Joshua Says:

    thankyou sooo much for the instructions on installing the divx codec…..it worked only thing is…i still cant figure out how to watch a streaming movie even with the codec….the further instructions and after installing vlc…i even removed mplayer…for example on a site such as 66stage.com…..the website still tells me that i’m missing the codec…even though i have installed it and i even tried reinstalling it just in case.but it says its installed…can anyone help…im out of ideas…

  4. karl Says:

    Installing vlc does not work. I’m using kubuntu.

  5. cloversg Says:

    You don’t need to install any codecs.
    VLC Media player does the job without any assistance. You will only have problems with .asf, .wmv and .rm (Proprietary media formats)

    It works both for Linux as well as Windows

    Go read the home page.

  6. blink4blog Says:

    Well, after installed the codec, the existing VLC 0.9 beta still could not open those DIVX video, any ideas?

    I found nothing been left after the installation inside /tmp

    How to incorporate the codec to work with VLC?

  7. miis Says:

    I installed vlc
    sudo apt-get install vlc

    but opening avi files plays only voice !! not video

  8. yusuf khan Says:

    Thanks for the support i have got the Divx installed.

  9. Shawn Says:

    As mentioned above; VLC uses it’s own codecs; installing the DivX codec pack will not make it play in VLC.

    I’m at a loss as to any tool that actually uses the “official” DivX library.

  10. vikendra Says:

    i want to know about the all steps to runing the vedio in linux

  11. Aadam Says:

    i types my own password but it didnt work, by own pass word what do you mean, if you mean the password to log onto the computer, it doesnt work, so please tell me what password to type

  12. brian Says:

    brian@brian:/tmp/divx611-20060201-gcc4.0.1$ $ sudo ./install.sh
    bash: $: command not found

    um.. how can i fix this because i followed all directions up to here — it is hopefully apparent to you all that i am stuck.

    any help would be of great use to me.
    thanks, brian

  13. stupidsavior Says:

    sudo needs root password. If your guys are so dumb why are you using Linux in the first place? Stick to StupidSoft.

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Tags: , , , , , , , , , , ,

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.