LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Installation of mplayer problem (https://www.linuxquestions.org/questions/linux-newbie-8/installation-of-mplayer-problem-448682/)

gregorian 05-26-2006 03:47 AM

Installation of mplayer problem
 
I just read the mplayer related threads but could not find a soultion.

I download the first two files of mplayer from here:


http://ftp.freshrpms.net/pub/freshrp...hat/9/mplayer/


libpostproc-1.0-0.2.pre2.fr.i386.rpm
mplayer-1.0-0.2.pre2.fr.i386.rpm

On using rpm - i with the first one, I get:
Code:

warning: libpostproc-1.0-0.2.pre2.fr.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
On using rpm - i with the second one, I get:

Code:

warning: mplayer-1.0-0.2.pre2.fr.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
error: Failed dependencies:
        aalib is needed by mplayer-1.0-0.2.pre2.fr
        alsa-lib is needed by mplayer-1.0-0.2.pre2.fr
        faad2 is needed by mplayer-1.0-0.2.pre2.fr
        lame is needed by mplayer-1.0-0.2.pre2.fr
        libaa.so.1 is needed by mplayer-1.0-0.2.pre2.fr
        libasound.so.2 is needed by mplayer-1.0-0.2.pre2.fr
        libasound.so.2(ALSA_0.9) is needed by mplayer-1.0-0.2.pre2.fr
        libdv is needed by mplayer-1.0-0.2.pre2.fr
        libdv.so.2 is needed by mplayer-1.0-0.2.pre2.fr
        libdvdread is needed by mplayer-1.0-0.2.pre2.fr
        libdvdread.so.3 is needed by mplayer-1.0-0.2.pre2.fr
        libfame is needed by mplayer-1.0-0.2.pre2.fr
        liblirc_client.so.0 is needed by mplayer-1.0-0.2.pre2.fr
        liblzo.so.1 is needed by mplayer-1.0-0.2.pre2.fr
        libmad.so.0 is needed by mplayer-1.0-0.2.pre2.fr
        libmp3lame.so.0 is needed by mplayer-1.0-0.2.pre2.fr
        lirc is needed by mplayer-1.0-0.2.pre2.fr
        lzo is needed by mplayer-1.0-0.2.pre2.fr
        mplayer-fonts is needed by mplayer-1.0-0.2.pre2.fr

On moving one directory up the directory of the URL, I find many more directories with the name mplayer in them. I don't know if they are required but if they are please tell me the names of those directories also.



I downloaded and upgraded apt using:

apt-get upgrade

Running apt-get install mplayer,

I get:
Code:

Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package mplayer

Thanks in advance.

drkstr 05-26-2006 09:24 AM

You are missing all of the dependencies related to sound it looks like. GO up a directory in the link you posted, and download and install everything listed under "error: Failed dependencies:". It looks like you didn't set up sound support when you installed your distro, you might also need to configure your kernel for alsa. After you installed all the needed packages, you will need recompile your kernel and enable "Sound Support" as a module", then select alsa and the appropriate device driver beneath it as a module as well. WHen you finished compiling, run 'alsaconf' to configure alsa with your sound device, and 'alsamixer' to set the volume levels. You may also need to add yourself to the 'audio' group depending on your distro.

regards,
...drkstr

**edit**
some of the dependencies listed are included in the other packages (libasound is in alsa-lib for instance), if you can't find one in there, just skip it to see if it works without, or ask for help if you are unsure
**edit**

gregorian 05-27-2006 05:32 AM

Thanks for your help. I did as you instructed but now I get only this error message on executing:

rpm -i mplayer-1.0-0.2.pre2.fr.i386.rpm


Code:


warning: mplayer-1.0-0.2.pre2.fr.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
error: Failed dependencies:
        libmad.so.0 is needed by mplayer-1.0-0.2.pre2.fr

I downloaded
libmad-0.15.0b-2.fr.i386.rpm


from here:

http://ftp.freshrpms.net/pub/freshrpms/redhat/9/libmad/

I unzipped it and found many files. I don't know how to install it. Any help we be appreciated. Thank you.

ethics 05-27-2006 05:38 AM

Ir's an .RPM so it will be installed same as the others you did
Code:

man rpm
make sure you got this one "libmad-0.15.0b-2.fr.i386.rpm"

perfect_circle 05-27-2006 05:39 AM

You unzipped it?
What about doing:
Code:

rpm -ihv libmad-0.15.0b-2.fr.i386.rpm

gregorian 05-28-2006 01:07 AM

Last time, I think I had downloaded the source files accidently in a tarball. I have downloaded the rpm. On executing the command

rpm -ihv libmad-0.15.0b-2.fr.i386.rpm

in the terminal I get nothing, it just remains as it is, I have to close the terminal in order to start another session. No matter how long I wait, nothing is dispayed. It looks like this:

Code:

[root@localhost lib]# rpm -ihv libmad-0.15.0b-2.fr.i386.rpm

perfect_circle 05-28-2006 10:51 AM

Well, what can I say.
Download the file again. Maybe you encountered errors in the download process. Also do a
Code:

rpm -qa
this will list you all the installed rpm's. If this stops somewhere with segmentation fault then your rpm database is corrupted and you need to rebuild the database.

gregorian 05-29-2006 08:52 AM

Yes!!! It works. :D Thanks a lot for your help guys. Just one more doubt. Some websites run videos that cannot be displayed by the browser while using Linux.I use Opera and Firefox. On clicking on the download missing plugin, it takes me to Microsoft's website to select the operating system for download. Linux is not there in that menu. I want to know how are we supposed to play such videos in the browser itself.

I know that we have to install some mplayer plugin but when I try and look for downloads, they are all for Fedora Cora versions. I installed mplayer. Does it not come with the plugins too?


Also, flash animations do not play sounds while they run. I can only see the animations. Kindly tell me how do I solve this too.

Thank you in advance.

EDIT:

Some vidoes do not play using MPlayer. The application says that it requires some codec to run. I found this site:

http://www.codec-download.com/module...wnload&sid=134

I downloaded the file and it has some dll's in it. I read the readme and it asked me to place the files in some directories that do not even exist. How am I supposed to know where to put the codecs? Thanks again.

drkstr 05-29-2006 11:58 AM

You should get the codecs from the MPlayer site and download/compile MPlayer from the source for the most usability of codecs. Follow the directions on the MPlayer site for how to do this.

You can get the MPlayer plugin here. Either of the rpm's might work for you but I would suggest building from the source. Let me know if you need any help with this.



regards,
...drkstr

jojojo 05-29-2006 01:07 PM

Yo gregorian, I suggest that the next time you want to install something, try install it using yum. Because yum helps to install all the dependency packages.

Anyway, try to browse to this HOW-TO web page for installing programs using yum: http://stanton-finley.net/fedora_cor...tes.html#Flash

perfect_circle 05-29-2006 05:23 PM

Quote:

Originally Posted by jojojo
Yo gregorian, I suggest that the next time you want to install something, try install it using yum. Because yum helps to install all the dependency packages.

Anyway, try to browse to this HOW-TO web page for installing programs using yum: http://stanton-finley.net/fedora_cor...tes.html#Flash

Yum with redhat 9?
I think you are missing something

jojojo 05-30-2006 12:46 AM

Oooppsss... sorry. didn't realise he was using RH9. Anyway, try to upgrade to FC5 man....:D

gregorian 05-31-2006 03:33 AM

I downloaded the essential codecs package from here:

http://www.mplayerhq.hu/design7/dload.html

I unzipped the archive and found a lot of files. I opened the Readme file and found this:

Code:

These are binary codecs for use with MPlayer. They are useless for normal
Windows players (like WMP, QuickTime, RealPlayer, ...) as they only contain
the DLLs without installer and other fancy stuff needed to use them with
common Windows players.

Put the files contained in this archive in a directory where MPlayer will find
them. The default directory is /usr/local/lib/codecs/ ($prefix/lib/codecs/) if
you are compiling from source, but you can change that value by passing the
'--with-codecsdir' option to './configure'.

If you use a prebuilt MPlayer package it will most likely be /usr/lib/codecs,
see the documentation of your package for details.

In the past /usr/local/lib/win32 or /usr/lib/win32 was the default directory,
some packages as well as a few other Unix players like xine and avifile still
use it, refer to their documentation for further details.

I could not find any of the folders mentioned above. I read the documentation but could not get any information regarding installing codecs. What am I supposed to do now? Note that I use RH9.

Thank you for your help.

ethics 05-31-2006 03:44 AM

Create the directory /usr/local/lib/codecs/ and put the files in there, as this is where MPlayer and some other media players look, as the README states, players such as Xine still use another path so you could create symlinks to there if you use a package such as xine.

drkstr 05-31-2006 08:42 AM

also, you might want to get the "all-codec" package if you want full video support. I don't think the essential codec package support some of the newer wmv video codecs a long with a few other things.

regards,
...drkstr


All times are GMT -5. The time now is 03:48 AM.