Fix wf-recorder producing corrupted videos

This commit is contained in:
ItsDrike 2024-06-23 14:38:39 +02:00
parent f2f7aecb97
commit df09ddc1b4
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -37,7 +37,9 @@ start_recording() {
# Wee need 'y' stdin to confirm that we want to override the file
# since mktemp creates a blank file there already
echo "y" | wf-recorder -g "$geom" -f "$file"
# TODO: The -x 420p is a temporary fix to address the recordings appearing
# corrupted in firefox/discord/... See: <https://github.com/ammen99/wf-recorder/issues/218>
echo "y" | wf-recorder -g "$geom" -f "$file" -x yuv420p
# If wf-recorder process ends directly, rather than a trap being hit
# we also want to run the save_file func