Debian Admin - Your way to Debian World

September 29, 2006

Install Mplayer in Ubuntu Linux

by @ 10:58 am. Filed under General, Other Linux

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

MPlayer is a movie and animation player that supports a wide range of codecs and file formats, including MPEG 1/2/4,DivX 3/4/5, Windows Media 7/8/9, RealAudio/Video up to 9, Quicktime 5/6, and Vivo 1/2. It has many MX/SSE(2)/3Dnow(Ex) optimized native audio and video codecs, but allows using XAnim’s and RealPlayer’s binary codec plugins, and Win32 codec DLLs. It has basic VCD/DVD playback functionality, including DVD subtitles, but supports many text-based subtitle formats too. For video output, nearly every existing interface is supported. It’s also able to convert any supported files to raw/divx/mpeg4 AVI (pcm/mp3 audio), and even video grabbing from V4L devices.

Install Mplayer in Ubuntu Dapper
You need to add the following lines to /etc/apt/sources.list file

gedit /etc/apt/sources.list

enter these two lines and save your file

deb http://archive.ubuntu.com/ubuntu dapper universe multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper universe multiverse

Install Mplayer in Ubuntu Edgy eft

You need to add the following lines to /etc/apt/sources.list file

gedit /etc/apt/sources.list

enter these two lines and save your file

deb http://archive.ubuntu.com/ubuntu edgy universe multiverse
deb-src http://archive.ubuntu.com/ubuntu edgy universe multiverse

Now you need to run the following command to update the source list

sudo apt-get update

Install mplayer using the following command

sudo apt-get install mplayer

if you want to open mplayer just type

gmplayer

or

You can Open from Applications—>Sound&Video—> Mplayer Movie Player

Once you open the mplayer you should see the mplayer opened in the following screen

If you want to install Mplayer with plug-in for Mozilla Firefox run the following command

sudo apt-get install mozilla-mplayer

Tags: , , , ,
 

You may also be interested in...

44 Responses to “Install Mplayer in Ubuntu Linux”

  1. Eric Hawk Says:

    Would’t it be a better idea to install automatix, and then get mplayer with it, along with so much other goodness?

  2. Hank Says:

    There’s a problem: Ubuntu opts to turn the RTC max freq down to 64hz for compatibility reasons. This makes the video all laggy. To fix it, do this as root:

    echo 1024 > /proc/sys/dev/rtc/max-user-freq

  3. Admin Says:

    thanks for your nice tip

  4. Mike Says:

    Thanks for this simple instruction, I have looked for many ways to make my Ubuntu run mp3 and other audio files.And
    what you introduce is the way which is most efficient.Thank you very much,A friend from Chinese.

  5. Mr Frosti Says:

    I know that installing Mplayer is very easy from a pre-built package, but I always find it to be a little buggy. Fullscreen is slow, and mplayerplug-in cuts off some of the video on the sides. Installing from source sounds intimidating, but Mplayer is easy. And the results are worth it.

  6. Vincent FANG Says:

    This aritcle is very helpful. Many thanks!

  7. Arunkumar C Says:

    when I tried that command..

    in my terminal i got the following lines after some time:

    “Reading package lists… Done
    W: GPG error: http://packages.freecontrib.org dapper Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY F120156012B83718
    W: You may want to run apt-get update to correct these problems

  8. Admin Says:

    Hi arun,

    The source list i have menctioned source list is totally different.If you are using source list f
    http://packages.freecontrib.org you need to get the authorization key from that site or you can ignore this error
    this error will occur when you try to access these packages without key.If you don’t want these source list
    you can delete and try to run sudo apt-get upate

    hope this help

  9. goodwh Says:

    “Arunkumar C”, please see below to fix the error message:

    http://packages.freecontrib.org/ubuntu/plf/

    $ wget http://packages.freecontrib.org/ubuntu/plf/12B83718.gpg -O- | sudo apt-key add -

  10. Chris Says:

    I keep getting this message when trying to use your instructions to install on Edgy:

    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.

    Since you only requested a single operation it is extremely likely that
    the package is simply not installable and a bug report against
    that package should be filed.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    mplayer: Depends: libdvdread3 (>= 0.9.6) but it is not installable
    Depends: libggi2 (>= 1:2.2.1) but it is not installable
    E: Broken packages

    how can I resolve this?

  11. Kayo Says:

    10 Responses to “Install Mplayer in Ubuntu Linux”

    I am also getting the same error as Chris, the 10th reply in this topic when trying to install
    Mplayer in Edgy Eft.

    Any idea?

  12. Admin Says:

    try to run the following command

    sudo apt-get -f install

    and reply if you are still getting the errors

  13. newb Says:

    root@x3n:/etc/apt# sudo apt-get -f install mplayer
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.

    Since you only requested a single operation it is extremely likely that
    the package is simply not installable and a bug report against
    that package should be filed.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    mplayer: Depends: libdvdread3 (>= 0.9.6) but 0.9.4-5.1 is to be installed
    Depends: libggi2 (>= 1:2.2.1) but 1:2.0.5-1.1ubuntu2 is to be installed
    E: Broken packages

  14. Admin Says:

    try to run only the following command without mplayer and let me know

    sudo apt-get -f install

    this should try to install all the required dependencies and i have installed using this procedure without any problem

  15. robo Says:

    Please add universe to the line in /etc/apt/sources.list

    deb http://archive.ubuntu.com/ubuntu dapper universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu dapper universe multiverse

    libggi2 will be installed together with mplayer and everything is fine.

  16. Waleed Says:

    Works great..
    thanks robo..

    Now I don’t have to boot win just to play wmv files

  17. Tejbir Says:

    Hi,

    I followed your instructions to install Mplayer but hit a snag and get this message in the terminal window:
    E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
    tsingh@Cooper-Desktop:~/Desktop$ sudo apt-get install mplayer
    E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
    E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

    Any ideas?

  18. Admin Says:

    Hi Tejbir,

    You have adept / synaptic or some other package manager open. You have to close them all.

    thanks

  19. Tejbir Says:

    Thanks for the tip. That worked as I had Synaptic package manager open but when I proceeded to install I ran into this issue:
    tsingh@Cooper-Desktop:~/Desktop$ sudo apt-get install mplayer
    Password:
    Reading package lists… Done
    Building dependency tree… Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.

    Since you only requested a single operation it is extremely likely that
    the package is simply not installable and a bug report against
    that package should be filed.
    The following information may help to resolve the situation:

    The following packages have unmet dependencies:
    mplayer: Depends: libggi2 (>= 1:2.0.5) but it is not installable
    E: Broken packages
    OK I read your comment on this issue above and ran the command: sudo apt-get -f install and this is what i got.
    tsingh@Cooper-Desktop:~/Desktop$ sudo apt-get -f install
    Reading package lists… Done
    Building dependency tree… Done
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

    Still the problem persists when I try to install Mplayer.
    Any suggestions? In case it helps, I’m running Drapper Ubuntu.
    Thanks.

  20. deco Says:

    i installed the mplayer sucessfuly but i cant paly any vedios. mp3s woks fine but when there is a vedio file it gives an error. i also installed the skin but it also doesnt appear.

  21. Kurian Says:

    Am just trying to install some mp3 player without connecting the net onto my laptop… How do i
    download the required mp3 package(*.deb) for my ubuntu dapper?

  22. kpgaurav Says:

    i don’t hav net conexion,i wanna mplayer 4 ubuntu6.06lts…any method..

  23. krolyk Says:

    While i started Mplayer… it gives me such an error!
    [gl] Could not create GLX context!
    MPlayer interrupted by signal 11 in module: decode_video

    Can somebody help me plz!!!

  24. NewRiver Says:

    Why does this have to be such a forking project in Debian/Ubuntu?
    It’s gravy in KDE.

  25. NAyK Says:

    For VCD, I find that it’s better to use gxine. Otherwise even with Automatix, mplayer or Totem couldn’t play the .dat files off the CD. This is how I did it, if you’re interested:
    http://alternativenayk.wordpress.com/2007/01/20/playing-vcds-on-ubuntu-linux-how-to/

  26. Jonty Says:

    Can’t install mplayer in Ubuntu Dapper drake as says it requires liblame0>3.96. I compiled 3.97 from source successfully, and it still says the same. How can I resolve this?

  27. tomai Says:

    Just installed mplayer with GUI, mozilla plugin and skins on 6.10 Edgy.
    No problem at all, mplayer/gmplayer runs fine on streaming mp3, ra (ram).
    This PC was first installed with 6.10.

    Have other PC which was firstly installed with 5.10, upgraded to 6.06 (LTS), then to 6.10.
    On this one I’ve got problems a month ago; will try again tomorrow and report here.

    Thanks for doing.

  28. William Pickett Says:

    Running Edgy from Dist-Upgrade from dapper, working fine as far as I can tell- and unable to get mplayer- gmplayer-from cl- and even 1024 fix failed:
    b21william@b21william-desktop:~$ sudo echo 1024 > /proc/sys/dev/rtc/max-user-freq
    bash: /proc/sys/dev/rtc/max-user-freq: Permission denied
    b21william@b21william-desktop:~$

    Thanks,
    William

  29. Admin Says:

    @william

    try the following

    Do this with your favorite editor, mine is vim

    sudo vi /etc/sysctl.conf

    Add the following line at the end of the file

    sys/dev/rtc/max-user-freq=1024

    Then type

    sudo /etc/init.d/sysctl reload

    hope this helps

  30. aleph Says:

    When I open Mplayer i get an error : error opening/initializing the selected video_out (-vo) device

  31. cesar Says:

    Leia este email

  32. Dave Telling Says:

    I installed mplayer in Ubuntu Dapper - the install seemed to go fine, but whenever I try to play a DVD, I see that teh HD and the DVD drive show a lot of activity, but nothing comes up in the video window. When I bring up the system monitor, it says that the process gmplayer is “uniterruptible” I finally have to click on the close process button to shut it down, otherwise my system will just continue to show thwe disk and DVD activity lights forever. DVD’s play in MoviePlayer, so I know that the drive gets the data in. However, I am a pretty new noobie, and I’m not sure what to look for to figure this out. Mp3 files seem to play without a problem.

  33. Admin Says:

    @dave

    Try to install Mplayer codecs from here after that it should work.

  34. Hanbing Says:

    It is very helpful. Thanks

  35. Roark Says:

    I also am getting:

    When I open Mplayer i get an error : error opening/initializing the selected video_out (-vo) device

    After installing. If someone figures this out before I do please post. If not, I will try to come back and post answer. PS:I could not compile at all on my Ubuntu - either I do not have the right headers or I get a message that GCC cannot create executable. Any hints on that would be great also! :)

  36. Roark Says:

    Blessed are the French because they know pictures are more important than words!!!

    Take a look at http://www.billyboylindien.com/blog/tutos/erreur-mplayer/

    And keep in mind you can get to gmplayer preferences by right clicking on the control panel. The picture should tell you a lot but essentially choose the video tab and change you video preference to
    xv X11/xv

  37. Roark Says:

    Oh, you need to do this for each user that will access gmplayer!

    BTW — thanks for the article it was great to have gmplayer back again.

    I am knew to Ubuntu but not to linux — so the compile thing is getting my goat —- Still willing to accept tips/hits/blasting’s….Whatever….But I am glad this article was hear!

  38. stefan Says:

    Some people here might have authorization problems. I’m not sure what causes this, but you might be able to play video’s using right click (on the file you want to open) and then choosing “Open with…” “Other…” and than the command “sudo mplayer” and enabling “run in terminal”. This works fine on my computer, but it’s not how it’s supposed to work off course.

  39. CajunKen Says:

    Why can’t I get write access to the ’sources.list’ file? If I list the permissions, I get:
    -rw-r–r– 1 root root 1732 2007-04-09 21:00 sources.list

    How do I get ownership of this file?

  40. Phoeninaicq Says:

    When I click the link above, the page refreshes and nothing else happens. How do I install Real Play 10 for UBUNTU? or Mplayer.

  41. nick Says:

    I’m having the same problem as CajunKen has, not having access or permission to save on the sources.list file

    HELP

  42. jon Says:

    nick dude,

    type
    chmod 777 /etc/apt/sources.list

    this gives you the owner root and anyone else permission to mess with the file or you can log in as root and modify the file there.

  43. Cyrano Says:

    # robo Says:
    November 5th, 2006 at 9:13 pm

    Please add universe to the line in /etc/apt/sources.list

    deb http://archive.ubuntu.com/ubuntu dapper universe multiverse
    deb-src http://archive.ubuntu.com/ubuntu dapper universe multiverse

    libggi2 will be installed together with mplayer and everything is fine.

    Thanks Robo. That did the trick. I’m able to play quicktime files now.

  44. wireless-guide Says:

    for slavic languages gksudo gedit /etc/mplayer/mplayer.conf

    subcp=windows-1250
    font=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf

    Nice tuto thx.

Leave a Reply

Subscribe RSS Feed

subscribe to the Debian Admin RSS feed

Internal links:

Sponsors:



Categories:

Support Debian Admin

Amount $:
Website(Optional):

Sponsors:

Archives:

WidgetBucks - Trend Watch - WidgetBucks.com

Related Links:


WidgetBucks - Trend Watch - WidgetBucks.com

Favourite Sites:

Wordpress Collection
Windows Reference
Ubuntu Geek
DebianHelp
All About Debian Tutorials
Power Electrical
Check Your IP Here
Debian,Ubuntu News
DebCentral
Tuxmachines
Capnkirby
Libervis
Nuxifield
Linux Horizon
Linux Appfinder
Debuntu
GNU/Linux For Everyone
Free Penguin
DebianAdmin is not related to the Debian Project.
This site is copyright © 2006,2007 Debian Admin
All Trademarks are the property of their respective owners.
The contents of this website may not be mirrored or archived without the express written permission of DebianAdmin Site Owner.

DISCLAIMER: All the information, troubleshooting methods, utilities offered in this website is provided AS-IS, without any warranties. Though I strive for perfection, and always test the validity and effectiveness of the troubleshooting content in various systems, I assume no responsibility for your use of these Fixes, Utilities and other troubleshooting advice. The author will not be liable for any special, incidental, consequential or indirect damages due to loss of data or any other reason. All use is completely at your own risk. Changes to the existing content and new additions are made to this website periodically, without notification.
Rodney's Kontera DynamiContext Plugin plugged in.