I have a video that is setup like this:
$ mediainfo /mnt/d/Temp/VideoSamples/SampleVideo_1280x720_1mb.mp4 Video ... Duration : 5 s 280 ms ... Audio ... Duration : 5 s 312 ms ...
The audio stream is a bit longer than the video stream. This is not an issue in most cases, however when we concat many such videos (say 20 of them or more) the audio and video are not in sync after a while.
So I'm thinking of pre-processing these files and make sure they all have the exact same audio and video stream duration, however I couldn't find any ffmpeg command to do this. Any idea how to achieve this?