I am creating a cutlist like this
file \'t1.MP4\'
inpoint 1.45067
outpoint 3.18133
file \'t2.MP4\'
inpoint 3.45067
outpoint 6.18133
...
and I u
The concat demuxer is outputting more packets than that specified in the ranges, since video will need earlier frames to decode.
Try
ffmpeg -y -f concat -safe 0 -copyts -segment_time_metadata 1 -i list.txt -vf select=concatdec_select,setpts=N/FRAME_RATE/TB,format=yuv420p -c:v libx264 -af aselect=concatdec_select,asetpts=N/SR/TB -c:a aac output.mp4
I assume all files have videos and audios with same properties i.e. framerate, resolution, audio sampling rate, channels..etc