From df09ddc1b468d48781df9ad9ae725fab33ba5522 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sun, 23 Jun 2024 14:38:39 +0200 Subject: [PATCH] Fix wf-recorder producing corrupted videos --- .../wms/hyprland/packages/quick-record/quick-record.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/programs/graphical/wms/hyprland/packages/quick-record/quick-record.sh b/home/programs/graphical/wms/hyprland/packages/quick-record/quick-record.sh index 9e4c751..e006c09 100644 --- a/home/programs/graphical/wms/hyprland/packages/quick-record/quick-record.sh +++ b/home/programs/graphical/wms/hyprland/packages/quick-record/quick-record.sh @@ -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: + 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