scrcpy: Recording stops intermittently.
Environment
- OS: [Windows10]
- scrcpy version: [1.16 and 1.17]
- device model:Galaxy Note5
- Android version: [7.0]
Describe the bug Recording stops intermittently.
Option used –serial udid –no-control –window-title window_title –record C:/Log/test.mp4 –max-size 800 –encoder OMX.google.h264.encoder
ERROR: Could not record packet
ERROR: Could not send packet to recorder
ERROR: Could not process frame
INFO: Finishing recording...
ERROR: Recording failed to C:/Log/test.mp4
WARN: Device disconnected
About this issue
- Original URL
- State: open
- Created 3 years ago
- Comments: 22
Commits related to this issue
- Log av_write_frame failure Refs #2218 <https://github.com/Genymobile/scrcpy/issues/2218> — committed to Genymobile/scrcpy by rom1v 3 years ago
Yes, there is a problem on the device, but as a workaround scrcpy could readjust pts when they are not increasing.
How did you build the server?
Thank you very much for the dump.
The reason why it fails is that the PTS are not strictly increasing (and some muxers are more liberal than others, that’s why it fails with mp4 but works with mkv):
I would like to know if this is a mistake from your device encoder, or something scrcpy does not handle correclty.
Could you please apply these changes on
master
, and build (both the client and server!), and retry. When it fails, I’m interested in the logs 😉Could you please apply these changes to dump the raw stream received from the device into
/tmp/scrcpy.dump
:Once you reproduce the error, post the dump. That way, I’ll be able to use the exact same input to see if I can reproduce if I record to mp4.
I will try to reproduce the issue tomorrow with this branch.
Did you checkout the branch and build this version? It seems it’s not the case.