LinuxQuestions.org
Help answer threads with 0 replies.
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-05-2006, 04:55 PM   #1
Beck24
LQ Newbie
 
Registered: Jan 2005
Distribution: Suse 9.1
Posts: 17

Rep: Reputation: 0
mplayer won't use alsa or esd


I have xine working fine, but I really prefer mplayer (have it working fine on two other comps) but on my laptop it doesn't seem to recognize alsa or esd so I have no sound.

Here's the audio outputs it does recognize
Quote:
matt@ubuntu:~$ mplayer -ao help
MPlayer 1.0pre7try2-3.3.6 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices (Family: 8, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx 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

matt@ubuntu:~$
None of these work because the sound card is in use by alsa I believe. Can anyone tell me how to make mplayer use alsa?

Thanx in advance!
 
Old 03-05-2006, 06:12 PM   #2
Dankles
Member
 
Registered: May 2004
Location: /dev/null
Distribution: Slackware
Posts: 245

Rep: Reputation: 31
Could you print the error that comes up? Also, Have you tried running "alsaconf".
 
Old 03-06-2006, 12:47 AM   #3
Beck24
LQ Newbie
 
Registered: Jan 2005
Distribution: Suse 9.1
Posts: 17

Original Poster
Rep: Reputation: 0
That's the problem... there is no error message.

Here's what's outputted when it's run from the command line
Quote:
MPlayer 1.0pre7try2-3.3.6 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices (Family: 8, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2


Cannot load font: /usr/share/fonts/truetype/msttcorefonts/impact.ttf
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Playing test.avi.
AVI file format detected.
VIDEO: [XVID] 624x352 12bpp 23.976 fps 987.0 kbps (120.5 kbyte/s)
Clip info:
Software: VirtualDub
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
vo: X11 running at 1280x768 with depth 24 and 32 bpp (":0.0" => local display)
xscreensaver_disable: xscreensaver wid=10485761.
Opening video filter: [hqdn3d]
Opening video filter: [pp=de]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
[PP] Using external postprocessing filter, max q = 6.
Checking audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
AF_pre: 48000Hz/2ch/s16le
[AO OSS] audio_setup: Audio card mixer does not have channel 'Master' using default.
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
Could not open/initialize audio device -> no sound.
Audio: no sound
Starting playback...
VDec: vo config request - 624 x 352 (preferred csp: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
VO: [x11] 624x352 => 624x352 Planar YV12 [zoom]
SwScaler: using unscaled Planar YV12 -> BGRA special converter
V: 2.4 59/ 59 16% 61% 0.0% 0 6
Exiting... (Quit)
I have sound for all other applications... I'm pretty sure that it's because it's not using alsa or esd for the audio out, but neither of those options are available for some reason.

I'm not sure what "alsaconf" is, but bash didn't recognize it as a command, could you elaborate please?

Last edited by Beck24; 03-06-2006 at 12:49 AM.
 
Old 03-07-2006, 10:36 AM   #4
Dankles
Member
 
Registered: May 2004
Location: /dev/null
Distribution: Slackware
Posts: 245

Rep: Reputation: 31
What distro are your running? Install the alsa utilities package for that distro, then try running it. This should fix the problem.
 
  


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
BMP, ESD, ALSA and KDE slackwarefan Slackware 3 12-21-2005 03:21 PM
Do I need arts/esd and alsa? zajelo3 Linux - Software 3 08-29-2004 09:18 PM
esd and alsa php_rocks Linux - Software 2 06-23-2004 06:48 AM
Can't use ESD with both OSS and ALSA rpat Linux - Newbie 2 03-24-2004 12:26 PM
alsa and esd php_rocks Linux - Software 0 09-18-2003 11:33 AM

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

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