[FFmpeg-user] How to retain correct frame order when concatenating?

Flopsy flopsy at tfwno.gf
Wed Oct 30 02:51:32 EET 2024


On 30/10/2024 5:25 am, Terje J. Hanssen wrote:
> Have you simply tried
>
> cat 001.mkv 002.mkv > 001+002.mkv 

Thanks for the idea.

That concatenates the files, not the video streams, though 
ffmpeg/ffprobe seems to recognise it regardless.

Unfortunately, ffprobe still shows the frames out of order on this 
concatenated file, though both frames have PTS=0. Doing a `ffmpeg -i 
'001+002.mkv' -c copy joined.mkv` doesn't change this.




More information about the ffmpeg-user mailing list