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 06-21-2005, 10:34 PM   #1
endfx
Member
 
Registered: May 2003
Location: Canada
Distribution: Debian
Posts: 105

Rep: Reputation: 15
Mplayer audio error


So I have decided to compile/install mplayer. Everything seemed to go fine, video plays and everything, but I get the following audio error:

"Could not open/initialize audio device -> no sound"

I'm assuming this has something to do with alsa, and it not detecting/using alsa.

I have xmms and xine. They both work perfectly so I know my soundcard/drivers are working.

I'm using Debian with kernel 2.6.8

I have also tried compiling with: ./configure --enable-gui --enable-alsa

and I also have OSS emulation installed.

Anybody have any ideas?
 
Old 06-22-2005, 12:13 AM   #2
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
you can specify the default driver in the mplayer config file.

/etc/mplayer/mplayer.conf

use:
mplayer -ao help

for a list of the available devices...I believe OSS is the default...
EXAMPLE:
Available audio output drivers:
mpegpes Mpeg-PES audio output
oss OSS/ioctl audio output
alsa ALSA-0.9.x-1.x audio output
arts aRts audio output
esd EsounD audio output
nas NAS audio output
sdl SDLlib audio output
null Null audio output
pcm RAW PCM/WAVE file writer audio output
plugin Plugin audio output

KC
 
Old 06-22-2005, 08:47 AM   #3
Texicle
Member
 
Registered: Oct 2002
Location: Northern Ontario, Canada
Distribution: Slackware 10.0
Posts: 789

Rep: Reputation: 30
Check your permissions for /dev/dsp, etc. Make sure you've got permission to access them. Also, do you have anything else running at the same time that uses sound?
 
Old 06-23-2005, 09:55 PM   #4
endfx
Member
 
Registered: May 2003
Location: Canada
Distribution: Debian
Posts: 105

Original Poster
Rep: Reputation: 15
kencaz: When I type: mplayer -ao help, I only get the following:

-------------------------------snip-------------------------------------------------
MPlayer 1.0pre7-3.3.5 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 4)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2


Available audio output drivers:
mpegpes DVB audio output
oss OSS/ioctl audio output
null Null audio output
pcm RAW PCM/WAVE file writer audio output

--------------------------------------------------------------------------------------------------------

How do you get alsa compiled compiled with mplayer?
I have tried: --enable-alsa when I do a ./configure

Texicle: I do have permission to /dev/dsp, and I get this error in all window managers (even failsafe) So I don't think its anything using the sound and the same time.

Thanks for your replies.
 
Old 06-24-2005, 02:30 AM   #5
a1ex_007
LQ Newbie
 
Registered: Mar 2005
Location: Imphal
Distribution: Fedora Core 3 x86_64
Posts: 26

Rep: Reputation: 15
MPlayer sometimes doesnt detect alsa even when it is installed. I dont know the reason. try using the OSS. It worked in my case.
 
Old 06-25-2005, 08:25 PM   #6
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
try to start alsa (from root) first:
/etc/init.d/alsa start

Then try to run:
mplayer -ao alsa

I don't really know if you have to re-compile or not... Try it without first.

KC
 
Old 06-25-2005, 10:14 PM   #7
Noth
Member
 
Registered: Jun 2005
Distribution: Debian
Posts: 356

Rep: Reputation: 30
First just use the mplayer packages from : http://sft.if.usp.br/debian-marillat/

Second, a lot of sound hardware doesn't do hardware mixing and thus only allows one app to have the device open at a time. If you have xmms, xine, etc running shut them down. If you're using a software mixer like esd or artsd tell mplayer to use that or shut them down as well.
 
  


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
Mplayer sound error: "Could not open/initialize audio device -> no sound" GTBlackwell Linux - Software 9 06-11-2008 02:23 PM
MPlayer error on DVD-Audio Disc Centinul Linux - Software 6 07-11-2005 07:07 AM
Audio in Mplayer mickeyboa Fedora 0 11-13-2004 09:11 AM
Mplayer Audio Help dmiller23462 Linux - Software 6 08-11-2004 05:21 AM
No audio with MPlayer christer Linux - Software 6 10-04-2003 08:43 PM

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

All times are GMT -5. The time now is 05:34 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