[MPlayer-users] ALSA device mangling rules?

Krzysztof Duchnowski amidk75 at gmail.com
Sun Mar 2 11:41:10 CET 2014


On 01.03.2014 20:41, Christian Jaeger wrote:
> Hi

> What are the exact rules to apply to an ALS device string to get a string that

>   mencoder -tv driver=v4l2:alsa:adevice=

> or

>   mplayer -ao alsa:device=

> are accepting?



You either use playback stream name fetched from "aplay -L" (uppercase
"L"), like for me:

:~$ aplay -L
default
    Playback/recording through the PulseAudio sound server
sysdefault:CARD=Intel
    HDA Intel, AD1984 Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, AD1984 Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, AD1984 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, AD1984 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, AD1984 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, AD1984 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, AD1984 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
    HDA Intel, AD1984 Digital
    IEC958 (S/PDIF) Digital Audio Output

it is "default", "sysdefault", "front", "surround40", "surround41",
"surround50", "surround51", "surround71", "iec958":

mplayer -ao alsa:device=front test.avi



or



you use hardware device name from "aplay -l" (lowercase "L"), like for me:

:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: AD1984 Analog [AD1984 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: AD1984 Digital [AD1984 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 2: AD1984 Alt Analog [AD1984 Alt Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

it is "card:0 device:0", "card:0 device:1", "card:0 device:2":

mplayer -ao alsa:device=hw=0.0 test.avi


-- 
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.getfirefox.net/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/


More information about the MPlayer-users mailing list