LinuxQuestions.org
Visit Jeremy's Blog.
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 08-15-2005, 03:16 AM   #1
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Rep: Reputation: 31
inoperable mplayer audio


I consider this more of a software problem rather than a hardware problem since I have gotten audio to work in mplayer before.

This is the error of particular significance...
Could not open/initialize audio device -> no sound.

I have Google'd around for the error, as well as searched around LQ quite a bit, with no substantial clues as to what is causing this.

I think the following may be an important clue, although I have no idea what the implications of "drain_dac, dma timeout" are.

$ dmesg | grep audio
i810_audio: Audio Controller supports 2 channels.
i810_audio: Defaulting to base 2 channel mode.
i810_audio: Resetting connection 0
i810_audio: AC'97 codec 0 supports AMAP, total channels = 2
i810_audio: drain_dac, dma timeout?
i810_audio: drain_dac, dma timeout?
i810_audio: drain_dac, dma timeout?
i810_audio: drain_dac, dma timeout?
i810_audio: drain_dac, dma timeout?
i810_audio: drain_dac, dma timeout?
i810_audio: drain_dac, dma timeout?
i810_audio: drain_dac, dma timeout?
i810_audio: drain_dac, dma timeout?
i810_audio: drain_dac, dma timeout?
i810_audio: drain_dac, dma timeout?
i810_audio: drain_dac, dma timeout?
i810_audio: drain_dac, dma timeout?
i810_audio: drain_dac, dma timeout?
i810_audio: drain_dac, dma timeout?


I have done a chmod 777 on both /dev/dsp and /dev/mixer, with no luck (non-expectantly). Sound is inoperable on all file formats I've tested; which includes wmv, mpg and avi. In fact, avi files fail to even play.

Is it worth a try recompiling mplayer?

After many tries at compiling it several months ago, I gave up and ended up installing it with apt-get. Then, I decided to add essential-codecs, so I uninstalled mplayer-586 and compiled from source with no difficulties ?whatsoever?. Ever since then (I think) it has been having problems with audio. Would the codecs work if I were to install mplayer using apt-get...?


Thanks
 
Old 08-15-2005, 06:02 AM   #2
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
http://www.linuxquestions.org/questi...der=descending

read thru these..........dma timeout may pertain to your hard disk (direct memory access)......
 
Old 08-15-2005, 08:55 AM   #3
Valhalla
Member
 
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
Which audio output sink are you attempting to use. For instance, aRts takes exclusive control of alsa, and as such mplayer -ao alsa foo.mp3 will fail since the alsa resource is busy. Try mplayer -ao help and then picking a different audio sink from the list that -ao help generates.
 
Old 08-15-2005, 03:41 PM   #4
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Apparently alsa was not installed on my system, so I installed it as well as its dependency, with apt-get. I also installed the alsa-module for my kernel.

Here's the options for mplayer -ao help:
mpegpes DVB audio output
oss OSS/ioctl audio output
esd EsounD audio output
nas NAS audio output
null Null audio output
pcm RAW PCM/WAVE file writer audio output

Quote:
Which audio output sink are you attempting to use.
I don't know... how do I find out?

I don't know which to select. Should aRts be available in the list?


[ edit ]
One other thing to point out...
I also receive the message Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts. but I don't know where the startup script is in Debian.

Last edited by verbose; 08-15-2005 at 03:45 PM.
 
Old 08-15-2005, 04:10 PM   #5
Valhalla
Member
 
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
Odd, if you installed alsa it should now appear in the list, though oss works ok. My hunch would be to use -ao esd, though you want to make sure esound is al ready started before attempting to use it. If it works you can make the changes permanent in ~/.mplayer/config

p.s. I just threw aRts out as an example
 
Old 08-15-2005, 10:40 PM   #6
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
How do I make sure esound is started?
Whenever I try to select a specific audio output, it lists off mplayer's basic options and keys for some reason. Therefore, I've just added ao=esd to mplayer's config file. Will this work the same as doing it from the command line?

Yep... alsa is not in the list for some reason.
 
Old 08-16-2005, 07:16 AM   #7
Valhalla
Member
 
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
perhaps there was some confusion, mplayer -ao esd dosn't actually do anything. You would have to do mplayer -ao esd foo.mp3. I'm not sure, you on debian, on my computer esound has an init script, but you can start it from the command line by typing esd. Also, some programs can start it automatically.
 
Old 08-16-2005, 12:56 PM   #8
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Hmm, I got it to work by starting esd and typing mplayer -ao esd foo.wmv. In fact, once esd is started, I can simply type mplayer foo.wmv.

Now I just have to find some way to keep esd started.
 
Old 08-16-2005, 12:59 PM   #9
Valhalla
Member
 
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
You might want to check your init scripts for something that looks like esd, and if its not there, you could always write your own and add it to the default runlevel. Glad you got it working though.
 
Old 08-16-2005, 03:32 PM   #10
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
An init script for esd doesn't appear to exist. Is it difficult to write an init script from scratch? I've only been using Debian for 3 months or so.
 
Old 08-16-2005, 04:36 PM   #11
Valhalla
Member
 
Registered: Nov 2004
Location: Atlanta
Distribution: Gentoo 2005.1, Ubuntu 5.10
Posts: 267

Rep: Reputation: 30
It shouldn't be, all you need to do is use an existing one as a template.
 
Old 08-20-2005, 03:54 AM   #12
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Sorry to revive this thread (as it is now unrelated to my difficulties with mplayer) but I am now not receiving any sound whatsoever from vlc, mplayer and totem. Also, when I do a dmesg | grep audio, nothing in returned. My system was shutdown due to a power outage and now my soundcard is apparently going undetected.

However, lspci reveals my audio controller just fine.

Last edited by verbose; 08-20-2005 at 03:56 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Slow machine and inoperable new Philips DVD-RW 273chris SUSE / openSUSE 1 06-30-2005 09:35 PM
Inoperable scanner with Suse 9.2 grabro SUSE / openSUSE 6 02-03-2005 04:50 PM
Linksys WPC54GS cardbus on Suse 9.1 inoperable HisKid Linux - Wireless Networking 1 08-13-2004 04:08 PM
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 04:07 PM.

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