Sound in PipeWire
Opened this issue · 13 comments
OS: Arch Linux
Great program. I was looking for a program that reproduces lists in gnu/linux but does not work the sound within OBS. (alsa, pulse, openAL they listen, but it doesn't work for the PipeWire transition)
Make with:
cmake -B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_INSTALL_LIBDIR=lib \
-DLINUX_PORTABLE=OFF
But don't work pipewire...
Can you post a full obs log? Also you might need to restart the playback after changing to pipewire.
Yeah, reboot many times. The video (OBS) appears in Pulse Audio and don't play or recorded in the transmission. Not even the level changes.
Player windows don't allowed to interact.
excerpt_000.mp4
The interaction not working is an issue with libmpv, nothing I can do about it. I also still need an obs log. Also I meant restarting the playback, not rebooting, like this:
s.mp4
But the audio capture is done using the Desktop audio?
It's the same when I use the builtin source:
s2.mp4
Sure, that with pipewire isn't working on me. It's mute.
What do the source properties look like after loading the file? Can you select a different audio track in there?
It seems deactivated in the "interact" but in the source it is chosen.
Maybe it's a mistake in my compilation that parameters use in cmake
does it happen with all video files? Do you have one that you could upload?
I did tests with many, it seems he's trying to connect with jack only …
info: [obs-mpv] log: (+) Video --vid=1 (*) (h264 1024x1280 25.000fps)
info: [obs-mpv] log: (+) Audio --aid=1 (*) (aac 2ch 44100Hz)
info: [obs-mpv] log: File tags:
info: [obs-mpv] log: Date: 2023/10/13 17:01:32
error: [obs-mpv] log: cannot open server
error: [obs-mpv] log: Failed to initialize audio driver 'jack'
error: [obs-mpv] log: Could not open/initialize audio device -> no sound.
info: [obs-mpv] log: Audio: no audio
info: [obs-mpv] log: VO: [libmpv] 1024x1280 yuv420p
info: [obs-mpv] log: Track switched:
info: [obs-mpv] log: (+) Video --vid=1 (*) (h264 1024x1280 25.000fps)
info: [obs-mpv] log: Audio --aid=1 (*) (aac 2ch 44100Hz)
Try changing these two lines from "jack" to "pipewire"
https://github.com/univrsal/obs-mpv/blob/master/src/mpv-backend.c#L420
https://github.com/univrsal/obs-mpv/blob/master/src/mpv-backend.c#L425
It is heard by the speakers but not within OBS
No clue what the issue is then