mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.12k stars 2.88k forks source link

No audio when playing audio only files #14657

Closed viktor-grunwaldt closed 2 months ago

viktor-grunwaldt commented 2 months ago

mpv Information

~/repos 1.9s ❱ mpv-0.38.0/mpv-0.38.0/build/mpv --version
mpv 0.38.0 Copyright © 2000-2024 mpv/MPlayer/mplayer2 projects
 built on Aug 10 2024 21:18:21
libplacebo version: v7.349.0
FFmpeg version: n7.0.1
FFmpeg library versions:
   libavutil       59.8.100
   libavcodec      61.3.100
   libavformat     61.1.100
   libswscale      8.1.100
   libavfilter     10.1.100
   libswresample   5.1.100

~/repos ❱ gcc --version
gcc (GCC) 14.2.1 20240805
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Other Information

Reproduction Steps

~/repos ❱ mpv-0.38.0/mpv-0.38.0/build/mpv ~/Music/KOAN\ Sound\ -\ Led\ by\ Ancient\ Light/KOAN\ Sound\ -\ Led\ by\ Ancient\ Light\ -\ 01\ Embers\ From\ Chaos.flac --no-config

Audio goes out via external USB DAC (XMOS Ltd iFi (by AMR) HD USB Audio)

Expected Behavior

Audio is played.

Actual Behavior

No audio on .flac .opus .mp3 files (haven't tested other ones). Audio works with .webp .mkv .mp4 files. Audio also works when playing these same files using VLC.

Log File

output.txt

Sample Files

https://samplelib.com/sample-mp3.html

I carefully read all instruction and confirm that I did the following:

sfan5 commented 2 months ago

Have you checked the status of the pipewire audio stream with e.g. pavucontrol?

viktor-grunwaldt commented 2 months ago

Yes, there is no audio output. Also, I've checked whether maybe it's DAC's fault so I've tried with connected wireless headphones (Bose qc45) to my PC via bluetooth, with same result.

llyyr commented 2 months ago

previous version from arch repository didn't have this issue)

I assume the last version that worked was 0.36 then? Can you try with --ao=pulse in that case?

sfan5 commented 2 months ago

Yes, there is no audio output

what does that mean? is the stream there? is it muted? what about the volume? can you see something in the volume meter? can you see which output it's being played to?

viktor-grunwaldt commented 2 months ago

previous version from arch repository didn't have this issue)

I assume the last version that worked was 0.36 then? Can you try with --ao=pulse in that case?

No, the previous version was installed via pacman, and I assume, but don't remember exactly that I had 0.37.0-3 installed.

Using --ao=pulse fixes the issue.

viktor-grunwaldt commented 2 months ago

Yes, there is no audio output

what does that mean? is the stream there? is it muted? what about the volume? can you see something in the volume meter? can you see which output it's being played to?

Sorry, I'm not that technical with how audio on linux works. If by channel you mean the thing that opens up in the Playback tab in pavucontrol, then yes, it does open up, it is not muted, the VU meter does not move and is marked "silence". I can see which output it goes to - my dac.

sfan5 commented 2 months ago

to be clear here's how it should look: grafik

if the volume bar is grayed out that means the stream is simply muted

llyyr commented 2 months ago

Using --ao=pulse fixes the issue.

Can you try pw-play <some audio file> in a terminal? Also a screenshot of pavucontrol and alsamixer would be helpful to know what's exactly happening here

viktor-grunwaldt commented 2 months ago

Oh, I am so sorry it was PEBCAC. I had it muted inside playback. Thank you for helping me <3 image