Skip to content

Conversation

@morgant
Copy link
Contributor

@morgant morgant commented Oct 5, 2025

This resolves the regression of video quality (see issue #10), which I found to occur even when not using VA-API.

Specifically, it reverts the move of x11grab video capture to left side of pipe. My hypothesis is that this causes the raw video data to be passed through the pipe, to then be encoded on the other side, resulting in lots of extra memory reads & writes before encoding, and manifesting as very poor frame rate. It does keep the nice new restructuring of variables to build ffmpeg options/arguments.

…as causing raw video data to be passed through the pipe, resulting in very poor framerate. Kept restructuring of variables to build ffmpeg options/arguments. Issue rfht#10
@Izder456
Copy link
Contributor

can confirm. this fixes the low quality issue on my machine with vaapi and without

@morgant
Copy link
Contributor Author

morgant commented Oct 24, 2025

@Izder456 Many thanks for testing and confirming, especially both with and without VA-API!

@rfht rfht merged commit 5048f4d into rfht:master Nov 14, 2025
@rfht
Copy link
Owner

rfht commented Nov 14, 2025

Thanks for the find!

@rfht
Copy link
Owner

rfht commented Nov 14, 2025

To explain where this came from - the move of x11grab to the left side of the pipe was an attempt to grab video and audio at the same time in the hopes that this would fix the desync issues. It looks like that was not the solution, and mainly led to video quality impairment.
I'm yet to check out how #13 works out which I'm told fixes the desync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants