I have a few .ts files which I've downloaded from the web that I want to chop up into smaller files. I'm using FFmpeg to do this, but each time, after about 3 minutes the video starts to fall behind and go out of sync with the audio.
I've been experimenting with async and vsync and have gotten this far...
ffmpeg -I test.ts -async 1 -c:v copy -channel_layout '5.1' -ss 01:00:12 -to 01:07:45 -y test.mp4
The result is a file where the audio and video and in sync, but every few seconds the audio jumps. I assume this is because the audio has been trimmed to align with the video stream?
Does anyone know how I could get the video to align to the audio? i.e. leave the audio as-is and shrink/stretch the video stream to keep aligned with the audio?