I have to pick my audio device each cvid. I play. How can I pick it once & it stay?
My first thought is to add it in System Settings
- File Associations
I’m sorry, I don’t understand how you got into this situation…
by ‘cvid’ I assume you mean ‘video’, but MPV is fine for simply playing back video and audio files.
How do you even know what ‘audio device’ is being used by MPV?
More to the point - how do you mess up Manjaro so badly that it no longer works?
From the menu, you can type ‘Audio’ to get the Sound window open from which you can select your Playback Device… if you have more than two speakers, this might be more interesting - depending on what you have hooked up.
I use 3.5mm outputs, so I select Analog Surround for this, then I get up to 4 channels to 4 speakers (subwoofer is filtered by the amplifier). If I select Stereo - then 2 front speakers, and Stereo Duplex gives me stereo through Front and Rear speakers (Quadrophonic).
You don’t select this in MPV.
To troubleshoot this will be tough, first of all you need to give detailed information about the files you are trying to play, their contents and audio tracks…
However, it might be quicker to do a complete reinstall and not mess it up in the first place.
I’ll post you a link, open the two files with MPV and let us know what’s the outcome… but not until you specify what hardware and speaker setup you are using.
MAnjaro is fine, In Mpv media player (the app), when I play a new vid. each time I have to select my audio device. How can I make my selection stay?
I am sorry, I do not understand this statement. Are you saying that MPV does not give you an audio output unless you manually select it?
It seems unlikely that you have not messed around with pipewire, pulseaudio, or something else.
MPV is set to audio-device=auto
by default, unless you also changed that.
To confirm this diagnosis, you must create a new USER, log in to a new USER and attempt to play your file again on a vanilla desktop with default settings.
Also, let me know what happens when you play each of the files I sent the link for you to download.
You can also paste the result of the command:
mpv --audio-device=help
mpv --audio-device=help
List of detected audio devices:
'auto' (Autoselect device)
'pipewire' (Default (pipewire))
'pipewire/alsa_output.pci-0000_04_00.6.analog-surround-40' (Analog surround 4.0)
'pulse/alsa_output.pci-0000_04_00.6.analog-surround-40' (Analog surround 4.0)
'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/jack' (JACK Audio Connection Kit)
'alsa/oss' (Open Sound System)
'alsa/pipewire' (PipeWire Sound Server)
'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/front:CARD=Generic' (Front output / input)
'alsa/surround21:CARD=Generic' (2.1 Surround output to Front and Subwoofer speakers)
'alsa/surround40:CARD=Generic' (4.0 Surround output to Front and Rear speakers)
'alsa/surround41:CARD=Generic' (4.1 Surround output to Front, Rear and Subwoofer speakers)
'alsa/surround50:CARD=Generic' (5.0 Surround output to Front, Center and Rear speakers)
'alsa/surround51:CARD=Generic' (5.1 Surround output to Front, Center, Rear and Subwoofer speakers)
'alsa/surround71:CARD=Generic' (7.1 Surround output to Front, Center, Side, Rear and Woofer speakers)
'alsa/usbstream:CARD=Generic' (HD-Audio Generic/USB Stream Output)
'alsa/sysdefault:CARD=Generic_1' (HD-Audio Generic, ALCS1200A Analog/Default Audio Device)
'alsa/front:CARD=Generic_1,DEV=0' (HD-Audio Generic, ALCS1200A Analog/Front output / input)
'alsa/surround21:CARD=Generic_1,DEV=0' (HD-Audio Generic, ALCS1200A Analog/2.1 Surround output to Front and Subwoofer speakers)
'alsa/surround40:CARD=Generic_1,DEV=0' (HD-Audio Generic, ALCS1200A Analog/4.0 Surround output to Front and Rear speakers)
'alsa/surround41:CARD=Generic_1,DEV=0' (HD-Audio Generic, ALCS1200A Analog/4.1 Surround output to Front, Rear and Subwoofer speakers)
'alsa/surround50:CARD=Generic_1,DEV=0' (HD-Audio Generic, ALCS1200A Analog/5.0 Surround output to Front, Center and Rear speakers)
'alsa/surround51:CARD=Generic_1,DEV=0' (HD-Audio Generic, ALCS1200A Analog/5.1 Surround output to Front, Center, Rear and Subwoofer speakers)
'alsa/surround71:CARD=Generic_1,DEV=0' (HD-Audio Generic, ALCS1200A Analog/7.1 Surround output to Front, Center, Side, Rear and Woofer speakers)
'alsa/iec958:CARD=Generic_1,DEV=0' (HD-Audio Generic, ALCS1200A Digital/IEC958 (S/PDIF) Digital Audio Output)
'alsa/usbstream:CARD=Generic_1' (HD-Audio Generic/USB Stream Output)
'jack' (Default (jack))
'openal' (Default (openal))
Also try:
kate ~/.config/mpv/mpv.conf
Paste the contents:
mpv.conf
screenshot-directory="~/Desktop"
# Youtube Support
script-opts=ytdl_hook-ytdl_path=/home/ben/.local/bin/yt-dlp
ytdl-format=bestvideo[height<=?1080][fps<=?30][vcodec!=?vp9]+bestaudio/best
##################
# audio settings #
##################
# Specify default audio device. You can list devices with: --audio-device=help
# The option takes the device string (the stuff between the '...').
#audio-device=alsa/default
# Do not filter audio to keep pitch when changing playback speed.
#audio-pitch-correction=no
# Disable any automatic remix, _if_ the audio output accepts the audio format.
# of the currently played file. See caveats mentioned in the manpage.
# (The default is "auto-safe", see manpage.)
# audio-channels=4.0
audio-channels=auto
# Use quotes for text that can contain spaces:
term-status-msg="Time: ${time-pos}"
##################
# Uses GPU-accelerated video output by default.
vo=gpu
# Can cause performance problems with some GPU drivers and GPUs.
profile=gpu-hq
# Enables best HW decoder; turn off for software decoding
hwdec=auto
audio-delay=0
border=no # hides the window title bar
msg-color=yes # color log messages on terminal
term-osd-bar=yes # displays a progress bar on the terminal
cursor-autohide=1000 # autohides the cursor after 1s
# Saves the seekbar position on exit
save-position-on-quit=yes
# Uses a large seekable RAM cache even for local input.
cache=yes
# cache-secs=300
# Uses extra large RAM cache (needs cache=yes to make it useful).
demuxer-max-bytes=1800M
demuxer-max-back-bytes=1200M
# Sets the profile restore method to "copy if equal"
profile-restore=copy-equal
# ===== Audio =====
# Uncomment next line to set initial volume.
volume=75
[pyradio]
volume=100
[silent]
volume=0
--screenshot-directory=<~/Desktop>
Hopefully someone better at giving Sound Advice might come along - not sure if @nikgnomic is in the mood for it.
A Duplex audio profile is for audio playback and capture
Analog Stereo Duplex = analog-stereo-output + analog-stereo-input
Archwiki - mpv - Specify an audio output
Run the following command to get a list of available audio output devices
mpv --audio-device=help
Then add one to ~/.config/mpv/mpv.conf. For example:
audio-device=alsa/hdmi:CARD=NVidia,DEV=1
but you would probably want to select a pulse or pipewire output rather than alsa, so it does not take exclusive control of audio playback device, or fail to play audio if device is already connected to PulseAudio or PipeWire
This makes sense to me, however - when I select this I get stereo sound mixed up to 4 channels, unlike surround, and it works well for podcasts… and obviously enables the mic if plugged in.
I just hoped he would try it and report back with a known file.
That is the one that works, so just add it to the config file as that?
ALSA default output is probably either PulseAudio or pipewire-pulse
aplay -L | grep -v sysdefault | grep -A1 default
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.