CarlEdman
21st February 2011, 21:01
Lately, I've been trying to archive my DVD collection to my NAS.
My process has been to rip the DVDs using MakeMKV, extracting audio/video tracks using eac3to, transcoding them using x264/neroaacenc, and remuxing the tracks using mp4box.
Most of the transcoded mp4s play just fine. However, a significant number have a substantial and often growing divergence between audio and video, even though the source MKVs are fine.
At first I of course that the problem was the audio, rather than the video, but the audio remained perfectly in sync with the subtitles, suggesting that the problem might be the video instead.
At this point I noticed warnings like the following in eac3to's logs for the desynced videos:
[v01] Video has a gap of 26 frames at playtime 0:00:17. <WARNING>
[v01] Video has a gap of 7 frames at playtime 0:00:39. <WARNING>
[v01] Video has a gap of 79 frames at playtime 0:00:39. <WARNING>
[v01] Video has a gap of 7 frames at playtime 0:00:42. <WARNING>
[v01] Video has a gap of 61 frames at playtime 0:00:42. <WARNING>
[v01] Video has a gap of 7 frames at playtime 0:01:13. <WARNING>
[v01] Video has a gap of 14 frames at playtime 0:01:13. <WARNING>
[v01] Video has a gap of 70 frames at playtime 0:01:13. <WARNING>
[v01] Video has a gap of 7 frames at playtime 0:01:18. <WARNING>
[v01] Video has a gap of 1 frames at playtime 0:01:18. <WARNING>
[v01] Video has a gap of 13 frames at playtime 0:01:18. <WARNING>
[v01] Video has a gap of 43 frames at playtime 0:01:18. <WARNING>
[v01] Video has a gap of 1 frames at playtime 0:08:33. <WARNING>
[v01] Video has a gap of 6 frames at playtime 0:08:33. <WARNING>
[v01] Video has a gap of 1 frames at playtime 0:08:34. <WARNING>
[v01] Video has a gap of 81 frames at playtime 0:08:34. <WARNING>
[v01] Video has a gap of 7 frames at playtime 0:08:40. <WARNING>
[v01] Video has a gap of 56 frames at playtime 0:08:40. <WARNING>
[v01] Video has a gap of 7 frames at playtime 0:09:31. <WARNING>
[v01] Video has a gap of 84 frames at playtime 0:09:31. <WARNING>
[v01] Video has a gap of 7 frames at playtime 0:10:20. <WARNING>
[v01] Video has a gap of 58 frames at playtime 0:10:20. <WARNING>
[v01] Video has a gap of 7 frames at playtime 0:49:34. <WARNING>
[v01] Video has a gap of 74 frames at playtime 0:49:34. <WARNING>
[v01] Video has a gap of 1 frames at playtime 0:50:02. <WARNING>
[v01] Video has a gap of 6 frames at playtime 0:50:03. <WARNING>
[v01] Video has a gap of 52 frames at playtime 0:50:03. <WARNING>
I had thought that eac3to takes care to add blank frames to the resulting m2v, just like it adjusts time gaps in the audio files it outputs. But perhaps it does not? That seems consistent with my observations.
So at this point I wonder if there is any way to extract the video stream from mkv with the missing video frames replaced by blanks.
Does mkvtoolnix do this? When I originally investigated the issue, it appeared not, but I could be mistaken.
Any other possibility?
My process has been to rip the DVDs using MakeMKV, extracting audio/video tracks using eac3to, transcoding them using x264/neroaacenc, and remuxing the tracks using mp4box.
Most of the transcoded mp4s play just fine. However, a significant number have a substantial and often growing divergence between audio and video, even though the source MKVs are fine.
At first I of course that the problem was the audio, rather than the video, but the audio remained perfectly in sync with the subtitles, suggesting that the problem might be the video instead.
At this point I noticed warnings like the following in eac3to's logs for the desynced videos:
[v01] Video has a gap of 26 frames at playtime 0:00:17. <WARNING>
[v01] Video has a gap of 7 frames at playtime 0:00:39. <WARNING>
[v01] Video has a gap of 79 frames at playtime 0:00:39. <WARNING>
[v01] Video has a gap of 7 frames at playtime 0:00:42. <WARNING>
[v01] Video has a gap of 61 frames at playtime 0:00:42. <WARNING>
[v01] Video has a gap of 7 frames at playtime 0:01:13. <WARNING>
[v01] Video has a gap of 14 frames at playtime 0:01:13. <WARNING>
[v01] Video has a gap of 70 frames at playtime 0:01:13. <WARNING>
[v01] Video has a gap of 7 frames at playtime 0:01:18. <WARNING>
[v01] Video has a gap of 1 frames at playtime 0:01:18. <WARNING>
[v01] Video has a gap of 13 frames at playtime 0:01:18. <WARNING>
[v01] Video has a gap of 43 frames at playtime 0:01:18. <WARNING>
[v01] Video has a gap of 1 frames at playtime 0:08:33. <WARNING>
[v01] Video has a gap of 6 frames at playtime 0:08:33. <WARNING>
[v01] Video has a gap of 1 frames at playtime 0:08:34. <WARNING>
[v01] Video has a gap of 81 frames at playtime 0:08:34. <WARNING>
[v01] Video has a gap of 7 frames at playtime 0:08:40. <WARNING>
[v01] Video has a gap of 56 frames at playtime 0:08:40. <WARNING>
[v01] Video has a gap of 7 frames at playtime 0:09:31. <WARNING>
[v01] Video has a gap of 84 frames at playtime 0:09:31. <WARNING>
[v01] Video has a gap of 7 frames at playtime 0:10:20. <WARNING>
[v01] Video has a gap of 58 frames at playtime 0:10:20. <WARNING>
[v01] Video has a gap of 7 frames at playtime 0:49:34. <WARNING>
[v01] Video has a gap of 74 frames at playtime 0:49:34. <WARNING>
[v01] Video has a gap of 1 frames at playtime 0:50:02. <WARNING>
[v01] Video has a gap of 6 frames at playtime 0:50:03. <WARNING>
[v01] Video has a gap of 52 frames at playtime 0:50:03. <WARNING>
I had thought that eac3to takes care to add blank frames to the resulting m2v, just like it adjusts time gaps in the audio files it outputs. But perhaps it does not? That seems consistent with my observations.
So at this point I wonder if there is any way to extract the video stream from mkv with the missing video frames replaced by blanks.
Does mkvtoolnix do this? When I originally investigated the issue, it appeared not, but I could be mistaken.
Any other possibility?