LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-02-2006, 12:50 PM   #1
rocksniffer
Member
 
Registered: Apr 2005
Location: Houston
Distribution: mandrake
Posts: 79

Rep: Reputation: 15
problems with mplayer after source install or ffmpeg


I posted this in the mandriva forum but so far I am still having problems. I thought I would seek a wider audience here.

I replaced a urpmi ffmpeg install with a source install from CVS.

Here is the command I used to install ffmpeg cvs:
./configure --prefix=/usr --libdir=/usr/lib --enable-mp3lame --enable-libogg --enable-vorbis --enable-theora --enable-faad --enable-faadbin --enable-faac --enable-xvid --enable-a52 --enable-a52bin --enable-shared --enable-gpl

The default locations for libs and executables of ffmpeg are different than mandriva rpms, so, in the configure command above I put the libs and executables in the same location as the original rpm install; I didn't worry about where the mans went.

I tested it using this sample command from the ffmpeg site substituting my own vob. It works fine:

ffmpeg -i snatch_1.vob -f avi -vcodec mpeg4 -b 800 -g 300 -bf 2 -acodec mp3 -ab 128 snatch.avi

Since the source install of ffmpeg my urpmi install of mencoder and mplayer are out-of-wack. Running a command I had used before:

mencoder -o test3.avi -ovc lavc -oac lavc -lavcopts vcodec=msmpeg4v2:vhq:acodec=mp3:abitrate=64 -srate 44100 my_office.mov

it bails saying it can't find codec mp3 through libavcodec, but the same command using mp3lame works fine:

mencoder -o output.avi -ovc lavc -lavcopts vcodec=msmpeg4v2:vhq -oac mp3lame -lameopts abr:br=64 -srate 44100 my_office.mov

It must be finding libavcodec to get the msmpeg4v2 codec why can't it find the mp3 codec?

Also, There has developed some quirkiness playing .wmv and .mov files. Xine will play .wmv clips fine. Mplayer plays wmv clips choppy with an error indicating that an audio device /dev/dsp can't be opened and may be busy. Xine will start to play a .mov but bails out in the first half second. Mplayer segfaults on the same .mov clip, again with the /dev/dsp error message:

Building audio filter chain for 12000Hz/1ch/s16le -> 0Hz/0ch/??...
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
alsa-init: 1 soundcard found, using: default
alsa: 12000 Hz/1 channels/2 bpf/8192 bytes buffer/Signed 16 bit Little Endian
AO: [alsa] 12000Hz 1ch s16le (2 bytes per sample)
Building audio filter chain for 12000Hz/1ch/s16le -> 12000Hz/1ch/s16le...
Starting playback...
Segmentation fault
[dad@localhost clips]$

I have the win32 codecs installed in /usr/lib/win32. though mplayer doesn't need them to play a .mov. I have a mandriva 2006 fresh install on another computer that plays .mov clips fine without it.

I even tried to go back to the beginning by uninstalling mplayer, mencoder, and ffmpeg and reinstalling all 3 from urpmi, but the problem persists. I have apparently corrupted something.

In summary I have two problems:
1. the enability of mencoder to use mp3 codec in libavcodec.
2. the enability of xine to playback mov clips, and the difficulty or enability of mplayer to playback wmv or QT clips, respectively.

I will exist in great admiration of anyone who can point to the problem.

rock
 
Old 03-02-2006, 10:30 PM   #2
rocksniffer
Member
 
Registered: Apr 2005
Location: Houston
Distribution: mandrake
Posts: 79

Original Poster
Rep: Reputation: 15
A little piece of evidence provided by Adam on the mandriva forum:

While mplayer myfile.mov segfaults, mplayer -ao arts myfile.mov plays fine. It seems mplayer has a problem with the LAVC audio codecs only.

rock
 
Old 03-03-2006, 04:15 AM   #3
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
I don't claim any great insight into this, but your installation of ffmpeg from source could well have corrupted your Mandriva setup, especially if you redirected it from its default install in /usr/local.

You can probably fix up mplayer by just recompiling from source. The mplayer configure script grabs all sorts of system info to help decide what features get built in.

Don't know about xine - I have never compiled it from source.

If you can ID the files that ffmpeg installed (especially in /usr/lib) and remove them that might help. Check time stamps maybe?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ask : ffmpeg and MPlayer imamwib Linux - Software 0 10-21-2005 07:11 PM
ffmpeg problems - no audio Veteq Linux - Software 2 08-14-2005 10:04 PM
Mplayer how to install FFmpeg mooreted Mandriva 11 02-18-2005 02:11 AM
ffmpeg vs mplayer Lobais Linux - Software 1 01-12-2005 12:47 PM
Mplayer Source Code Install Problems thcmwz Linux - Software 5 11-08-2003 05:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration