我有一个带 USB 声音设备的无头树莓派。我想用 VLC 播放 mp3 文件。
aplay -l 给我
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 7/7
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Device [USB Sound Device], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
我尝试以这种方式启动 vlc
cvlc --vout none --alsa-audio-device card\ 1 --play-and-exit sound.mp3
cvlc --vout none -aout usb --play-and-exit sound.mp3
cvlc --vout none --alsa-audio-device DEV=1 --play-and-exit sound.mp3
没有工作。