-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[HELP] Recording videos using the scrcpy server jar results in abnormal video duration and playback speed. Any suggestions? #5742
Comments
A H.264 raw stream has no timestamp information, so with |
Even though I set send_frame_meta=true, the issue persists. I don't have much experience with video and h264, so I'm not sure what steps to take. Could you offer guidance on how to fix this? |
There is no way you can capture the H.264 stream from scrcpy-server, save it to a file "as is" and use the You must use the ffmpeg library and mux the packets programmatically (the same way as |
Got it. I will refer to the recorder.c, thank you very much. |
For simplicity, you should check |
THanks a lot. |
|
After adding this parameter, the slow-motion and duration issues were indeed resolved. However, the video is still stutter and doesn't match the smooth performance of |
Environment
Problem Description
Hello, could you please help me with this issue? I’d greatly appreciate it.
I implemented a screen recording client in Python, which retrieves the H.264 video stream provided by the scrcpy server. Then, I use FFmpeg to convert it into an MP4 file. However, the video duration and playback speed are incorrect. For instance, in this demo, the screen recording lasts for 10 seconds, but the final video is only 2 seconds long. I’m seeking assistance.
Below is my demo code:
Run the demo
log
The text was updated successfully, but these errors were encountered: