Writing down my thoughts once ince a while

How to play Real Media in Ubuntu Hardy

with 8 comments

I use Gentoo and Ubuntu systems generally. While playing .rmvb files on Gentoo was just a matter of emerging the win32codecs or the win64codecs (w32/64codecs on Ubuntu), w64codecs aren’t available for you to apt-get install. Fortunately all you have to do to play .rmvb files with mplayer is to get the binary codecs package from mplayerhq for your specific architecture and platform. In my case AMD64/EMT64 Linux. Go to the download section on the mplayerhq web site and download your codec package. Create the /usr/lib/codecs/ folder if it doesn’t exist already and extract the .so files from the archive you download to that folder. Change the folder permission to a+rx and the .so files permissions to 0644. Be sure to use mplayer or gmplayer to play your .rm or .rmvb files.


sudo -i
mkdir temp1
cd temp1
wget http://www8.mplayerhq.hu/MPlayer/releases/codecs/essential-amd64-20071007.tar.bz2
tar xjf essential-amd64-20071007.tar.bz2
# if after running ls you don’t see a lot of .so files but instead you see a folder, run:
# cd that_folder
mkdir /usr/lib/codecs
mv *.so /usr/lib/codecs
chmod 0755 /usr/lib/codecs
chmod 0644 /usr/lib/codecs/*
rm -R temp1

EDIT: In the 64bit version of Arch Linux, this was very easy to install just by doing “pacman -S extra/codecs” (Non-linux native codec pack. (Win32, Real9, QuickTime)).

EDIT: The above instructions should work on all systems, but there’s even an easier way to get w32/w64/codecs and keep them up to date: go to the medibuntu site and read the Repository HowTo.


Written by brokenthorn

May 11, 2008 at 12:41

Posted in Ubuntu

Tagged with , , , ,

8 Responses

Subscribe to comments with RSS.

  1. I,m using the 64bit ubuntu in 64bit machine.. i follow the instruction to install rmvb codec but nothing happen? am i missing something?


    September 6, 2008 at 02:40

  2. Open up a terminal and do this exactly:

    sudo -i
    wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-amd64-20071007.tar.bz2
    tar xjf essential-amd64-20071007.tar.bz2
    mkdir /usr/lib/codecs
    mv *.so /usr/lib/codecs
    chmod 0777 /usr/lib/codecs
    chmod 0644 /usr/lib/codecs/*.so

    If that doesn’t work, please let me know.


    September 6, 2008 at 02:46

  3. Didn’t work.

    In fact the mv command didn’t work, probably because you need to change to the directory the tar file created first, but I just used gksudo nautilus and graphically copied the files.

    But I still can’t play Realmedia in Mplayer.

    Of course, what I am trying to do is stream a .ram video from a website, using the Mplayer Firefox plugin, so maybe I’m on the wrong track with this?


    September 30, 2008 at 06:58

  4. […] How to play Real Media in Ubuntu Hardy […]

  5. it works for me
    mv *.so /usr/lib64/codecs
    chmod 555 *.so
    thank you!

    CentOS 5.2 user

    December 23, 2008 at 16:37

  6. I was do everythin what you say and still didn’t work
    When I open a .rm file in mplayer I have this error:
    AO: [pulse] File to connect to server: Connection refused


    January 25, 2009 at 00:35

  7. Séamas, maybe you should change Settings in your video player. I am using SMPlayer, after changing video output (in SMPlayer settings) to X11 everything started working


    January 25, 2009 at 14:35

  8. The best performing video output module for mplayer is xv. For audio, select alsa. I don’t know why people have to be forced to use pulse. :/

    If they’re gonna develop a sound server, they should make it part of Alsa and KISS.


    March 14, 2009 at 22:45

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: