PDA

View Full Version : wrong delay with vorbis in .ogm


s45i
19th December 2002, 21:16
Movie (DVD): "The Hunchback of Notre Dame" PAL.

1) 2 AC3's demuxed by DVD2AVI

2) 2 Ac3's transcoded to 2 vorbis tracks with BeSweet 1.5b8 (Oggmachine v0.6b2 with "Set delay to:" checked and filled (50 ms) automatically by the filename)

3) Ogm created with Oggmux 0.9.4 (2 audio stream, chapters, no subs, i prefer .sub with dvobsub)

4) deleted original files (shame on me! i was too confident with the same method used a lot of times! :mad: )

5) after a while i recognized (both) audio out of synch at least half second

6) used this script for checking the delay manually using avsmon:
LoadPlugin("C:\PROGRA~1\GORDIA~1\avsmon.dll")
video=AVISource("D:\gobbo\VIDEO_TS\gobbo.avi")
audio=WAVSource("D:\gobbo\VIDEO_TS\test.wav") <--- (the vorbis demuxed and decoded, i don't know how to load .ogg in avisynth)
AudioDub(video,audio)
Monitorfilter

7) fixed the delay, both tracks 450ms, with VirtualDubMOD (phew! first time i used it and really needed! great tool!)

8) Happy end :)


i know i cannot replicate this because i'm a stupid fool (see point 4) but i still have the logfile.. i hope DSPguru can spot what went wrong with the delay compensation...

(i am NOT saying BeSweet is the culprit... i thought 50 + 450 = 50 (original delay) x 10.. but since i have no ac3 tracks anymore, i cannot replicate :( )

i hope someone having .ogg desynched audio in .ogm will find useful my experience :)


here come the logs:


BeSweet v1.5b8 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using libVorbis.dll by John33 (http://www.inf.ufpr.br/~rja00).

Logging start : 12/10/02 , 23:13:17.

C:\Programmi\GordianKnot\OggMachine\BeSweet.exe -core( -input D:\gobbo\VIDEO_TS\ITAgob AC3 T03 3_2ch 384Kbps DELAY 50ms.ac3 -output D:\gobbo\VIDEO_TS\0250ITAgob AC3 T03 3_2ch 384Kbps DELAY 50ms.ogg -logfilea C:\PROGRAMMI\GORDIANKNOT\OGGMACHINE\BeSweet.log ) -azid( -L -3db -c normal -s surround2 ) -ota( -hybridgain -d 50 ) -ogg( -q 0.250 ) -profile( The OggMachine v0.6 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : D:\gobbo\VIDEO_TS\ITAgob AC3 T03 3_2ch 384Kbps DELAY 50ms.ac3
[00:00:00:000] | Output: D:\gobbo\VIDEO_TS\0250ITAgob AC3 T03 3_2ch 384Kbps DELAY 50ms.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:050] +-------- AZID -------
[00:00:00:050] | Input Channels Mode: 3/2, Bitrate: 384kbps
[00:00:00:050] | Output Stereo mode: Dolby Surround 2 compatible
[00:00:00:050] | Total Gain: 10.000dB, Compression: Normal
[00:00:00:050] | LFE levels: To LR -3.0dB, To LFE 0.0dB
[00:00:00:050] | Center mix level: BSI
[00:00:00:050] | Surround mix level: BSI
[00:00:00:050] | Dialog normalization: -4dB
[00:00:00:050] | Rear channels filtering: No
[00:00:00:050] | Source Sample-Rate: 48.0KHz
[00:00:00:050] +-------- OGG --------
[00:00:00:050] | VBR Quality : 0.250
[00:00:00:050] +---------------------
[01:27:06:770] Gain of 11.0dB had been asserted to file.
[01:27:06:770] Conversion Completed !
[01:27:06:770] Actual Avg. Bitrate : 94kbps
[00:28:34:000] <-- Transcoding Duration
Logging ends : 12/10/02 , 23:41:51.

BeSweet v1.5b8 by DSPguru.
--------------------------
Using azid.dll v1.8 (b825) by Midas (midas@egon.gyaloglo.hu).
Using libVorbis.dll by John33 (http://www.inf.ufpr.br/~rja00).

Logging start : 12/10/02 , 23:42:25.

C:\Programmi\GordianKnot\OggMachine\BeSweet.exe -core( -input D:\gobbo\VIDEO_TS\ENGgob AC3 T01 3_2ch 384Kbps DELAY 50ms.ac3 -output D:\gobbo\VIDEO_TS\0250ENGgob AC3 T01 3_2ch 384Kbps DELAY 50ms.ogg -logfilea C:\PROGRAMMI\GORDIANKNOT\OGGMACHINE\BeSweet.log ) -azid( -L -3db -c normal -s surround2 ) -ota( -hybridgain -d 50 ) -ogg( -q 0.250 ) -profile( The OggMachine v0.6 )

[00:00:00:000] +------- BeSweet -----
[00:00:00:000] | Input : D:\gobbo\VIDEO_TS\ENGgob AC3 T01 3_2ch 384Kbps DELAY 50ms.ac3
[00:00:00:000] | Output: D:\gobbo\VIDEO_TS\0250ENGgob AC3 T01 3_2ch 384Kbps DELAY 50ms.ogg
[00:00:00:000] | Floating-Point Process: Yes
[00:00:00:050] +-------- AZID -------
[00:00:00:050] | Input Channels Mode: 3/2, Bitrate: 384kbps
[00:00:00:050] | Output Stereo mode: Dolby Surround 2 compatible
[00:00:00:050] | Total Gain: 10.000dB, Compression: Normal
[00:00:00:050] | LFE levels: To LR -3.0dB, To LFE 0.0dB
[00:00:00:050] | Center mix level: BSI
[00:00:00:050] | Surround mix level: BSI
[00:00:00:050] | Dialog normalization: -4dB
[00:00:00:050] | Rear channels filtering: No
[00:00:00:050] | Source Sample-Rate: 48.0KHz
[00:00:00:050] +-------- OGG --------
[00:00:00:050] | VBR Quality : 0.250
[00:00:00:050] +---------------------
[01:27:06:802] Gain of 9.0dB had been asserted to file.
[01:27:06:802] Conversion Completed !
[01:27:06:802] Actual Avg. Bitrate : 96kbps
[00:30:53:000] <-- Transcoding Duration
Logging ends : 12/11/02 , 00:13:18.

DSPguru
21st December 2002, 13:03
very nice, s45i.
must i say that i don't see any flaw from BeSweet's side in the above report.

JohnMK
21st December 2002, 20:21
I've experienced similar desynchs. It's either bad DVD mastering that DVD2AVI can't quite comprehend on its own but normal DVD players can, or DVD2AVI is just nuts sometimes. Anyway, the end result is that the delay information it feeds you just isn't working on occasion. DSPGuru, can you think of another objective way to find the audio delay aside from DVD2AVI?

DSPguru
21st December 2002, 20:38
Originally posted by JohnMK
DSPGuru, can you think of another objective way to find the audio delay aside from DVD2AVI? -core( -input ...vob ) -ota( -d auto ) ;)

JohnMK
21st December 2002, 21:52
I'm sorry. Is that sarcasm or actually helpful? I honestly don't know. Please clarifiy.

DSPguru
21st December 2002, 21:55
forget dvd2avi, feed BeSweet with the vobfile and let it calculate the a/v delay.
'-d auto' is a valid BeSweet switch.