Need flag `--force-yuv` or else all recorded videos not playable
kohane27 opened this issue · 3 comments
Hello @it-is-wednesday. Hope you're doing well. Thank you for creating this graphical wrapper. It makes using wf-recorder
a lot easier.
Description
I had the exact same issue mentioned in #152. All the videos recorded with cute-sway-recorder
aren't playable when shared on uploaded. They are playable locally with mpv
.
Solution
The solution is adding the flag --force-yuv
:
-t, --force-yuv
Use the -t or --force-yuv option to force conversion of the data to yuv format, before sending it to the gpu.
Problem
Given cute-sway-recorder
uses wf-recorder
under the hood, it's solvable by adding the flag --force-yuv
. But there's no easy way to add flags. Currently, I have to modify the src code:
-
cd ~/.local/pipx/venvs/cute-sway-recorder/lib/python3.10/site-packages/cute_sway_recorder/main.py
-
add
--force-yuv
to params like below:
params = ["wf-recorder", "-f", file_dst, "--force-yuv"]
Suggestion
Add an input box under Record audio
so that users can pass flags.
Thank you!
Oh shit thanks for the detailed issue! I really appreciate the effort <3
Adding such a box is a great solution, I'll definitely add it when I get back on my Linux machine. If you would like to submit a PR yourself I'd obviously greatly appreciate that;) But no rush at all
Update: the following solution doesn't work.
A better approach than modifying src code is editing cute-sway-recorder.desktop
:
[Desktop Entry]
Type=Application
Name=cute-sway-recorder
Exec=env --force-yuv /home/username/.local/bin/cute-sway-recorder
Woah, wait, how does that work? I didn't know you can just append random flags to env
. Can you please explain? I'm curious how it works and can't find anything online and in env
's manual!