cut and concat .mxf produces 2 broken frames

For the developers that use FFmpeg in their software.
Post Reply
Posts: 4
Joined: Mon Sep 24, 2018 11:20 am

cut and concat .mxf produces 2 broken frames

Post by tomsss »

We have a problem cutting and concating mxf (mpeg2video,25fps).
To create parts of the original mxf file we do :

Code: Select all

"fmpeg -copyts -fflags +genpts -i C:\Users\thoma\Videos\MVI_3308.mxf -y -ss 2.44 -to 9.4 -c copy -ignore_unknown -map 0 ./temp/precut0.mxf
and to concat:

Code: Select all

ffmpeg -copyts -f concat -i ./temp/list.txt -y -vcodec mpeg2video -ignore_unknown -map 0 -c copy -fflags +genpts -f mxf C:\Users\thoma\Videos\SW8-Trailer_teswt.mxf

-ss is set to an IFrame.

The concated video has two broken frames, showing a pixelated mix of the last frame from the first clip and the first frame of the second clip, and 1 frame missing in timecode. (sorry for my horrible english :D )

error log from terminal:
"[mxf @ 0000020418e74800] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 75 >= 75
[mxf @ 000002041858a3c0] error getting stream index 369165056
[mxf @ 000002041858a3c0] edit unit sync lost on stream 0, jumping from 77 to 76"

What are we doing wrong???
many thanks for any help!

Post Reply