russelltg / wl-screenrec

High performance wlroots screen recording, featuring hardware encoding
Apache License 2.0
305 stars 9 forks source link

Doesn't work when a virtual sink is passed as audio device #74

Open Morbiuzx opened 4 months ago

Morbiuzx commented 4 months ago

I'm using arch linux with Hyprland on wayland, it works great when I pass my headphones to the --audio-device argument but if I try to run it using a virtual sink as an audio device then it looks like everything is working but the process never stops.

I tried with "pkill wl-screenrec" and "killall -s SIGINT wl-screenrec", it just goes on giving "0 fps" indefinitely, only way to stop it is using "pkill -9 wl-screenrec" and then the file gets corrupted. Again this happens only when I try to use my virtual sink, which I want to use so discord audio doesn't get into the recording.

I'm using Pipewire.

russelltg commented 4 months ago

Could you give some more detailed instructions on how to reproduce? How do you create this virtual sink? What is your commandline?

XDRwastaken commented 2 months ago

i dunno what he to get "0 fps" indefinitely, but for people having the same issue, follow my way on how to get both desktop and microphone audio: https://gitlab.com/-/snippets/3727605

wl-screenrec --audio --audio-device microphone_and_desktop_audio.monitor --low-power=off --filename $(date +%Y-%m-%d_%H-%m-%s).mp4"

XDRwastaken commented 2 months ago

...or you know, https://github.com/russelltg/wl-screenrec/issues/66