[MPlayer-users] Could not open/initialize audio device -> no sound.

Dan dan at enthalpy.homelinux.org
Sun Mar 7 00:58:09 CET 2004


Hi all.

A fair while ago now ( after a medium-sized system upgrade under Gentoo 
), mplayer stopped working with alsa. It still works with oss.

I've just set up another box for my bedroom - a little 333Mhz Celeron :) 
I've got alsa up and running ( 2.6.3-gentoo kernel ), but I can't get 
mplayer to work with -ao alsa9 OR -ao oss.

I can play wav files with aplay and mp3s with mpg123 - as root AND as a 
normal user. Yes all permissions are correct ( well maybe stuff 
shouldn't be owned by me - I'm not sure how that happened ... I swear I 
didn't 'chown' stuff ).

Some info on system:

bash-2.05b$ ls -l
total 0
crwxrwxrwx    1 dan      audio     14,  12 Jan  1  1970 adsp
crwxrwxrwx    1 dan      audio     14,   4 Jan  1  1970 audio
crwxrwxrwx    1 dan      audio     14,   9 Jan  1  1970 dmmidi
crwxrwxrwx    1 dan      audio     14,   3 Jan  1  1970 dsp
crwxrwxrwx    1 dan      audio     14,   2 Jan  1  1970 midi
crwxrwxrwx    1 dan      audio     14,   0 Jan  1  1970 mixer
crwxrwxrwx    1 dan      audio     14,   1 Jan  1  1970 sequencer
crwxrwxrwx    1 dan      audio     14,   8 Jan  1  1970 sequencer2
bash-2.05b$

bash-2.05b$ lsmod
Module                  Size  Used by
floppy                 58736  0
snd_seq_midi            8416  0
snd_ens1371            19812  0
snd_rawmidi            24864  2 snd_seq_midi,snd_ens1371
snd_ac97_codec         63428  1 snd_ens1371
snd_seq_oss            34592  0
snd_seq_midi_event      7680  2 snd_seq_midi,snd_seq_oss
snd_seq                55792  5 snd_seq_midi,snd_seq_oss,snd_seq_midi_event
snd_seq_device          8008  4 snd_seq_midi,snd_rawmidi,snd_seq_oss,snd_seq
snd_pcm_oss            54596  0
snd_pcm               101320  2 snd_ens1371,snd_pcm_oss
snd_page_alloc         12100  1 snd_pcm
snd_timer              25892  2 snd_seq,snd_pcm
snd_mixer_oss          20064  1 snd_pcm_oss
snd                    55044  12 
snd_seq_midi,snd_ens1371,snd_rawmidi,snd_ac97_codec,snd_seq_oss,snd_seq_midi_event,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
nfs                    99888  3
lockd                  61640  2 nfs
sunrpc                134312  6 nfs,lockd
hid                    25024  0
uhci_hcd               32304  0
usbcore               104124  4 hid,uhci_hcd
rtc                    12600  0
psmouse                19688  0
apm                    17772  1
intel_agp              17052  1
agpgart                31880  1 intel_agp
pcspkr                  3464  0
eepro100               26540  0
ide_cd                 40612  0
cdrom                  37980  1 ide_cd
bash-2.05b$

lspci output relating to soundcard ( if it matters ):

0000:00:12.0 Multimedia audio controller: Creative Labs Ectiva EV1938
        Subsystem: Creative Labs: Unknown device 5938
        Flags: bus master, slow devsel, latency 96, IRQ 11
        I/O ports at 1000
        I/O ports at 1080 [size=32]
        Capabilities: [dc] Power Management version 1

The only sound-related line in 'dmesg' output is:

AC'97 0 analog subsections not ready

which happens when I load up the alsa modules. I'm pretty sure it's 
harmless...

Anyway, since aplay and mpg123 are working fine, I'm thinking I have an 
mplayer problem.

Output from 'mplayer -v -vo x11 -ao alsa9 
midnight_oil_-_beds_are_burning.mpg':

Input config file /usr/share/mplayer/input.conf parsed: 53 binds
get_path('midnight_oil_-_beds_are_burning.mpg.conf') -> 
'/home/dan/.mplayer/midnight_oil_-_beds_are_burning.mpg.conf'

Playing midnight_oil_-_beds_are_burning.mpg.
[file] File size is 48512516 bytes
STREAM: [file] midnight_oil_-_beds_are_burning.mpg
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0 
Cache fill: 12.30% (1032192 bytes)    Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x84cd248 
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x84cd248 
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x84cd248 
Checking for REAL
DEMUXER: freeing demuxer at 0x84cd248 
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x84cd248 
DEMUXER: freeing demuxer at 0x84cdb80 
Searching demuxer type for filename midnight_oil_-_beds_are_burning.mpg 
ext: .mpg
Checking for MOV
DEMUXER: freeing demuxer at 0x84cdb80 
Checking for VIVO
header block 1 size: 0
DEMUXER: freeing demuxer at 0x84cdb80 
DEMUXER: freeing demuxer at 0x84cdb80 
DEMUXER: freeing demuxer at 0x84cdb80 
DEMUXER: freeing demuxer at 0x84cdb80 
DEMUXER: freeing demuxer at 0x84cdb80 
Checking for PVA
DEMUXER: freeing demuxer at 0x84cdb80 
Checking for MPEG-TS...
TRIED UP TO POSITION 79292, FOUND 47, packet_size= 0, SEEMS A TS? 0
DEMUXER: freeing demuxer at 0x84cdb80 
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=553648376
LMLM4 Stream Format not found
DEMUXER: freeing demuxer at 0x84cdb80 
system stream synced at 0xB (0)!
==> Found video stream: 0
MPEG-PS file format detected.
==> Found audio stream: 0
Searching for sequence header... OK!
VIDEO:  MPEG1  352x240  (aspect 12)  29.970 fps  1150.0 kbps (143.8 kbyte/s)
[V] filefmt:2  fourcc:0x10000001  size:352x240  fps:29.97  ftime:=0.0334
get_path('sub/') -> '/home/dan/.mplayer/sub/'
get_path('default.sub') -> '/home/dan/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using Pentium optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer II, 44100 Hz 224 kbit Stereo, BPF: 732
Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 28000->176400 (224.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local 
display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
Disabling DPMS
DPMSDisable stat: 1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 240 (preferred csp: Mpeg PES)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 
and bps = 2
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
Could not open/initialize audio device -> no sound.
Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: mp3lib
Audio: no sound
Freeing 0 unused audio chunks
Starting playback...
VDec: vo config request - 352 x 240 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (352x240->352x264,flags=0,'MPlayer',0x32315659)
VO: [x11] 352x240 => 352x264 Planar YV12
VO: Description: X11 ( XImage/Shm )
VO: Author: Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
Sharing memory.
No accelerated colorspace conversion found
SwScaler: using unscaled Planar YV12 -> BGR 32-bit special converter
*** [vo] Allocating mp_image_t, 352x240x12bpp YUV planar, 126720 bytes
*** [vo] Allocating mp_image_t, 352x240x12bpp YUV planar, 126720 bytes
*** [vo] Allocating mp_image_t, 352x240x12bpp YUV planar, 126720 bytes
uninit video: libmpeg2  0.0% 0 0 82%%
DEMUXER: freeing demuxer at 0x84cdb80 
DEMUXER: freeing sh_audio at 0x84ceec0 
DEMUXER: freeing sh_video at 0x84ce520 
Successfully enabled DPMS
vo: uninit ...

Exiting... (Quit)
bash-2.05b$


Output from '

Input config file /usr/share/mplayer/input.conf parsed: 53 binds
get_path('midnight_oil_-_beds_are_burning.mpg.conf') -> 
'/home/dan/.mplayer/midnight_oil_-_beds_are_burning.mpg.conf'

Playing midnight_oil_-_beds_are_burning.mpg.
[file] File size is 48512516 bytes
STREAM: [file] midnight_oil_-_beds_are_burning.mpg
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
CACHE_PRE_INIT: 0 [0] 0  pre:0  eof:0 
Cache fill:  0.00% (0 bytes)    Checking for YUV4MPEG2
DEMUXER: freeing demuxer at 0x84cd248 
ASF_check: not ASF guid!
DEMUXER: freeing demuxer at 0x84cd248 
Checking for NuppelVideo
DEMUXER: freeing demuxer at 0x84cd248 
Checking for REAL
DEMUXER: freeing demuxer at 0x84cd248 
Checking for SMJPEG
DEMUXER: freeing demuxer at 0x84cd248 
DEMUXER: freeing demuxer at 0x84cdb80 
Searching demuxer type for filename midnight_oil_-_beds_are_burning.mpg 
ext: .mpg
Checking for MOV
DEMUXER: freeing demuxer at 0x84cdb80 
Checking for VIVO
header block 1 size: 0
DEMUXER: freeing demuxer at 0x84cdb80 
DEMUXER: freeing demuxer at 0x84cdb80 
DEMUXER: freeing demuxer at 0x84cdb80 
DEMUXER: freeing demuxer at 0x84cdb80 
DEMUXER: freeing demuxer at 0x84cdb80 
Checking for PVA
DEMUXER: freeing demuxer at 0x84cdb80 
Checking for MPEG-TS...
TRIED UP TO POSITION 79292, FOUND 47, packet_size= 0, SEEMS A TS? 0
DEMUXER: freeing demuxer at 0x84cdb80 
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=553648376
LMLM4 Stream Format not found
DEMUXER: freeing demuxer at 0x84cdb80 
system stream synced at 0xB (0)!
==> Found video stream: 0
MPEG-PS file format detected.
==> Found audio stream: 0
Searching for sequence header... OK!
VIDEO:  MPEG1  352x240  (aspect 12)  29.970 fps  1150.0 kbps (143.8 kbyte/s)
[V] filefmt:2  fourcc:0x10000001  size:352x240  fps:29.97  ftime:=0.0334
get_path('sub/') -> '/home/dan/.mplayer/sub/'
get_path('default.sub') -> '/home/dan/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using Pentium optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer II, 44100 Hz 224 kbit Stereo, BPF: 732
Channels: 2, copyright: No, original: No, CRC: No, emphasis: 0
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 28000->176400 (224.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local 
display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
Disabling DPMS
DPMSDisable stat: 1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 352 x 240 (preferred csp: Mpeg PES)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=44100Hz, nch = 2, format = 0x00000001 
and bps = 2
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
Could not open/initialize audio device -> no sound.
Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: mp3lib
Audio: no sound
Freeing 0 unused audio chunks
Starting playback...
VDec: vo config request - 352 x 240 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (352x240->352x264,flags=0,'MPlayer',0x32315659)
VO: [x11] 352x240 => 352x264 Planar YV12
VO: Description: X11 ( XImage/Shm )
VO: Author: Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
Sharing memory.
No accelerated colorspace conversion found
SwScaler: using unscaled Planar YV12 -> BGR 32-bit special converter
*** [vo] Allocating mp_image_t, 352x240x12bpp YUV planar, 126720 bytes
*** [vo] Allocating mp_image_t, 352x240x12bpp YUV planar, 126720 bytes
*** [vo] Allocating mp_image_t, 352x240x12bpp YUV planar, 126720 bytes
uninit video: libmpeg2  0.0% 0 0 96%%
DEMUXER: freeing demuxer at 0x84cdb80 
DEMUXER: freeing sh_audio at 0x84ceec0 
DEMUXER: freeing sh_video at 0x84ce520 
Successfully enabled DPMS
vo: uninit ...

Exiting... (Quit)
bash-2.05b$

So does anyone know what's up?

Dan




More information about the MPlayer-users mailing list