m3mbran3
22nd June 2009, 00:06
I'm having a problem calculating how much to adjust the audio delay for a DVD that I am ripping and encoding to x264/aac in mkv
I am using DVDDecrypter in ifo mode to rip individual episodes of the Freaks and Geeks DVDs and for the main audio track I am getting a delay of -66ms
0x81 - Audio - AC3 / 6ch / 48kHz / DRC / English / LBA: 21 / PTS: 00:00:00.280 / Delay: -66ms
I then use eac3to to extract the stream and then get a delay of -16ms
[a03] A remaining delay of -16ms could not be fixed.
When I encode the video stream with x264 I am getting an initial delay of 2002/24000
mp4 [info]: initial delay 2002 (scale 24000)
Although I'm not really sure what this means, I'm guessing a video delay of 2002/24000 seconds or frames?
I am encoding the audio track to aac using the nero encoder and I was wanting to correct the delay at this stage in the process. Only problem is I'm not sure what the correct delay is.
Is the delay from decrypting + extracting (-66 -16 = -82) -82ms or is the delay from the eac3to output inclusive of the initial delay from decrypting, so just -16ms?
Then I am left wondering what the initial delay from the video is and how this effects my output. So far I have muxed my audio and video (with no delay compensation) and played it back a few times with VLC experimenting with different delays. I can't say that the difference is very noticeable to me when going from 0ms to -100ms but at times I think it does look more in sync with a -50ms delay (placebo effect most likely). I guess such a small delay is probably not going to be noticeable to me but I figure since it *should* be easy to fix I might as well.
My workflow is pretty standard and besides ripping the disc, I am using the tools of the latest megui build (0.3.1.1045) and megui as the gui for all of them. As this is my first time encoding a video with megui I am hopeful that a seasoned veteran will have some good advice for me.
I am using DVDDecrypter in ifo mode to rip individual episodes of the Freaks and Geeks DVDs and for the main audio track I am getting a delay of -66ms
0x81 - Audio - AC3 / 6ch / 48kHz / DRC / English / LBA: 21 / PTS: 00:00:00.280 / Delay: -66ms
I then use eac3to to extract the stream and then get a delay of -16ms
[a03] A remaining delay of -16ms could not be fixed.
When I encode the video stream with x264 I am getting an initial delay of 2002/24000
mp4 [info]: initial delay 2002 (scale 24000)
Although I'm not really sure what this means, I'm guessing a video delay of 2002/24000 seconds or frames?
I am encoding the audio track to aac using the nero encoder and I was wanting to correct the delay at this stage in the process. Only problem is I'm not sure what the correct delay is.
Is the delay from decrypting + extracting (-66 -16 = -82) -82ms or is the delay from the eac3to output inclusive of the initial delay from decrypting, so just -16ms?
Then I am left wondering what the initial delay from the video is and how this effects my output. So far I have muxed my audio and video (with no delay compensation) and played it back a few times with VLC experimenting with different delays. I can't say that the difference is very noticeable to me when going from 0ms to -100ms but at times I think it does look more in sync with a -50ms delay (placebo effect most likely). I guess such a small delay is probably not going to be noticeable to me but I figure since it *should* be easy to fix I might as well.
My workflow is pretty standard and besides ripping the disc, I am using the tools of the latest megui build (0.3.1.1045) and megui as the gui for all of them. As this is my first time encoding a video with megui I am hopeful that a seasoned veteran will have some good advice for me.