Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to set audio device for mpv in slack 15.0

26 views
Skip to first unread message

root

unread,
Dec 31, 2023, 7:46:13 PM12/31/23
to
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

unread,
Dec 31, 2023, 10:51:27 PM12/31/23
to
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

unread,
Jan 1, 2024, 1:21:35 AMJan 1
to
On Mon, 1 Jan 2024 00:46:10 -0000 (UTC), root wrote:

> 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

> '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

unread,
Jan 1, 2024, 11:02:26 AMJan 1
to
Alexander Grotewohl <ale...@gmail.com> wrote:
>
> 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.
0 new messages