LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   MPlayer asks for video libraries when commanded to play FLAC file!!! (https://www.linuxquestions.org/questions/slackware-14/mplayer-asks-for-video-libraries-when-commanded-to-play-flac-file-906796/)

stf92 10-06-2011 02:38 PM

MPlayer asks for video libraries when commanded to play FLAC file!!!
 
Hi: I do 'mplayer some_flac_file.flac' and then he complains about not finding libfaac.so.0. Absurd. This is a video library. If I had put some video file filename in the command line, I understand. But this seems really odd to me. I downloaded mplayer from Slackbuilds, it compiled perfectly well, and produced a package named MPlayer-1.0rc2-custom-3_SBo.tgz. I installed the package containing the libfaac library, and now he asks for libx264.so.56, another video library. How can this be?

My distribution is 12.0, kernel 2.6.21.5. The MPlayer version I cannot know because 'mplayer --version' only outputs the error message.

ponce 10-06-2011 02:50 PM

you built the MPlayer package on a host with faac, x264 and whatever installed, so its binary linked to those libraries (they are autodetected by configure, you can verify to what's linked with "ldd /usr/bin/mplayer"): to do it short, if you install the resulting tgz on another machine, the packages of the libraries are needed too.

stf92 10-06-2011 03:35 PM

I would never had suspect that. Thanks a lot.

Alien Bob 10-06-2011 03:38 PM

Quote:

Originally Posted by stf92 (Post 4491815)
Hi: I do 'mplayer some_flac_file.flac' and then he complains about not finding libfaac.so.0. Absurd. This is a video library. If I had put some video file filename in the command line, I understand. But this seems really odd to me. I downloaded mplayer from Slackbuilds, it compiled perfectly well, and produced a package named MPlayer-1.0rc2-custom-3_SBo.tgz. I installed the package containing the libfaac library, and now he asks for libx264.so.56, another video library. How can this be?

My distribution is 12.0, kernel 2.6.21.5. The MPlayer version I cannot know because 'mplayer --version' only outputs the error message.

I built you a MPlayer package for Slackware 12.0, based on quite recent sources (that old slackbuilds.org version is just old). Try it here: http://slackware.com/~alien/test_12.0/

It plays FLAC audio just fine:

Code:

root@qemu12:~/build# mplayer /tmp/808_Cymbal.flac
MPlayer 20110831-4.1.2 (C) 2000-2011 MPlayer Team

Playing /tmp/808_Cymbal.flac.
Audio only file format detected.
Load subtitles in /tmp/
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 1 ch, s16le, 288.9 kbit/40.94% (ratio: 36113->88200)
Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio)
==========================================================================
AO: [oss] 44100Hz 1ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:  0.6 (00.6) of 0.9 (00.9)  0.1%


Exiting... (End of file)
root@qemu12:~/build#

No additional packages are required.

Eric

stf92 10-06-2011 04:57 PM

It's a dream become reality. Thanks, thanks a lot. I am downloading it now. I always had a problem with mplayer: it played everything well, both audio and video, except CDDA. I'll let LQ readers know about your mplayer's performance playing CDs. Many regards.

stf92 10-06-2011 06:09 PM

This mplayer is playing flac files well. But curiously enough,
Code:

semoi@darkstar:~$ mplayer cdda://1
MPlayer 20110831-4.1.2 (C) 2000-2011 MPlayer Team

Playing cdda://1.
No stream found to handle url cdda://1


Exiting... (End of file)

It's very odd. It really does not matter, because I have other CD players, although with mplayer I could do something like this:

mplayer cdda://3 -ss 9 -endpos 10

This would play from position 9s up to position 9 + 10 = 19s. This I cannot do with any command line CD player that I know.


All times are GMT -5. The time now is 02:01 PM.