2
Nb: I incorrectly asked this question at stackoverflow
I've used the ffmpeg command line shown in this question to split MKV files perfectly for a long time. Now i have some MP4 files that i'd like to split and at first it seemed to work, but every subsequent segment after the first has the audio not synced! And by several seconds.
I've tried forcing keyframes (advice I found on some other sites) and that didn't help.
I tried a different program entirely (Avidemux) and it was able to split the file with proper output, but it was a LOT slower, taking upwards of 3 minutes vs less than 2 seconds with ffmpeg. With Avidemux I was able to determine the exact position of the i-frame where I wanted to split, so thinking perhaps that was the syncing problem I tried that exact position (ie. 00:12:17.111 instead of 00:12:16 or whatever) but that didn't help either.
Is there an option I'm missing with ffmpeg to get it to properly sync audio to the video when splitting?
Just a note: I was using a 2013 version of ffmpeg. I just updated that to latest 2.6 but the issue remains.
2Next time please include the full uncut command line output of the conversion command. – slhck – 2015-03-12T17:03:21.337