-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video recording not working if killing process or closing window #4102
Comments
You can't catch SIGKILL. If you kill, there is no way to stop gracefully (and write the file footer). Do not kill scrcpy violently… |
That makes sense, thank you for the explanation! I might have found a work-around for those who need this on a Windows system:
I think it could be even easier in linux, where the |
Thanks for the solution with windows-kill, it worked well 👍 Is there anyway to do the same without using an external executable (windows-kill)? |
In my case I'm launching scrcpy with powershell's I have yet to find a way of stopping the recording job without corrupting the recording file; I would really appreciate anything, any clues would help, much thanks! |
Thanks for the swift response!
For now I am using wrapper classes to implement something similar to the above |
I found a replacement for windows-kill.exe |
Environment
Describe the bug
scrcpy -r test.mp4 --verbosity=debug
(using v2.1)Ctrl+C
(Windows), scrcpy terminates correctly and the recorded video works as expectedtaskkill /IM scrcpy.exe /F
or closing thecmd
window), the video does not work properly. DIfferent behaviorsYour input can't be opened
--:--
) and does not play.Having a graceful stop would be great!
I have no experience in C programming, but maybe there's a way of capturing the sigkill signal and treat it as a user input ctrl+c?
The text was updated successfully, but these errors were encountered: