dec05eba / gpu-screen-recorder-issues

GPU Screen Recorder issue tracker
20 stars 0 forks source link

[BUG] Motherboard audio profile changes to duplex when recording #58

Closed GenocideStomper closed 4 weeks ago

GenocideStomper commented 1 month ago

Note: This is a low priority "bug" as it doesn't break anything.

Describe the bug But I have a USB mic which is its own audio device in pavucontrol. In pavucontrol I set the motherboard audio device to the "Output" profile, since I have no need for the motherboard's microphone input device. When I start gpu-screen-recorder, my motherboard device profile gets switched to "Duplex" (i.e. I get an extra input device for the motherboard's microphone). When I stop gpu-screen-recorder, the profile gets reverted to the original. KDE Plasma's OSD shows the switch in profile (see screenshots).

To Reproduce gpu-screen-recorder -w screen-direct-force -k h265 -r 180 -c mp4 -f 60 -a default_output -o .

Screenshots When starting gpu-screen-recorder and it switches to duplex: image

Input devices during recording: image

When stopping gpu-screen-recorder and it switches to output: image

Input devices normally: image

Desktop (please complete the following information):

Additional context Switch doesn't happen if -a argument is omitted. Switch also happens if instead of -a default_output, -a "$(pactl get-default-sink).monitor" is used. Pipewire is used.

dec05eba commented 1 month ago

Im pretty sure its unrelated to gpu screen recorder itself. Did you try if the same thing happens for example if you use simple screen recorder instead and record the same audio device?

GenocideStomper commented 4 weeks ago

simplescreenrecorder does not have the issue, however OBS installed through flatpak does. Very strange, but I'll close this since it's not gpu-screen-recorder specific. Thank you!

dec05eba commented 4 weeks ago

I also have a similar issue but for me it changes profile on bluetooth headset to a worse profile. I have to manually change it back. Im on arch so it might be related. It even happens sometimes when just playing games. It didn't always happen, it suddenly started happening so it might be some pipewire update that did that.

dec05eba commented 4 weeks ago

This might be the issue @GenocideStomper https://gitlab.freedesktop.org/pipewire/wireplumber/-/issues/715 there is also a linked issue with profile automatically switching to audio stereo duplex

dec05eba commented 4 weeks ago

I downgraded wireplumber to 0.55 which fixed it for me

GenocideStomper commented 4 weeks ago

This might be the issue @GenocideStomper https://gitlab.freedesktop.org/pipewire/wireplumber/-/issues/715 there is also a linked issue with profile automatically switching to audio stereo duplex

You legend, thank you very much!

I did what basically this comment said https://gitlab.freedesktop.org/pipewire/wireplumber/-/issues/634#note_2380391 and created the path + file and restarted. Seems to have fixed the issue!

Sorry for bringing up the issue now. I finally upgraded my installation after 8+ months because before Plasma 6 was not stable enough for me, and I didn't want to partially upgrade.