Log in

View Full Version : Audio sync issue with AutoMKV


ScreamingWeasel
17th March 2008, 18:09
I have been experimenting with ripping some of my DVDs and converting them to MP4. It has generally been working, but I am having an issue with Lost. One example is with Season 3 episode 22.

The audio appears to be not quite a second early. This also appears to be consistent throughout the entire rip.

I would welcome any suggestion as to what to troubleshoot. I am ripping directly from DVD. I'm a bit new to this, but have been reading the forums and do not see the solution to my problem. Most of the other Lost episodes seem to be working fine.

Thank you for the assistance.

The log file follows:

11:51:11 Dgindex CMD: C:\Program Files\AutoMKV095\exe\dgindex\dgindex.exe -FO=0 -OM=1 -TN=81 -YR=2 -AIF=[D:\VIDEO_TS\VTS_02_1.vob] -OF=[C:\DVD\S3E22\temp\movie] -exit -minimize
11:56:25 D2V file size: 325914 bytes
11:56:25 Audio 1: movie t81 2_0ch 192kbps delay 0ms.ac3
11:56:25 Pre Audio 1' Size: 62089728 bytes
11:56:25 Applying DelayAudio of 0 to audio file: movie t81 2_0ch 192kbps delay 0ms.ac3
11:56:25 Encoding C:\DVD\S3E22\temp\movie t81 2_0ch 192kbps delay 0ms.ac3 to NeroAAC with 0.65 quality
11:59:39 Encoded 1' Audio Track: movie t81 2_0ch 192kbps delay 0ms.mp4 -1 bytes
11:59:39 Unable to encode Audio, try piping with FFmpeg!
11:59:39 NeroAACEnc doesn't accept piping from ffmpeg, switching to LibFaac at 208 kbps
11:59:39 "C:\Program Files\AutoMKV095\exe\BeSweet\ffmpeg.exe" -i "C:\DVD\S3E22\temp\movie t81 2_0ch 192kbps delay 0ms.ac3" -vn -acodec libfaac -ab 208000 -vol 256 -f aac audio1.aac
11:59:39 "C:\Program Files\AutoMKV095\exe\matroska\MP4Box.exe" -new "C:\DVD\S3E22\temp\audio1.mp4" -add "C:\DVD\S3E22\temp\audio1.aac"
12:02:37 Encoded 1' Audio Track: audio1.mp4 52905620 bytes
12:02:37 D2V Film Detected: 99.900002% FILM found
12:02:46 Number of Frames: 77550
12:02:46 Framerate: 29.970030
12:02:46 Movie length in Seconds: 2588
12:02:46 Movie Width/Height: 720/480
12:02:46 DgIndex AR: 16:9
12:05:08 Source is declared tff by a margin of 53/0.
12:05:08 Advanced Deinterlace Routines Log
12:05:08 Analyzed 300 sections of five frames
12:05:08 Found Interlace Sections: 9 3.00%
12:05:08 Found Progressive Sections:13 4.33%
12:05:08 Found Telecined Sections: 278 92.67%
12:05:08 Found Zero Mov: 4.33% 13
12:05:08 Found One Mov: 3.00% 9
12:05:08 Found Two Mov: 92.67% 278
12:05:08 Found Three Mov: 0.00% 0
12:05:08 Found Four Mov: 0.00% 0
12:05:08 Found Five Mov: 0.00% 0
12:05:08 The Movie is declared to telecined
12:05:08 Starting X264
12:05:08 ABR encoding X264: C:\Program Files\AutoMKV095\exe\encoder\x264.exe --bitrate 2713 --progress --keyint 250 --bframes 1 --qpmin 10 --qpmax 51 --no-psnr --ref 1 --filter 0,0 --subme 0 --direct none --vbv-maxrate 25000 --me dia --no-ssim --level 4.1 --merange 8 --nf --no-cabac --no-b-adapt --no-chroma-me --threads auto --thread-input --aq-strength 0 --aq-sensitivity 0 --sar 11851852:10000000 --output "C:\DVD\S3E22\temp\movie.264" "C:\DVD\S3E22\temp\movie.avs"
12:31:52 X264 Final ABR Encoding Stats:
x264 [info]: using SAR=46296/39062
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 Cache64
x264 [info]: slice I:877 Avg QP:16.60 size: 48090
x264 [info]: slice P:34575 Avg QP:18.52 size: 18232
x264 [info]: slice B:26588 Avg QP:20.60 size: 7382
x264 [info]: mb I I16..4: 30.7% 0.0% 69.3%
x264 [info]: mb P I16..4: 16.3% 0.0% 10.4% P16..4: 47.5% 12.4% 3.5% 0.0% 0.0% skip: 9.9%
x264 [info]: mb B I16..4: 5.3% 0.0% 1.2% B16..8: 90.7% 1.9% 0.9% direct: 0.0% skip: 0.0%
12:31:52 Only Movie Size: 868861376 bytes
12:31:52 "C:\Program Files\AutoMKV095\exe\matroska\MP4Box.exe" -add "C:\DVD\S3E22\temp\movie.264":par=1.777778 -chap "C:\Program Files\AutoMKV095\exe\chapters.txt" -add "C:\DVD\S3E22\temp\audio1.mp4:lang=eng" -fps 23.976 -new "C:\DVD\S3E22\temp\S3E22_full.mp4"
12:35:23 Final Muxed size: 922524032 bytes
12:35:23 Encoding finished: 00:30:15 elapsed time
12:35:23 -----------------------------------------------------------------------
12:35:23 Script AutoCrop.log
12:35:23
12:35:23 Crop(0,2,720,476)
12:35:23 -----------------------------------------------------------------------
12:35:23 Script movie.avs
12:35:23
12:35:23 #loadpluginstart
12:35:23
12:35:23 #test1
12:35:23
12:35:23 #importstart
12:35:23
12:35:23 #test2
12:35:23
12:35:23 movie = mpeg2source("C:\DVD\S3E22\temp\movie.d2v")
12:35:23 function getOrder(clip c) {
12:35:23 order = GetParity(c) ? 1 : 0
12:35:23 Return order }
12:35:23 #filter1start
12:35:23
12:35:23 #test3
12:35:23
12:35:23 movie = tfm(movie,d2v="C:\DVD\S3E22\temp\movie.d2v").tdecimate()
12:35:23 last = movie
12:35:23 fixed_aspect = 1.512605
12:35:23 out_width = 720
12:35:23 #Aspect_Error = 0.840%
12:35:23 out_height = 480
12:35:23 #resizestart
12:35:23
12:35:23 #test4
12:35:23
12:35:23 #filter2start
12:35:23
12:35:23 #test5
12:35:23
12:35:23 return last
12:35:23 -----------------------------------------------------------------------
12:35:23 Script mkvmaudio.avs
12:35:23
12:35:23 LoadPlugin("C:\Program Files\AutoMKV095\exe\filter\NicAudio.dll")
12:35:23 LoadPlugin("C:\Program Files\AutoMKV095\exe\filter\SoundOut.dll")
12:35:23 LoadPlugin("C:\Program Files\AutoMKV095\exe\filter\FFmpegSource.dll")
12:35:23 NicAC3Source("C:\DVD\S3E22\temp\movie t81 2_0ch 192kbps delay 0ms.ac3")
12:35:23 DelayAudio(0.0000)
12:35:23 #Applying ORIGINAL downmixing routines
12:35:23
12:35:23 function addvideo(clip c) {
12:35:23 blankclip(length = Int(100 * AudioLengthF(c) / float(audiorate(c))), fps=100)
12:35:23 Return audiodub(last,c)
12:35:23 }
12:35:23 Normalize()
12:35:23
12:35:23 Soundout(output="cmd",type=1,format=3,autoclose=true,executable="C:\Program Files\AutoMKV095\exe\besweet\neroaacenc.exe",prefilename=" -ignorelength -q 0.65 -if - -of audio.mp4",postfilename="",nofilename=true,showoutput=false)
12:35:23
12:35:23 - - - - - - - - - - - - FINISHED JOBS - - - - - - - - - - - - - - - - -

buzzqw
17th March 2008, 20:27
11:59:39 Encoded 1' Audio Track: movie t81 2_0ch 192kbps delay 0ms.mp4 -1 bytes
11:59:39 Unable to encode Audio, try piping with FFmpeg!
11:59:39 NeroAACEnc doesn't accept piping from ffmpeg, switching to LibFaac at 208 kbps

seems there is a problem with your audio, make sure it isn't corrupted
launch delaycut (from \exe\dgindex folder) and analyse this ac3 file

thanks

BHH

ScreamingWeasel
18th March 2008, 18:29
Okay, I have the same problem after re-encoding. This time, however - no audio errors. Anything else I should check?

11:22:13 Dgindex CMD: C:\Program Files\AutoMKV095\exe\dgindex\dgindex.exe -FO=0 -OM=1 -TN=81 -YR=2 -AIF=[D:\VIDEO_TS\VTS_02_1.vob] -OF=[C:\DVD\S3E22\temp\movie] -exit -minimize
11:27:28 D2V file size: 325914 bytes
11:27:28 Audio 1: movie t81 2_0ch 192kbps delay 0ms.ac3
11:27:28 Pre Audio 1' Size: 62089728 bytes
11:27:28 Applying DelayAudio of 0 to audio file: movie t81 2_0ch 192kbps delay 0ms.ac3
11:27:28 Encoding C:\DVD\S3E22\temp\movie t81 2_0ch 192kbps delay 0ms.ac3 to NeroAAC with 0.65 quality
11:30:42 Encoded 1' Audio Track: movie t81 2_0ch 192kbps delay 0ms.mp4 72984464 bytes
11:30:42 D2V Film Detected: 99.900002% FILM found
11:30:53 Number of Frames: 77550
11:30:53 Framerate: 29.970030
11:30:53 Movie length in Seconds: 2588
11:30:53 Movie Width/Height: 720/480
11:30:53 DgIndex AR: 16:9
11:33:38 Source is declared tff by a margin of 53/0.
11:33:38 Advanced Deinterlace Routines Log
11:33:38 Analyzed 300 sections of five frames
11:33:38 Found Interlace Sections: 9 3.00%
11:33:38 Found Progressive Sections:13 4.33%
11:33:38 Found Telecined Sections: 278 92.67%
11:33:38 Found Zero Mov: 4.33% 13
11:33:38 Found One Mov: 3.00% 9
11:33:38 Found Two Mov: 92.67% 278
11:33:38 Found Three Mov: 0.00% 0
11:33:38 Found Four Mov: 0.00% 0
11:33:38 Found Five Mov: 0.00% 0
11:33:38 The Movie is declared to telecined
11:33:38 Starting X264
11:33:38 Command Line 1' Pass X264: C:\Program Files\AutoMKV095\exe\encoder\x264.exe --pass 1 --bitrate 2651 --stats "C:\DVD\S3E22\temp\.stats" --ref 1 --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --filter 0,0 --subme 2 --direct auto --vbv-maxrate 25000 --me dia --no-ssim --level 4.1 --b-pyramid --analyse none --threads auto --thread-input --aq-strength 0 --aq-sensitivity 0 --sar 11851852:10000000 --output NUL "C:\DVD\S3E22\temp\movie.avs"
11:33:38 Command Line 2' Pass X264: C:\Program Files\AutoMKV095\exe\encoder\x264.exe --pass 2 --bitrate 2651 --stats "C:\DVD\S3E22\temp\.stats" --progress --keyint 250 --bframes 3 --qpmin 10 --qpmax 51 --no-psnr --mixed-refs --trellis 1 --ref 6 --filter 0,0 --direct auto --vbv-maxrate 25000 --me hex --no-ssim --level 4.1 --weightb --b-pyramid --b-rdo --bime --analyse p8x8,b8x8,i4x4,i8x8 --8x8dct --threads auto --thread-input --aq-strength 0 --aq-sensitivity 0 --sar 11851852:10000000 --output "C:\DVD\S3E22\temp\movie.264" "C:\DVD\S3E22\temp\movie.avs"
12:01:45 Finished 1' Pass X264
13:31:08 X264 Final 2 Pass Encoding Stats:
x264 [info]: using SAR=46296/39062
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 Cache64
x264 [info]: slice I:1001 Avg QP:16.64 size: 43539
x264 [info]: slice P:28636 Avg QP:18.15 size: 19442
x264 [info]: slice B:32403 Avg QP:19.50 size: 7935
x264 [info]: mb I I16..4: 7.0% 55.7% 37.3%
x264 [info]: mb P I16..4: 4.6% 23.7% 5.4% P16..4: 27.4% 20.7% 10.8% 0.0% 0.0% skip: 7.5%
13:31:09 Only Movie Size: 857467520 bytes
13:31:09 "C:\Program Files\AutoMKV095\exe\matroska\MP4Box.exe" -add "C:\DVD\S3E22\temp\movie.264":par=1.777778 -chap "C:\Program Files\AutoMKV095\exe\chapters.txt" -add "C:\DVD\S3E22\temp\movie t81 2_0ch 192kbps delay 0ms.mp4:lang=eng" -fps 23.976 -new "C:\DVD\S3E22\temp\S3E22_full.mp4"
13:33:22 Final Muxed size: 931192192 bytes
13:33:22 Encoding finished: 01:31:37 elapsed time
13:33:22 -----------------------------------------------------------------------
13:33:22 Script AutoCrop.log
13:33:22
13:33:22 Crop(0,2,720,476)
13:33:22 -----------------------------------------------------------------------
13:33:22 Script movie.avs
13:33:22
13:33:22 #loadpluginstart
13:33:22
13:33:22 #test1
13:33:22
13:33:22 #importstart
13:33:22
13:33:22 #test2
13:33:22
13:33:22 movie = mpeg2source("C:\DVD\S3E22\temp\movie.d2v")
13:33:22 function getOrder(clip c) {
13:33:22 order = GetParity(c) ? 1 : 0
13:33:22 Return order }
13:33:22 #filter1start
13:33:22
13:33:22 #test3
13:33:22
13:33:22 movie = tfm(movie,d2v="C:\DVD\S3E22\temp\movie.d2v").tdecimate()
13:33:22 last = movie
13:33:22 fixed_aspect = 1.512605
13:33:22 out_width = 720
13:33:22 #Aspect_Error = 0.840%
13:33:22 out_height = 480
13:33:22 #resizestart
13:33:22
13:33:22 #test4
13:33:22
13:33:22 #filter2start
13:33:22
13:33:22 #test5
13:33:22
13:33:22 return last
13:33:22 -----------------------------------------------------------------------
13:33:22 Script mkvmaudio.avs
13:33:22
13:33:22 LoadPlugin("C:\Program Files\AutoMKV095\exe\filter\NicAudio.dll")
13:33:22 LoadPlugin("C:\Program Files\AutoMKV095\exe\filter\SoundOut.dll")
13:33:22 LoadPlugin("C:\Program Files\AutoMKV095\exe\filter\FFmpegSource.dll")
13:33:22 NicAC3Source("C:\DVD\S3E22\temp\movie t81 2_0ch 192kbps delay 0ms.ac3")
13:33:22 DelayAudio(0.0000)
13:33:22 #Applying ORIGINAL downmixing routines
13:33:22
13:33:22 function addvideo(clip c) {
13:33:22 blankclip(length = Int(100 * AudioLengthF(c) / float(audiorate(c))), fps=100)
13:33:22 Return audiodub(last,c)
13:33:22 }
13:33:22 Normalize()
13:33:22
13:33:22 Soundout(output="cmd",type=1,format=3,autoclose=true,executable="C:\Program Files\AutoMKV095\exe\besweet\neroaacenc.exe",prefilename=" -ignorelength -q 0.65 -if - -of audio.mp4",postfilename="",nofilename=true,showoutput=false)
13:33:22
13:33:22 - - - - - - - - - - - - FINISHED JOBS - - - - - - - - - - - - - - - - -

buzzqw
18th March 2008, 20:03
launch delaycut (from \exe\dgindex folder) and analyse this ac3 file

if this test is passed ok, i can only suppose a bad rip

i can suggest to hand made the d2v, BUT starting not from first frames, but using the > to move some gop forward, then make the d2v from here (and also the audio from here)

take note if delay reported is 0 or other

redo the encoding.. and tell me

thanks!

BHH