In a folder I have about 170 videos, each one second long. I have checked them and they are all fine. When I run an ffmpeg command to concatenate them, the output.mp4 file has some issues.
It all goes fine for about a minute. Then, the video stops changing. At the three-minute mark the audio stops (should be end of video), but the video continues, and seems to play the rest of the videos very slowly. I followed the advice of this question (https://video.stackexchange.com/questions/18247/ffmpeg-concat-demuxer-corrupted-output-freezed-video-on-some-concatenated-parts) and forced re-encoding. It made it slightly better, but still broken after 1min30s. Is there a better way to concatenate to minimize these corruptions?
The command I used is
ffmpeg -f concat -safe 0 -i mylist.txt output.mp4
Windows 11 with FFMPEG 5.1.1
Trying on Ubuntu with an older ffmpeg from apt yielded even worse results with failures occuring from around the 40s mark even with forced re-encoding.