[MPlayer-users] Error in manpage (alsa hw device )

Heine Laursen maillist at gozar.dynu.com
Wed Jan 12 19:32:05 CET 2005


Hi.

I have descovered that the alsa hw device specifikation is wrong in the 
man page.

> -ao <driver1[:suboption1[=value]:...],driver2,...[,]>
>               Specify a priority list of audio output drivers to be used.
> 
>        If the list has a trailing ',' it will fall back to drivers not listed on the command line.   Subop-
>        tions are optional and can mostly be omitted.
>        NOTE: See -ao help for a list of compiled-in drivers.
> 
>        EXAMPLE:
>                  -ao alsa,oss,
>                       Try the ALSA driver, then the OSS driver, then others.
>                  -ao alsa:mmap:noblock:device=hw#0.3
this should be	   -ao alsa:mmap:noblock:device=hw=0.3

>                       Sets noblock-mode, mmap-mode and the device-name as first card, fourth device.
> 
>        FIXME:  Document  suboptions  for sdl, arts, esd, jack, nas, macosx, sgi, sun, win32, dxr2, mpegpes,
>        null, pcm, plugin.
> 
>        Available audio output drivers are:
> 
>        alsa
>               ALSA 0.9/1.x audio output driver.
>                  mmap
>                       Sets experimental mmap-mode (does not work for more than 2 channels).
>                  noblock
>                       Sets noblock-mode.
>                  device=<device>
>                       Sets the device name.  Replace any ',' with '.' and any ':' with '#' in the ALSA  de-
This should be 		Sets the device name.  Replace any ',' with '.' and any 
':' with '=' in the ALSA  de-

>                       vice name.

The following don't give any sound

> mplayer -ao alsa:device=hw#1.0 file.avi
> MPlayer 1.0pre6-3.3.4 (C) 2000-2004 MPlayer Team
> CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton (Family: 6, Stepping: 0)
> Detected cache-line size is 64 bytes
> CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
> Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
> 
> 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 file.avi.
> AVI file format detected.
> VIDEO:  [XVID]  512x384  16bpp  29,970 fps  978,1 kbps (119,4 kbyte/s)
> ==========================================================================
> Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
> AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 14000->192000 (112,0 kbit)
> Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
> ==========================================================================
> vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0" => local display)
> ==========================================================================
> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
> Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
> ==========================================================================
> Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
> AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
> AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
> alsa-init: soundcard set to hw#1,0
> ALSA lib pcm.c:1975:(snd_pcm_open_noupdate) Unknown PCM hw#1,0
> alsa-init: playback open error: No such file or directory
> Could not open/initialize audio device -> no sound.
> Audio: no sound
> Starting playback...
> VDec: vo config request - 512 x 384 (preferred csp: Planar YV12)
> Could not find matching colorspace - retrying with -vf scale...
> Opening video filter: [scale]
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is 1,33:1 - prescaling to correct movie aspect.
> SwScaler: using unscaled Planar YV12 -> BGR 24-bit special converter
> VO: [gl2] 512x384 => 512x384 BGR 24-bit
> Xlib:  extension "XFree86-DRI" missing on display ":0.0".
> [gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
> [gl2] antialiasing off
> [gl2] bilinear linear
> V:   1,0  31/ 31 28% 39%  0,0% 0 0
> Exiting... (Quit)

but this give sound

> mplayer -ao alsa:device=hw=1.0 file.avi
> MPlayer 1.0pre6-3.3.4 (C) 2000-2004 MPlayer Team
> CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton (Family: 6, Stepping: 0)
> Detected cache-line size is 64 bytes
> CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
> Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
> 
> 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 file.avi.
> AVI file format detected.
> VIDEO:  [XVID]  512x384  16bpp  29,970 fps  978,1 kbps (119,4 kbyte/s)
> ==========================================================================
> Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
> AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 14000->192000 (112,0 kbit)
> Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
> ==========================================================================
> vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0" => local display)
> ==========================================================================
> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
> Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
> ==========================================================================
> Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
> AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
> AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
> alsa-init: soundcard set to hw:1,0
> alsa: 48000 Hz/2 channels/4 bpf/65536 bytes buffer/Signed 16 bit Little Endian
> AO: [alsa] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
> Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
> Starting playback...
> VDec: vo config request - 512 x 384 (preferred csp: Planar YV12)
> Could not find matching colorspace - retrying with -vf scale...
> Opening video filter: [scale]
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is 1,33:1 - prescaling to correct movie aspect.
> SwScaler: using unscaled Planar YV12 -> BGR 24-bit special converter
> VO: [gl2] 512x384 => 512x384 BGR 24-bit
> Xlib:  extension "XFree86-DRI" missing on display ":0.0".
> [gl2] You have OpenGL >= 1.2 capable drivers, GOOD (16bpp and BGR is ok!)
> [gl2] antialiasing off
> [gl2] bilinear linear
> alsa-uninit: pcm closed-0,005 ct:  0,036  34/ 34 28% 40%  0,9% 7 0
> 
> Exiting... (Quit)

Sincerley
Heine Laursen




More information about the MPlayer-users mailing list