Log in

View Full Version : Audio delay after conversion


artisticcheese
26th February 2007, 22:48
I converted DVD to 2 Xvid encoded file but see constant 2-3 seconds audio delay. I convert about 10-15 movies a week and in about 20% of the cases I get this issue. I have no idea what is causing that since I use the same settings for all conversions. What can be causing that?


[2/7/2007 11:04:17 PM] AutoGK 2.40
[2/7/2007 11:04:17 PM] OS: WinXP (5.1.2600).2
[2/7/2007 11:04:17 PM] Job started.
[2/7/2007 11:04:17 PM] Input file: K:\VIDEO_TS\VTS_02_0.IFO
[2/7/2007 11:04:17 PM] Output file: C:\movies\the prestige.avi
[2/7/2007 11:04:17 PM] Output codec: XviD
[2/7/2007 11:04:17 PM] Audio 1: English AC3 6ch
[2/7/2007 11:04:17 PM] Subtitles 1: English wide
[2/7/2007 11:04:17 PM] Display only forced subtitles.
[2/7/2007 11:04:17 PM] Format: AVI
[2/7/2007 11:04:17 PM] Target size: 1400Mb
[2/7/2007 11:04:17 PM] Audio 1 settings: Auto
[2/7/2007 11:04:17 PM] Started encoding.
[2/7/2007 11:04:17 PM] Demuxing and indexing.
[2/7/2007 11:09:14 PM] Processing file: K:\VIDEO_TS\VTS_02_1.VOB
[2/7/2007 11:09:14 PM] Processing file: K:\VIDEO_TS\VTS_02_2.VOB
[2/7/2007 11:09:14 PM] Processing file: K:\VIDEO_TS\VTS_02_3.VOB
[2/7/2007 11:09:14 PM] Processing file: K:\VIDEO_TS\VTS_02_4.VOB
[2/7/2007 11:09:14 PM] Processing file: K:\VIDEO_TS\VTS_02_5.VOB
[2/7/2007 11:09:14 PM] Source resolution: 720x480
[2/7/2007 11:09:14 PM] Found NTSC source.
[2/7/2007 11:09:14 PM] Source aspect ratio: 16:9
[2/7/2007 11:09:14 PM] Source seems to be pure FILM.
[2/7/2007 11:09:14 PM] Color correction enabled.
[2/7/2007 11:09:14 PM] Output will contain 187743 frames
[2/7/2007 11:09:14 PM] Preparing subtitles.
[2/7/2007 11:12:21 PM] Audio1 size: 375,759,360 bytes (358.35 Mb)
[2/7/2007 11:12:21 PM] Overhead: 1,305,088 bytes (1.24 Mb)
[2/7/2007 11:12:21 PM] Video size: 1,090,941,952 bytes (1040.40 Mb)
[2/7/2007 11:12:21 PM] Running compressibility test.
[2/7/2007 11:12:21 PM] Writing the following script to C:\movies\agk_tmp\the prestige_comptest.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\vsfilter.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")

movie = mpeg2source("C:\movies\agk_tmp\the prestige.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.18518518518519
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
input_par = (input_par > 1.4) || (input_par < 1.25) ? input_par : (4.0/3.0)
out_width = 704
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
ColorMatrix("Rec.709->Rec.601",opt=0,hints=false)
VobSub("C:\movies\agk_tmp\the prestige.idx")
SelectRangeEvery(300,15)
===========================================================
[2/7/2007 11:17:19 PM] Duration was: 4 minutes 57 seconds
[2/7/2007 11:17:19 PM] Speed was: 31.53 fps.
[2/7/2007 11:17:20 PM] Compressibility percentage is: 85.35
[2/7/2007 11:17:20 PM] Chosen resolution is: 720x320 ( AR: 2.25 )
[2/7/2007 11:17:20 PM] Predicted comptest value is: 79.29%
[2/7/2007 11:17:20 PM] Running first pass.
[2/7/2007 11:17:20 PM] Writing the following script to C:\movies\agk_tmp\the prestige_movie.avs
===========================================================
LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\autocrop.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\vsfilter.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\ColorMatrix.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\RemoveGrainSSE3.dll")

movie = mpeg2source("C:\movies\agk_tmp\the prestige.d2v")
cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=0,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
fixed_aspect = 1.18518518518519
c_width = width(cropclip)
c_height = round(height(cropclip) / fixed_aspect)
input_par = float(c_width)/float(c_height)
input_par = (input_par > 1.4) || (input_par < 1.25) ? input_par : (4.0/3.0)
out_width = 720
out_height = round(float(out_width) / input_par)
hmod = out_height - (floor(out_height / 16 ) * 16)
out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=10,aspect=new_aspect,threshold=34,samplestartframe=0,leftadd=0,rightadd=0,topadd=0,bottomadd=0)
LanczosResize(out_width,out_height)
RemoveGrain(mode=2)
ColorMatrix("Rec.709->Rec.601",opt=0,hints=false)
VobSub("C:\movies\agk_tmp\the prestige.idx")
===========================================================
[2/7/2007 11:59:58 PM] Duration was: 42 minutes 38 seconds
[2/7/2007 11:59:58 PM] Speed was: 73.37 fps.
[2/7/2007 11:59:59 PM] Expected quality of first pass size: 82.21%
[2/7/2007 11:59:59 PM] Running second pass.
[2/8/2007 1:13:33 AM] Duration was: 1 hour, 13 minutes 34 seconds
[2/8/2007 1:13:33 AM] Speed was: 42.53 fps.
[2/8/2007 1:13:34 AM] Splitting video into: C:\movies\the prestige.cd1.avi
[2/8/2007 1:15:26 AM] Splitting video into: C:\movies\the prestige.cd2.avi
[2/8/2007 1:16:36 AM] Job finished. Total time: 2 hours 12 minutes 18 seconds

BigDid
26th February 2007, 23:27
I converted DVD to 2 Xvid encoded file but see constant 2-3 seconds audio delay.
.../...
[2/8/2007 1:13:34 AM] Splitting video into: C:\movies\the prestige.cd1.avi ...
Hi,

This is a recent movie (Oct 2006) and may be afflicted with a recent protection which can be passed through only with recent decrypting/ripping tools like Ripit4me

Go for 1 click, movie only, fixvts for all VOBs and feed the resulting in AutoGk. Your audio should be fine or the desynch not exceeds a few ms.

Did

artisticcheese
26th February 2007, 23:29
Hi,

This is a recent movie (Oct 2006) and may be afflicted with a recent protection which can be passed through only with recent decrypting/ripping tools like Ripit4me

Go for 1 click, movie only, fixvts for all VOBs and feed the resulting in AutoGk. Your audio should be fine or the desynch not exceeds a few ms.

Did
Thanks, I'm not very familiar with all the terms you described. Can you elaborate what I need to do with DVD to do it?
What is 1 click, fixvts?

BigDid
26th February 2007, 23:44
Thanks, I'm not very familiar with all the terms you described.
What is 1 click, fixvts?
Hi,

These are the settings known (to me at least) to work fine for Autogk.
Download Ripit4me and associate programs: http://www.ripit4me.org/download.html
Read the excellent tutorial : http://www.ripit4me.org/guide.html#start
and feed the result to Autogk.

Did

artisticcheese
26th February 2007, 23:55
Hi,

These are the settings known (to me at least) to work fine for Autogk.
Download Ripit4me and associate programs: http://www.ripit4me.org/download.html
Read the excellent tutorial : http://www.ripit4me.org/guide.html#start
and feed the result to Autogk.

Did
Wow, thanks. This looks pretty complicated compared to what I used so (just run AutoGTK against DVD). Is there anything less involved to converting to DivX or Xvid movie?

CWR03
27th February 2007, 00:35
Wow, thanks. This looks pretty complicated compared to what I used so (just run AutoGTK against DVD). Is there anything less involved to converting to DivX or Xvid movie?
THe RipIt4Me process only copies the movie files to your hard drive in preparation for AutoGK. If you use the "1-click" method and use the movie only mode, it will at once solve your problems with audio synch and remain simple to do. Otherwise, you can use VirtualDubMod to manually resynch your end files.

artisticcheese
27th February 2007, 02:57
THe RipIt4Me process only copies the movie files to your hard drive in preparation for AutoGK. If you use the "1-click" method and use the movie only mode, it will at once solve your problems with audio synch and remain simple to do. Otherwise, you can use VirtualDubMod to manually resynch your end files.

So if I use RipIt4Me then I don't need to use DVDShrink or DVDDecoder and my process will be first using RipIt4me and then AutoGTK?

setarip_old
27th February 2007, 04:55
Incorporated in the RipIt4Me "package" is the RipIt4Me program, DVd Decrypter, FixVTS and DVD Shrink...

artisticcheese
27th February 2007, 14:31
Is there any way to know ahead of time that I need to go through this lengthy procedure if I have ISO image of DVD movie as opposed just to AutoGTK to Xvid? As I said original process works fine for 75% of the movies.

manono
27th February 2007, 16:04
If it's a DVD of a recent movie from certain studios, it'll probably have these new kinds of copy protections requiring the use of RipIt4Me and/or FixVTS. These may include DVDs from Sony, New Line, Disney, Buena Vista, Touchstone, and others. setarip_old know more about these things than do I.

Here's an up-to-date list of DVDs with ARcoSS protection:

http://en.wikipedia.org/wiki/List_of_DVDs_protected_by_ARccoS

I can't find any comparable list of DVDs protected by RipGuard. If you like to back up mostly recent movies, you might run all of them through RipIt4Me. It's slower, but will prevent the headaches being caused by the 20% you're having trouble with now. I don't know why you'd need to make an ISO, though. Learn to do it right.

And it's AutoGK, not AutoGTK.

CWR03
27th February 2007, 16:54
Somewhere in one of setarip_old's many posts is one in which he identifies how to tell when a disk needs the advanced processing of RipIt4Me and when you can use DVD Decrypter or AutoGK by itself. After reading a number of posts where someone said you can always use RipIt4Me and let it do everything and it will work, I tried it with The Ant Bully. That region 1 disk has no special protection, and after the complete RipIt4Me processing I couldn't run in through DGIndex. I received multiple warnings from a tray "bubble" saying the audio file was corrupt while it was still creating the .d2v file. Once I deleted the folder and used only DVD Decrypter, it processed perfectly.

Hopefully he'll find it and link it for you - I have no desire to try and find it since it could be as many as 1,000 posts ago.

manono
27th February 2007, 17:47
Oh, OK, then I can learn something too. Thanks for the correction.

BigDid
27th February 2007, 18:01
... After reading a number of posts where someone said you can always use RipIt4Me and let it do everything and it will work, I tried it with The Ant Bully. That region 1 disk has no special protection, and after the complete RipIt4Me processing I couldn't run in through DGIndex. I received multiple warnings from a tray "bubble" saying the audio file was corrupt while it was still creating the .d2v file. Once I deleted the folder and used only DVD Decrypter, it processed perfectly...
Hi all,

I believe I am the one who said and use Ripit4me for ALL rips.

In one click, movie mode and fixvts for all files, I encountered only 1 problematic rip and changing the DVD drive solved the problem.

So I will still recommend Ripit4me for new or problematic movies ;)

Did

setarip_old
27th February 2007, 21:17
@CWR03

I believe this is the post you're referring to:

http://forum.doom9.org/showpost.php?p=774545&postcount=1

**Be advised, however, that the information may now be outdated due to newer iterations of "RipGuard" protection...

CWR03
28th February 2007, 00:58
I believe this is the post you're referring to:
It is, and thanks. It's not quite what I remembered, but still helpful.