[FFmpeg-user] concat - C needs to go before B - How?
Paul B Mahol
onemda at gmail.com
Wed Feb 21 12:20:50 EET 2024
On Wed, Feb 21, 2024 at 10:12 AM Mark Filipak <markfilipak.imdb at gmail.com>
wrote:
> Gyan, Paul, Devin, Jim, anyone. Help!
>
> You folks have been following my trim+concat adventure. I think I may have
> found the problem, not
> just for me. It's a general problem.
>
> "N" signifies one frame time. All times are relative to ptsA.
>
> __DTS__ _PTS__
> ptsA-2N ptsA I-frame with DTS-to-PTS=2N <- call this frame "A"
> ptsA-N ptsA-N B-frame with DTS-to-PTS=0 <- call this frame "B"
> --- join here ---
> ptsA-2N ptsA+N I-frame with DTS-to-PTS=3N <- call this frame "C"
>
> You see, dtsC is before dtsB, so C needs to go before B. That's not
> happening.
>
> I don't know of a way to force C to be before B in order to test whether
> that fixes the glitch. Do you?
>
> Aside: Is it okay if dtsC==dtsA?
>
dts can be anything, and for decoding only pts are relevant.
>
> --Mark.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>
More information about the ffmpeg-user
mailing list