Skip to content

Getting random error "pts has no value" #4536

@theninthsky

Description

@theninthsky

Environment

  • OS: Windows
  • scrcpy version: 2.3.1
  • installation method: Windows release
  • device model: Levono Legion Y700 (2023)
  • Android version: 13

Describe the bug
Sometimes, right when I start recording, my terminal immediately gets spammed with these errors:

[server] INFO: Device: [Lenovo] Lenovo TB320FC (Android 13)
[server] DEBUG: Creating encoder by name: 'OMX.qcom.video.encoder.hevc'
DEBUG: Server connected
DEBUG: Starting controller thread
DEBUG: Starting receiver thread
INFO: Recording started to mp4 file: file.mp4
DEBUG: Demuxer 'video': starting thread
DEBUG: Demuxer 'audio': starting thread
[server] DEBUG: Using audio encoder: 'c2.android.aac.encoder'
WARN: [FFmpeg] track 1: codec frame size is not set
[server] WARN: Could not get any audio timestamp
WARN: [FFmpeg] Packet duration: 5206291712 / dts: 5206292736 is out of range
WARN: [FFmpeg] pts has no value
WARN: [FFmpeg] Packet duration: 5206292735 / dts: 5206293760 is out of range
WARN: [FFmpeg] pts has no value
WARN: [FFmpeg] Packet duration: 5206293758 / dts: 5206294784 is out of range
WARN: [FFmpeg] pts has no value
WARN: [FFmpeg] Packet duration: 5206294781 / dts: 5206295808 is out of range
WARN: [FFmpeg] pts has no value
WARN: [FFmpeg] Packet duration: 5206295804 / dts: 5206296832 is out of range
WARN: [FFmpeg] pts has no value
WARN: [FFmpeg] Packet duration: 5206296827 / dts: 5206297856 is out of range
WARN: [FFmpeg] pts has no value
WARN: [FFmpeg] Packet duration: 5206297850 / dts: 5206298880 is out of range
WARN: [FFmpeg] pts has no value
WARN: [FFmpeg] Packet duration: 5206298873 / dts: 5206299904 is out of range
WARN: [FFmpeg] pts has no value
WARN: [FFmpeg] Packet duration: 5206299896 / dts: 5206300928 is out of range
WARN: [FFmpeg] pts has no value
WARN: [FFmpeg] Packet duration: 5206300919 / dts: 5206301952 is out of range
WARN: [FFmpeg] pts has no value
WARN: [FFmpeg] Packet duration: 5206301942 / dts: 5206302976 is out of range
WARN: [FFmpeg] pts has no value
WARN: [FFmpeg] Packet duration: 5206302965 / dts: 5206304000 is out of range
WARN: [FFmpeg] pts has no value
WARN: [FFmpeg] Packet duration: 5206303988 / dts: 5206305024 is out of range
WARN: [FFmpeg] pts has no value
WARN: [FFmpeg] Packet duration: 5206305011 / dts: 5206306048 is out of range
WARN: [FFmpeg] pts has no value
WARN: [FFmpeg] Packet duration: 5206306034 / dts: 5206307072 is out of range
WARN: [FFmpeg] pts has no value
WARN: [FFmpeg] Packet duration: 5206307057 / dts: 5206308096 is out of range
WARN: [FFmpeg] pts has no value
WARN: [FFmpeg] Packet duration: 5206308080 / dts: 5206309120 is out of range
WARN: [FFmpeg] pts has no value

I have no other choice than to abort the recording, and the recording file is damaged (it has size but it's unplayable).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions