-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Sometimes when recording videos, file size is 0kb (windows 10). #5702
Comments
If you do the same manually (not calling from pyrhon), does it work? You must not kill the process, scrcpy must terminate gracefully. |
I used --time-limited, and process automatically ends,but video file size is 0kb. I found it works normally when removing --no-window. but I don't want to see the window, how can I to kill the process? |
Questions:
Even without starting it from python? From a console, if I run:
The resulting file is not empty. |
This also works correctly for me (the resulting file is not empty): #!/usr/bin/env python3
import subprocess
subprocess.run(["scrcpy", "--record=file.mp4", "--time-limit=1", "--no-playback", "--no-window"]) |
no such information:INFO: Recording complete to mkv file,but this command works,thanks!This problem might be subprocess. |
use subprocess by python, loop recording video with a 5-second interval in between,but some file size is 0kb. Has anyone meet this problem before?
file format: mkv
command:
start_record_command = f"scrcpy -s {device_id} --record={filepath} --record-format=mkv --time-limit={time_limit} --no-playback --no-window"
version: scrcpy 3.1
The text was updated successfully, but these errors were encountered: