Discussion:
How to set audio device for mpv in slack 15.0
(too old to reply)
root
2024-01-01 00:46:10 UTC
Permalink
I can't find an audio-device that works for mpv in
my new 15.0 installation. For mplayer the audio
device that works is -ao alsa:device=plughw=1.3

I have tried mpv --audio-device=help
and I get:
'auto' (Autoselect device)
'pulse/alsa_output.pci-0000_0b_00.1.hdmi-stereo' (Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series] Digital Stereo (HDMI))
'pulse/alsa_output.pci-0000_00_1b.0.iec958-stereo' (Built-in Audio Digital Stereo (IEC958))
'alsa' (Default (alsa))
'alsa/lavrate' (Rate Converter Plugin Using Libav/FFmpeg Library)
'alsa/samplerate' (Rate Converter Plugin Using Samplerate Library)
'alsa/speexrate' (Rate Converter Plugin Using Speex Resampler)
'alsa/oss' (Open Sound System)
'alsa/speex' (Plugin using Speex DSP (resample, agc, denoise, echo, dereverb))
'alsa/upmix' (Plugin for channel upmix (4,6,8))
'alsa/vdownmix' (Plugin for channel downmix (stereo) with a simple spacialization)
'alsa/sysdefault:CARD=Intel' (HDA Intel, ALC1200 Analog/Default Audio Device)
'alsa/front:CARD=Intel,DEV=0' (HDA Intel, ALC1200 Analog/Front output / input)
'alsa/surround21:CARD=Intel,DEV=0' (HDA Intel, ALC1200 Analog/2.1 Surround output to Front and Subwoofer speakers)
'alsa/surround40:CARD=Intel,DEV=0' (HDA Intel, ALC1200 Analog/4.0 Surround output to Front and Rear speakers)
'alsa/surround41:CARD=Intel,DEV=0' (HDA Intel, ALC1200 Analog/4.1 Surround output to Front, Rear and Subwoofer speakers)
'alsa/surround50:CARD=Intel,DEV=0' (HDA Intel, ALC1200 Analog/5.0 Surround output to Front, Center and Rear speakers)
'alsa/surround51:CARD=Intel,DEV=0' (HDA Intel, ALC1200 Analog/5.1 Surround output to Front, Center, Rear and Subwoofer speakers)
'alsa/surround71:CARD=Intel,DEV=0' (HDA Intel, ALC1200 Analog/7.1 Surround output to Front, Center, Side, Rear and Woofer speakers)
'alsa/iec958:CARD=Intel,DEV=0' (HDA Intel, ALC1200 Digital/IEC958 (S/PDIF) Digital Audio Output)
'alsa/usbstream:CARD=Intel' (HDA Intel/USB Stream Output)
'alsa/hdmi:CARD=HDMI,DEV=0' (HDA ATI HDMI, HDMI 0/HDMI Audio Output)
'alsa/usbstream:CARD=HDMI' (HDA ATI HDMI/USB Stream Output)

I think the one I should use is the next-to-last 'alsa/hdmi:CARD=HDMI,DEV=0' (HDA ATI HDMI, HDMI 0/HDMI Audio Output)
but I have tried a number of ways to set card=1, device=3 and none work.
I have tried others in the list, but nothing works.

If you use mpv with hdmi audio out, can you please show
me your mpv invocation?
Thanks.
RinaldiJ
2024-01-01 03:51:24 UTC
Permalink
Post by root
I can't find an audio-device that works for mpv in
my new 15.0 installation. For mplayer the audio
device that works is -ao alsa:device=plughw=1.3
I have tried mpv --audio-device=help
'auto' (Autoselect device)
'pulse/alsa_output.pci-0000_0b_00.1.hdmi-stereo' (Cedar HDMI Audio [Radeon HD 5400/6300/7300 Series] Digital Stereo (HDMI))
'pulse/alsa_output.pci-0000_00_1b.0.iec958-stereo' (Built-in Audio Digital Stereo (IEC958))
'alsa' (Default (alsa))
'alsa/lavrate' (Rate Converter Plugin Using Libav/FFmpeg Library)
'alsa/samplerate' (Rate Converter Plugin Using Samplerate Library)
'alsa/speexrate' (Rate Converter Plugin Using Speex Resampler)
'alsa/oss' (Open Sound System)
'alsa/speex' (Plugin using Speex DSP (resample, agc, denoise, echo, dereverb))
'alsa/upmix' (Plugin for channel upmix (4,6,8))
'alsa/vdownmix' (Plugin for channel downmix (stereo) with a simple spacialization)
'alsa/sysdefault:CARD=Intel' (HDA Intel, ALC1200 Analog/Default Audio Device)
'alsa/front:CARD=Intel,DEV=0' (HDA Intel, ALC1200 Analog/Front output / input)
'alsa/surround21:CARD=Intel,DEV=0' (HDA Intel, ALC1200 Analog/2.1 Surround output to Front and Subwoofer speakers)
'alsa/surround40:CARD=Intel,DEV=0' (HDA Intel, ALC1200 Analog/4.0 Surround output to Front and Rear speakers)
'alsa/surround41:CARD=Intel,DEV=0' (HDA Intel, ALC1200 Analog/4.1 Surround output to Front, Rear and Subwoofer speakers)
'alsa/surround50:CARD=Intel,DEV=0' (HDA Intel, ALC1200 Analog/5.0 Surround output to Front, Center and Rear speakers)
'alsa/surround51:CARD=Intel,DEV=0' (HDA Intel, ALC1200 Analog/5.1 Surround output to Front, Center, Rear and Subwoofer speakers)
'alsa/surround71:CARD=Intel,DEV=0' (HDA Intel, ALC1200 Analog/7.1 Surround output to Front, Center, Side, Rear and Woofer speakers)
'alsa/iec958:CARD=Intel,DEV=0' (HDA Intel, ALC1200 Digital/IEC958 (S/PDIF) Digital Audio Output)
'alsa/usbstream:CARD=Intel' (HDA Intel/USB Stream Output)
'alsa/hdmi:CARD=HDMI,DEV=0' (HDA ATI HDMI, HDMI 0/HDMI Audio Output)
'alsa/usbstream:CARD=HDMI' (HDA ATI HDMI/USB Stream Output)
I think the one I should use is the next-to-last 'alsa/hdmi:CARD=HDMI,DEV=0' (HDA ATI HDMI, HDMI 0/HDMI Audio Output)
but I have tried a number of ways to set card=1, device=3 and none work.
I have tried others in the list, but nothing works.
If you use mpv with hdmi audio out, can you please show
me your mpv invocation?
Thanks.
mpv $SOMEFILE.mkv \
--audio-device=pulse/alsa_output.pci-0000_01_00.1.hdmi-stereo

Works here. The second entry in the help output.

Rinaldi
Alexander Grotewohl
2024-01-01 06:21:32 UTC
Permalink
I can't find an audio-device that works for mpv in my new 15.0
installation. For mplayer the audio device that works is -ao
alsa:device=plughw=1.3
'auto' (Autoselect device)
'pulse/alsa_output.pci-0000_0b_00.1.hdmi-stereo' (Cedar HDMI Audio
'alsa/usbstream:CARD=Intel' (HDA Intel/USB Stream Output)
'alsa/hdmi:CARD=HDMI,DEV=0' (HDA ATI HDMI, HDMI 0/HDMI Audio Output)
'alsa/usbstream:CARD=HDMI' (HDA ATI HDMI/USB Stream Output)
I think the one I should use is the next-to-last
'alsa/hdmi:CARD=HDMI,DEV=0' (HDA ATI HDMI, HDMI 0/HDMI Audio Output)
but I have tried a number of ways to set card=1, device=3 and none work.
I have tried others in the list, but nothing works.
is this because you don't always have hdmi connected?

you could always tweak ~/.config/pulse/default.pa to set the hdmi as
default.. and already-running programs can usually be rerouted with
pavucontrol
root
2024-01-01 16:02:23 UTC
Permalink
Post by Alexander Grotewohl
you could always tweak ~/.config/pulse/default.pa to set the hdmi as
default.. and already-running programs can usually be rerouted with
pavucontrol
Thanks for responding. I got mpv to work following Rinaldi's
suggestion to try the audio-device in the help menu. I had
omitted the ' surrounding the entry. When I inserted them
the audio worked. I spend several hours yesterday working
on this and thanks to you and Rinaldi for your help.

Happy New Year to everyone.

Loading...