Skip to content

make edit lists behaviour consistent with ffmpeg #315

@tonybart1337

Description

@tonybart1337

I was running a few tests with edit-list videos with negative pts and I noticed a mismatch in pts values between mediabunny and ffmpeg.

I checked ffmpeg's source code and here's what I found:
https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/mov.c#L4526-L4538

They normalize the start time to 0, while mediabunny simply applies edit list adjustments.

Would you consider sticking to ffmpeg's behaviour?

This is important for accurate frame seeking in different environments to match timelines, for example: mediabunny and pyav.
Mediabunny would report one pts while pyav would use another. While they would seek just fine in their own timelines, they might output different frames if you use the same pts between them

Video example attached for convenience: favtrip_gas_station.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions