Skip to content

Add workaround for PyAV genpts flag #590

Open

Description

@Breakthrough

As per PyAV-Org/PyAV#2477 we can actually get non monotonic PTS from the PyAV backend. See that issue for a repro.

We need to see if the upstream PyAV folks can provide what ffmpeg uses here, which is best_effort_timestamp. In the meantime, to avoid this, we need to pass container_options={"fflags": "-genpts"} to av.open() and fall back to frame.dts when frame.pts is None.m

Activity

  1. added this to the 0.7.3 milestone on Oct 25, 2026
  2. Breakthrough commented on Oct 25, 2026

    @Breakthrough
    OwnerAuthor

    The PyAV folks were kind enough to fix this pretty quickly in PyAV-Org/PyAV#2478, which will appear in a future PyAV release. In the meantime, have a PR up in #592 to add a workaround on our end for v0.7.3 for this issue.

  3. self-assigned this
    on Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions