PDA

View Full Version : Sound not in synk with gk.


low
19th July 2004, 09:26
Hi there. I'm having trubble getting the soung right when i use gk. I've tried all versions of gk but the soung get's of 1sek at the end when i make a xvid movie. I've tried changing the setttings, but no luck. I'm currently running gk 28.6.3. I've tried the latest gk but the sound gets of by a sek. In the start of the movie the sound synk's but in the end of by a sek. Pls help.

jggimi
19th July 2004, 15:47
Hello, and welcome to the forum.

Please post one of your _GKnot.log files here. It's such a common request, we even have a smiley for it.
:logfile:

low
19th July 2004, 16:12
2004-07-15 11:51:27: Job "1" started.

o Transcode source -> MP3: C:\Ripp8\kotc AC3 T01 2_0ch 224Kbps DELAY -66ms.ac3
o Xvid - First Pass: C:\Ripp8\kotc.avs
o Xvid - Second Pass: C:\Ripp8\kotc.avs
o Mux Audio.
o Splitting final movie.
End of Job 1 (1).
_______________________________________________________________________________________________________________________

Gordian Knot -
Encoding Job Data:

Type: EncXvid_All
Number: 1
Name: 1
Platform: WinXP (5.1.2600).2

Files:
VirtualDubModExe: C:\Program\GORDIA~1\VirtualDubMod\VirtualDubMod.exe
NandubExe: C:\Program\GORDIA~1\nandub\Nandub.exe
AviFinal: C:\Ripp8\kotc_1.avi
AviMovie: C:\Ripp8\kotc_1_Movie.avi
AviCredits: C:\Ripp8\kotc_1_Credits.avi
MovieFS: C:\Ripp8\kotc.avs
CreditsFS:
Log : C:\Ripp8\kotc_1.log
Stats: C:\Ripp8\kotc_1.stats
Ecf : C:\Ripp8\kotc_1.ecf

Options:
Quality/DRF: 0
CreditsStart: 0
UseEcf: 1
CreditsIVTC: 0
CreditsAppend: 0
DeleteInterm.: 0
EnforceBitrate: 0
AntiShit: 0
Split final file at CD size:700

Calculator:
VideoSize: 905916 kbyte.
Audio1Size: 149730 kbyte.
Audio2Size: 0 kbyte.
Overhead: 10337 kbyte.
AviSize: 1065984 kbyte (1041 mbyte).
FilesSize: 0 kbyte.
TotalSize: 1065984 kbyte (1041 mbyte).
Interleaving: vbrmp3
Bitrate: 1356 k(=1000)Bits/s
Frames: 164075
FPS: 29.970
Duration: 131:15
Quality: 0.230 bitar/(pixel*frame).
CompCheck3: 0.000 bitar/(pixel*frame).
CompCheck5: 0.558 bitar/(pixel*frame).
Resolution: 512 x 384

Audio 1:
Mode: ac3 -> mp3
SourceFile: C:\Ripp8\kotc AC3 T01 2_0ch 224Kbps DELAY -66ms.ac3
WavFile: C:\Ripp8\kotc AC3 T01 2_0ch 224Kbps DELAY -66ms.wav
Mp3File: C:\Ripp8\kotc AC3 T01 2_0ch 224Kbps DELAY -66ms.mp3
Azid: -c normal
Lame: -h --abr 128
Delay: -66
Interval: 1
Preload: 500
Mux: 1
Recalc: 1
DeleteWav: 1

Audio 2:
none.


11:51:27: Started Transcoding Audio.

11:51:27: Using "BeSweet" to transcode C:\Ripp8\kotc AC3 T01 2_0ch 224Kbps DELAY -66ms.ac3
CommandLine: C:\Program\GORDIA~1\BeSweet.exe -core( -input "C:\Ripp8\kotc AC3 T01 2_0ch 224Kbps DELAY -66ms.ac3" -output "C:\Ripp8\kotc AC3 T01 2_0ch 224Kbps DELAY -66ms.mp3" -logfile "C:\Ripp8\kotc AC3 T01 2_0ch 224Kbps DELAY -66ms.log" ) -ota( -hybridgain ) -azid( -c normal ) -lame( -h --abr 128 ) -profile( Gordian Knot 0.28 )
11:59:32: Finished. Duration: 8 minuter, 4 sekunder.

11:59:32: Audio Done.
11:59:32: MP3-File-Size is 77206 kb.
11:59:32: Audio 1, determined: 77206 kb
11:59:32: Audio 1, calc: 149730 kb
11:59:32: New Bitrate for Movie = 1464 k(=1000)Bits/s

Adding this script to C:\Program\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "XviD - 1:a passet"
// $input "C:\Ripp8\kotc.avs"
// $output "C:\Ripp8\kotc_1_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\Ripp8\\kotc.avs",0,0);
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x64697678,0,10000,0);
VirtualDub.video.SetCompData(1208,"AwAAAKC7DQAI7g4AQzpcUmlwcDhca290Y18xLnN0YXRzAHQAYwBfADEALgBzAHQAYQB0AHMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABVAAAABQAAABAAAABkAAAAZAAAAAYAAAAAAAAAAAAAAAAAAAAsAQAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAP////+WAAAASwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAgAAAB8AAAACAAAAHwAAAAgREhMVFxkbERITFRcZGxwUFRYXGBocHhUWFxgaHB4gFhcYGhweICMXGBocHiAjJhkaHB4gIyYpGxweICMmKQAQERITFBUWFxESExQVFhcYEhMUFRYXGBkTFBUWFxgaGxQVFhcZGhscFRYXGBobHB4WFxgaGxweHxcYGRscHh8AAAAAAAoAAAAUAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAHgAAAAEAAAAyAAAAAQAAAPQBAABaAAAAMgAAAICWmAA8AAAAPAAAAPoAAAABAAAAAAAAAFxoaW50ZmlsZS5tdmgAbABlAC4AbQB2AGgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXHZpZGVvZ2suc3RhdHMAAC4AcwB0AGEAdABzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAABAnAAAQJwAAAAAAAAAAAAAAAAAAAAAAAAAAAADPAAAAAAAAAAAAAAA=");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\Ripp8\\kotc_1_Movie.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

11:59:32: Started XviD - 1:a passet: C:\Ripp8\kotc.avs
13:35:12: Finished XviD - 1:a passet: Duration: 1 h, 35 minuter, 39 sekunder.
13:35:12: Trying to open Log-file.
13:35:12: Success: Log-file open.
13:35:12: Encoded: 164075 Frames.
13:35:12: Speed: 28.586 Frames per Second.
13:35:12: New target size = 978440 Kb

Adding this script to C:\Program\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "XviD - 2:a passet"
// $input "C:\Ripp8\kotc.avs"
// $output "C:\Ripp8\kotc_1_Movie.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\Ripp8\\kotc.avs",0,0);
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(1);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression(0x64697678,0,10000,0);
VirtualDub.video.SetCompData(1208,"BQAAAKC7DQAI7g4AQzpcUmlwcDhca290Y18xLnN0YXRzAHQAYwBfADEALgBzAHQAYQB0AHMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABVAAAABQAAABAAAABkAAAAZAAAAAYAAAAAAAAAAAAAAAAAAAAsAQAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAP////+WAAAASwAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAgAAAB8AAAACAAAAHwAAAAgREhMVFxkbERITFRcZGxwUFRYXGBocHhUWFxgaHB4gFhcYGhweICMXGBocHiAjJhkaHB4gIyYpGxweICMmKQAQERITFBUWFxESExQVFhcYEhMUFRYXGBkTFBUWFxgaGxQVFhcZGhscFRYXGBobHB4WFxgaGxweHxcYGRscHh8AAAAAAAoAAAAUAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAABAAAAHgAAAAEAAAAyAAAAAQAAAPQBAABaAAAAMgAAAICWmAA8AAAAPAAAAPoAAAABAAAAAAAAAFxoaW50ZmlsZS5tdmgAbABlAC4AbQB2AGgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXHZpZGVvZ2suc3RhdHMAAC4AcwB0AGEAdABzAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAABAnAAAQJwAAAAAAAAAAAAAAAAAAAAAAAAAAAADPAAAAAAAAAAAAAAA=");
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\Ripp8\\kotc_1_Movie.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

13:35:12: Started XviD - 2:a passet: C:\Ripp8\kotc.avs
15:07:46: Finished XviD - 2:a passet: Duration: 1 h, 32 minuter, 34 sekunder.
15:07:46: Speed: 29.541 Frames per Second.

Adding this script to C:\Program\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "DivX5 Addera"
// $input "C:\Ripp8\kotc_1_Movie.avi"
// $output "C:\Ripp8\kotc_1.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\Ripp8\\kotc_1_Movie.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource("C:\\Ripp8\\kotc AC3 T01 2_0ch 224Kbps DELAY -66ms.mp3",0x00000202,1);
VirtualDub.stream[0].SetMode(0);
VirtualDub.stream[0].SetInterleave(1,500,1,0,-66);
VirtualDub.stream[0].SetClipMode(1,1);
VirtualDub.stream[0].SetConversion(0,0,0,0,0);
VirtualDub.stream[0].SetVolume();
VirtualDub.stream[0].SetCompression();
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetRange(0,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.SaveAVI("C:\\Ripp8\\kotc_1.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

15:07:46: Started Muxar Audio.: C:\Ripp8\kotc_1_Movie.avi
15:09:20: Finished Muxar Audio.: Duration: 1 minut, 33 sekunder.
15:09:21: Total File Size is: 1036 Mb

Adding this script to C:\Program\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "Splittar fil"
// $input "C:\Ripp8\kotc_1.avi"
// $output "C:\Ripp8\kotc_1_part1.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\Ripp8\\kotc_1.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource(0x73647561,0,1);
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.subset.AddRange(0,99513);
VirtualDub.SaveAVI("C:\\Ripp8\\kotc_1_part1.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

15:09:21: Started Splittar slutlig fil till: C:\Ripp8\kotc_1_part1.avi: C:\Ripp8\kotc_1.avi
15:11:01: Finished Splittar slutlig fil till: C:\Ripp8\kotc_1_part1.avi: Duration: 1 minut, 39 sekunder.

Adding this script to C:\Program\GORDIA~1\VirtualDubMod\LastJob.vcf :

// $job "Splittar fil"
// $input "C:\Ripp8\kotc_1.avi"
// $output "C:\Ripp8\kotc_1_part2.avi"
// $state 0
// $start_time 0 0
// $end_time 0 0
// $script

VirtualDub.Open("C:\\Ripp8\\kotc_1.avi",0,0);
VirtualDub.RemoveInputStreams();
VirtualDub.stream[0].SetSource(0x73647561,0,1);
VirtualDub.video.SetDepth(24,24);
VirtualDub.video.SetMode(0);
VirtualDub.video.SetFrameRate(0,1);
VirtualDub.video.SetIVTC(0,0,-1,0);
VirtualDub.video.SetCompression();
VirtualDub.video.filters.Clear();
VirtualDub.subset.Delete();
VirtualDub.subset.AddRange(99513,64561);
VirtualDub.SaveAVI("C:\\Ripp8\\kotc_1_part2.avi");
VirtualDub.Close();

// $endjob
//
//--------------------------------------------------
// $done

15:11:01: Started Splittar slutlig fil till: C:\Ripp8\kotc_1_part2.avi: C:\Ripp8\kotc_1.avi
15:11:45: Finished Splittar slutlig fil till: C:\Ripp8\kotc_1_part2.avi: Duration: 43 sekunder.

15:11:45: Done.
15:11:45: Movie = C:\Ripp8\kotc_1.avi
Total Encoding Time: 3 timmar, 20 minuter, 17 sekunder.
2004-07-15 15:11:45: Job "1" finished.
_______________________________________________________________________________________________________________________

jggimi
19th July 2004, 17:05
I see some odd things in the log, but none that I could say are directly related to your audio sync trouble.

How did you demux the .ac3 soundtrack from your .VOB set? Did you use DVD2AVI or did you use DVD Decrypter to obtain the .ac3? If you used DVD Decrypter to demux the .ac3, I would recommend using DVD2AVI instead.

The odd things I saw, that do not effect sync: Total file size 1041MB seemed a little strange. This by itself is not an issue, as one can calulate a bitrate based upon a filesize, or calculate a filesize based upon a video bitrate. But it's an odd size to pick, and with a video bitrate of 1536kbps, it doesn't appear that you set the bitrate to calculate a filesize.

You apparently incorrectly selected your .ac3 file as the calculated audio size in the Audio A box, since the calculated audio size is 149730 KB. That's close to 224kbps, which would be 149707 KB. Instead, you should have used 128kbps, which is the size of your intended .mp3 soundtrack. This mistake impacts your compressibility testing results. Gknot corrects your video bitrate once the actual size (77206 KB) is known, but your audio estimate should have been 88547 KB, not 149730 KB. Select the .ac3 soundtrack for an audio size only if that will be the soundtrack in the finished .avi file.

Your fps is 29.97, and you are not using Inverse Telecine. If the DVD video content was originally shot with a video camera, rather than shot on film, then this is not an issue. If the content was originally shot on film, then one should either use Force FILM in DVD2AVI or use Inverse Telecine filters. For much more information, see www.doom9.org/ivtc-tut.htm.

low
19th July 2004, 17:32
Thx for your help. I'll check the things you found.:)

manono
20th July 2004, 14:43
Yeah, that -66 ms delay is a typical figure you get when demuxing the audio using DVD Decrypter. So go back and get it from DVD2AVI (DGIndex). Of course, by having already extracted it using DVD Decrypter, it's no longer in the vob files, so you'll have to start all over again.