Closed YozoraWolf closed 7 months ago
I can reproduce it on linux mint but not arch linux. It also doesn't seem to be related to mixing audio or using multiple audio sources. It happens when recording from certain audio devices and when they go to sleep when not in use and then waking up. I dont know a good solution for this now.
I just ran one of the tests:
Recording only one sink and switching between them:
Only silence when switching sinks (expected behavior)
I can reproduce it on linux mint but not arch linux. It also doesn't seem to be related to mixing audio or using multiple audio sources. It happens when recording from certain audio devices and when they go to sleep when not in use and then waking up. I dont know a good solution for this now, ffmpeg expects audio all the time so if the audio device doesn't give any data.. it starts skipping :/
I see, would this be a behavior tied to pulseaudio perhaps? Don't know if it can happen with pipewire.
This is not a big issue as my GSR Scripts repo originally restarted replay when default sink changed (a version I never pushed to public, it now just detects new sinks and pipes them one after the other). If anything I think I'll make it switch to its previous behavior given that audio desync is no longer an issue.
I will continue to monitor the issue and see if I brainstorm up some ideas later. We can keep this on hold.
And again, thanks for the support too!
I think it can happen on pipewire as well but its much less common. I'll look at this issue tomorrow.
Confirmed to be have been fixed, closing. Thanks!
Describe the bug I was testing the flatpak version (provided by @dec05eba) which gratefully fixed the audio bug when using pulseaudio, so I decided to use two sinks and see the behavior. Everything seems to sound ok, but as soon as I switch sinks (as seen on the video) the sound seems to overlap over the other and then cause major synchronization issues.
To Reproduce The GPU Screen Recorder command you ran or if you used the GUI version then describe which options you used.
Expected behavior
The audio should remain in sync even if you switch between sinks. It is my understanding that unless you separate the sinks using the option
-a
, then by separating them using|
(pipe), should merge them into a single track, thus monitoring both sinks and keeping the audio on sync throughout the video.Screenshots
https://github.com/dec05eba/gpu-screen-recorder-issues/assets/5296711/e9daffc6-ebc1-4add-ac0e-9d73e1d9ad3f
Desktop (please complete the following information):
Additional context
mpv --no-config
output:This may be linked to #7 . But I decided to make it a child issue as it is reproduced in another way.
mpv --no-config video.mp4
(if applicable)