Log in

View Full Version : Audio gets more and more behind as movie gets on...


DrFresh
23rd August 2002, 19:36
I've tried searching for this, and got all kind of topics with audio sync problems, but not this one.

I've got an avi, where audio and video is in perfect sync all through the movie. But when processed by DVD2SVCD (1.0.9 b3 in AVI2SVCD mode) audio gets more and more behind picture when getting through the movie. It starts out perfect but then gets behind. The avi and SVCD is both in 25 fps.

I've newer seen this before and I have converted LOTS of avis using this wonderfull tool.

Anyones got an idea?

Dr. Fresh

UltimateDBZ
23rd August 2002, 21:09
Could be any number of factors, post your logfile please.

DrFresh
24th August 2002, 17:59
OK - here's the full content of the logfile:


--------------------------------------------------------
- 24-08-2002 12:59:07
- AVI to SVCD Conversion
- AVI2SVCD ver. 1.0.9 build 3
--------------------------------------------------------
Initializing
Initializing finished.

--------------------------------------------------------
- 24-08-2002 12:59:08
- Free on drive C: 15900.95 mb
- AUDIO Extraction
--------------------------------------------------------
Audio extraction finished.

--------------------------------------------------------
- 24-08-2002 12:59:57
- Free on drive C: 15801.05 mb
- AUDIO conversion
--------------------------------------------------------

Converting MP2 to WAV. Filename: C:\Temp\Extracted_audio_1.mpa
Executing MADPlay (mp2 to wav). Commandline:
"C:\Program Files\DVD2SVCD\MADPlay\madplay.exe" --quiet --output=wave:"C:\Temp\Encoded_audio_1.mp2.wav" "C:\Temp\Extracted_audio_1.mpa"
Conversion (mp2 to wav) of C:\Temp\Extracted_audio_1.mpa finished.


Converting Audio to MP2. Filename: C:\Temp\Extracted_audio_1.mpa
Executing BeSweet. Commandline:
"C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe" -core( -input "C:\Temp\Encoded_audio_1.mp2.wav" -output "C:\Temp\Encoded_audio_1.mp2" -logfile "C:\Temp\Encoded_audio_1.log" ) -ota( -g max ) -2lame( -e -b 192 -m s )
Audio conversion of C:\Temp\Extracted_audio_1.mpa finished.

Audio conversion finished.

--------------------------------------------------------
- 24-08-2002 13:07:09
- Free on drive C: 14499.11 mb
- Video Encoding using Cinema Craft
--------------------------------------------------------
- Editing AVS script file

Executing Cinema Craft Encoder.
StreamSectors: 1664388376
AudioSectors: 154111412
VideoPAPO: 23394996
ScanOffsetBytes: 189618
SeqAligningBytes: 12051277
DVDBytes: 0
VideoEndHeader: 8
SubtitleSectors: 0
EmptySectors: 238.00
PictureSectors: 0.00
PureMPEGStream: 1474641064.67
Seconds: 6335.60
CalcMPEGStream: 1474641064.67
Frames: 158015
CDSize: 798.00
Cut point 794.00
Variable Settings:
Frames: 158015
Anti Noise Filter: Off
Passes: 3
Image Quality: 17
VAF file creation: On
Video Encoding Mode: Multipass VBR
Min. bitrate: 300
Max. bitrate: 2530
Avg. Bitrate: 1862
Aspect Ratio: 4:3 (No borders, encoded as 4:3)

---AVS Begin---
LoadPlugin("C:\PROGRA~2\DVD2SVCD\SIMPLE~1\SIMPLE~1.DLL")
LoadPlugin("C:\PROGRA~2\DVD2SVCD\MPEG2Dec\mpeg2dec.dll")
AVISource("D:\GOLDFI~1.AVI")
ConvertToYUY2()
SimpleResize(480,442)
addborders(0,68,0,66)
ResampleAudio(44100)
----AVS End----

Closing program
CCE Max Speed: 1.840
Video Encoding finished.

--------------------------------------------------------
- 24-08-2002 17:12:16
- Free on drive C: 13057.38 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 24-08-2002 17:12:18
- Free on drive C: 13057.36 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 24-08-2002 17:12:20
- Free on drive C: 13057.36 mb
- Multiplexing and cutting
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
Offset in Seconds: 2
Executing bbMPEG.
Variable Settings:
Movie offset: 2 seconds
Cut point: 794 mb

Executing RunbbMPEG. Commandline:
"C:\Program Files\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "C:\Temp\bbMPEG_Muxed_File.mpg"
Length of C:\Temp\bbMPEG_Muxed_File00.mpg
3233 Seconds
Offset in Seconds: 3235
Executing bbMPEG.
Variable Settings:
Movie offset: 2 seconds
Cut point: 794 mb

Executing RunbbMPEG. Commandline:
"C:\Program Files\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "C:\Temp\bbMPEG_Muxed_File.mpg"
Multiplexing and cutting finished.

CD-Image creation finished.

--------------------------------------------------------
- 24-08-2002 17:21:51
- Free on drive C: 11471.84 mb
- SVCD Creation finished!
--------------------------------------------------------


Thanks

Dr. Fresh

hoozdapimp
24th August 2002, 18:08
is your bbMPEG_Muxed_File.mpg in sync? im assuming not but just making sure

DrFresh
26th August 2002, 14:38
Nope ...

Dr. Fresh

hoozdapimp
27th August 2002, 23:42
check your "C:\Temp\Encoded_audio_1.mp2" and make sure the length of the audio is the same as your video file.

UltimateDBZ
12th October 2002, 01:56
As fate would have it, I'm experiencing a similar situation to this one. I processed a captured MP2 file (from my Dazzle DVC-II), and all went well, output is perfect, and fills 3 CDs to the brim. The audio sync is perfect at the beginning of the first CD, then gets further and further out of sync as it goes on. At the end, there is a noticeable 1 (perhaps slightly more) second offset between the video, and the corresponding audio.

I've checked about everything I could think of, and read about every out of sync post I could find, all to no avail. Encoded audio and video files are both the same length, but the muxed files are out of sync, and obviously the images are then as well. Hopefully somebody can lend a hand :) TIA!

Log:

Drive is harddisk, no need to authenticate - OK.
--------------------------------------------------------
- 10/9/2002 6:46:28 PM
- DVD to SVCD Conversion
- DVD2SVCD ver. 1.1.0 build 1 Pre 22
--------------------------------------------------------
Initializing
Initializing finished.

--------------------------------------------------------
- 10/9/2002 6:46:34 PM
- DVD2AVI
--------------------------------------------------------
Creating DVD2AVI INI file:
- C:\Documents and Settings\Me\Warez\DVD Conversion\DVD2SVCD\DVD2SVCD\DVD2AVI\DVD2AVI.INI

Variable settings:
iDCT_Algorithm: 32-bit SSE MMX

Executing DVD2AVI.
Executing DVD2AVI. Commandline:
"C:\Documents and Settings\Me\Warez\DVD Conversion\DVD2SVCD\DVD2SVCD\DVD2AVI\DVD2AVI.exe" -CS=2 -YR=1 -EXIT -OF=[D:\LOTR\DVD2AVI_Project_file] -IF=[D:\LOTR\VTS_01_1.vob]
Analyzing DVD2AVI Project file
Force Film NOT activated!
Framerate: 29970
DVD2AVI processing done.

--------------------------------------------------------
- 10/9/2002 6:50:06 PM
- Free on drive D: 30377.70 mb
- AUDIO Extraction
--------------------------------------------------------
Found MPA stream id: 0xC0
Filename: D:\LOTR\Extracted_audio_1.mpa
Audio1 delay: -35 ms
Audio extraction finished.

--------------------------------------------------------
- 10/9/2002 7:08:45 PM
- Free on drive D: 30091.44 mb
- AUDIO conversion
--------------------------------------------------------

Converting Audio to MP2. Filename: D:\LOTR\Extracted_audio_1.mpa
Executing BeSweet. Commandline:
"C:\Documents and Settings\Me\Warez\DVD Conversion\DVD2SVCD\DVD2SVCD\BeSweet\BeSweet.exe" -core( -input "D:\LOTR\Extracted_audio_1.mpa" -output "D:\LOTR\Encoded_audio_1.mp2" -logfile "D:\LOTR\Encoded_audio_1.log" ) -ota( -g max -d -35 ) -2lame( -e -b 224 -m s )
Audio conversion of D:\LOTR\Extracted_audio_1.mpa finished.

Audio conversion finished.

--------------------------------------------------------
- 10/9/2002 7:31:31 PM
- Free on drive D: 29805.19 mb
- Video Encoding using Cinema Craft
--------------------------------------------------------
- Editing AVS script file

Executing Cinema Craft Encoder.
StreamSectors: 2501804592
AudioSectors: 297132696
VideoPAPO: 34151544
ScanOffsetBytes: 376230
SeqAligningBytes: 23911507
DVDBytes: 0
VideoEndHeader: 12
SubtitleSectors: 0
EmptySectors: 238.00
PictureSectors: 1.00
PureMPEGStream: 2146232603.33
Seconds: 10470.29
CalcMPEGStream: 2146232603.33
Frames: 313525
CDSize: 800.00
Number of CDs: 3
Cut point 795.00
Variable Settings:
Frames: 313525
Anti Noise Filter: Off
Passes: 2
Image Quality: 5
VAF file creation: On
Video Encoding Mode: Multipass VBR
Min. bitrate: 300
Max. bitrate: 2500
Avg. Bitrate: 1639
Aspect Ratio: 4:3 (No borders, encoded as 4:3)

---AVS Begin---
LoadPlugin("C:\DOCUME~1\Me\Warez\DVDCON~1\DVD2SVCD\DVD2SVCD\MPEG2Dec\MPEG2D~1.DLL")
LoadPlugin("C:\DOCUME~1\Me\Warez\DVDCON~1\DVD2SVCD\DVD2SVCD\INVERS~1\DONALD~1\Decomb.dll")
mpeg2source("D:\LOTR\DVD2AV~1.D2V")
Telecide()
BicubicResize(480,480,0,0.55)
TemporalSmoother(2,1)
ResampleAudio(44100)
----AVS End----

Closing program
CCE Max Speed: 0.570
Video Encoding finished.

--------------------------------------------------------
- 10/10/2002 8:30:44 PM
- Free on drive D: 27698.71 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Documents and Settings\Me\Warez\DVD Conversion\DVD2SVCD\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 10/10/2002 8:30:47 PM
- Free on drive D: 27698.71 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Documents and Settings\Me\Warez\DVD Conversion\DVD2SVCD\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 10/10/2002 8:30:50 PM
- Free on drive D: 27698.71 mb
- Multiplexing and cutting
--------------------------------------------------------
Saving bbMPEG settings: C:\Documents and Settings\Me\Warez\DVD Conversion\DVD2SVCD\DVD2SVCD\bbMPEG\default.ini
Offset in Seconds: 2
Executing bbMPEG.
Variable Settings:
Movie offset: 2 seconds
Cut point: 795 mb

Executing RunbbMPEG. Commandline:
"C:\Documents and Settings\Me\Warez\DVD Conversion\DVD2SVCD\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "D:\LOTR\bbMPEG_Muxed_File.mpg"
Length of D:\LOTR\bbMPEG_Muxed_File00.mpg
3469 Seconds
Offset in Seconds: 3471
Executing bbMPEG.
Variable Settings:
Movie offset: 2 seconds
Cut point: 795 mb

Executing RunbbMPEG. Commandline:
"C:\Documents and Settings\Me\Warez\DVD Conversion\DVD2SVCD\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "D:\LOTR\bbMPEG_Muxed_File.mpg"
Length of D:\LOTR\bbMPEG_Muxed_File01.mpg
3635 Seconds
Offset in Seconds: 7106
Executing bbMPEG.
Variable Settings:
Movie offset: 2 seconds
Cut point: 795 mb

Executing RunbbMPEG. Commandline:
"C:\Documents and Settings\Me\Warez\DVD Conversion\DVD2SVCD\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "D:\LOTR\bbMPEG_Muxed_File.mpg"
Multiplexing and cutting finished.

--------------------------------------------------------
- 10/10/2002 10:57:27 PM
- Free on drive D: 25313.71 mb
- Determining length of audio
--------------------------------------------------------
Analyzing: D:\LOTR\bbMPEG_Muxed_File00.mpg
3471.576 seconds D:\LOTR\bbMPEG_Muxed_File00.mpg
Analyzing: D:\LOTR\bbMPEG_Muxed_File01.mpg
3637.944 seconds D:\LOTR\bbMPEG_Muxed_File01.mpg
Analyzing: D:\LOTR\bbMPEG_Muxed_File02.mpg
3355.320 seconds D:\LOTR\bbMPEG_Muxed_File02.mpg
Analyzing finished.

--------------------------------------------------------
- 10/10/2002 11:00:58 PM
- Free on drive D: 25313.71 mb
- Creating CD-Images using VCDXBuild
--------------------------------------------------------
- No. of chapters to create: 57

CD image #1: CD_Image_File_CD1.bin

Executing VCDXBuild. Commandline:
"C:\Documents and Settings\Me\Warez\DVD Conversion\DVD2SVCD\DVD2SVCD\VCDImager\vcdxbuild.exe" --verbose --cue-file="D:\LOTR\CD_Image_File_CD1.cue" --bin-file="D:\LOTR\CD_Image_File_CD1.bin" "D:\LOTR\VCDXBuild_Script_1.xml"
--------------------------------------------------------
- 10/10/2002 11:03:11 PM
- Free on drive D: 24507.98 mb
- Creating CD-Images using VCDXBuild
--------------------------------------------------------
- No. of chapters to create: 60

CD image #2: CD_Image_File_CD2.bin

Executing VCDXBuild. Commandline:
"C:\Documents and Settings\Me\Warez\DVD Conversion\DVD2SVCD\DVD2SVCD\VCDImager\vcdxbuild.exe" --verbose --cue-file="D:\LOTR\CD_Image_File_CD2.cue" --bin-file="D:\LOTR\CD_Image_File_CD2.bin" "D:\LOTR\VCDXBuild_Script_2.xml"
--------------------------------------------------------
- 10/10/2002 11:05:12 PM
- Free on drive D: 23702.20 mb
- Creating CD-Images using VCDXBuild
--------------------------------------------------------
- No. of chapters to create: 55

CD image #3: CD_Image_File_CD3.bin

Executing VCDXBuild. Commandline:
"C:\Documents and Settings\Me\Warez\DVD Conversion\DVD2SVCD\DVD2SVCD\VCDImager\vcdxbuild.exe" --verbose --cue-file="D:\LOTR\CD_Image_File_CD3.cue" --bin-file="D:\LOTR\CD_Image_File_CD3.bin" "D:\LOTR\VCDXBuild_Script_3.xml"
CD-Image creation finished.

--------------------------------------------------------
- 10/10/2002 11:07:11 PM
- Free on drive D: 22895.54 mb
- SVCD Creation finished!
--------------------------------------------------------

da franksta
12th October 2002, 02:40
@ultimatedbz: i'm not sure what you're trying to back up, but are you sure force film should 'not' be activated? fps of 29.97 is uncommon for cinematic material.

@drfresh: are you sure your avi has 25 fps?


if asynch progresses during the course of the movie, then most of the time the framerate is off.

UltimateDBZ
12th October 2002, 03:11
Originally posted by da franksta
@ultimatedbz: i'm not sure what you're trying to back up, but are you sure force film should 'not' be activated? fps of 29.97 is uncommon for cinematic material.I'm backing up the Lord of the Rings VHS, which I've been using for most of my VHS capture tests. I don't know much about the VHS standard, so could the framerate be the source of the problem?

da franksta
12th October 2002, 03:23
could the framerate be the source of the problem?
yes, it could.

so you're making a svcd from a dvd you made from a vhs:confused:
My guess is it all depends at what framerate the vhs was captured.

UltimateDBZ
12th October 2002, 03:27
No, I'm making an SVCD from VHS that was captured directly to MPEG-2 video. And the framerate of NTSC is 29.97, so I don't see the problem :confused: The video plays at the same speed and length as it should, I don't believe it was captured at the wrong framerate...

da franksta
12th October 2002, 03:50
I'm making an SVCD from VHS that was captured directly to MPEG-2 video
okay, NOW i get it :D

The video plays at the same speed and length as it should, I don't believe it was captured at the wrong framerate...
sorry to be of no help, then. :(

Arianos
12th October 2002, 07:48
I'm VERY far from being able to give advice here, but lately the wife gave me a bunch of old VHS tapes(originals) of training material to back up . She works all over the globe, so, they were PAL of every kind and NTSC.
I use IuVCR. On 2 of the 6 NTSC ones, the result AVI was gradually out of sync as you describe. So, after trying 23,97(?)fps and other silly things, I forced 29.00 fps capture (don't ask me why, it was one of the desperate, shot in the dark tests I did) , and they both came out 100% fine. One was about 20 mins, the other about 1.5 hrs.
I don't know why, I just know I dood it twice and it worked.
Just my two cents.

UltimateDBZ
12th October 2002, 16:06
What confuses me is that the captured video/audio is perfectly in sync 100% of the way through. Things only go bad once the muxing/cutting stage is complete. Therefore I doubt that recapturing would make a difference, but I certainly could be wrong.

Any other thoughts, anybody?

UltimateDBZ
13th October 2002, 20:27
After doing a _LOT_ of searching of the web, I came accross some interesting information specific to the DVC-II. Apparently, a default setting in the program installation (in the registry) is incorrect, and to make a long story short, this causes progressingly worsening audio sync problems in long captures, but only after the video has been edited (:confused:). But anyway, there was a fix, and I have applied it. I'll do a test or two, and post back results.

Here's the fix, if this happens to apply to a reader:

Open registry (Start|Run|regedit)
Search for SAA7114
Expand SAA7114 and look under AudioClockGeneration
Here you will find a reg key named reg3a with the value 9 - open that and change the value to 1.

Hopefully this post will help someone down the line who experiences the same trouble :)

Holomatrix
15th October 2002, 17:16
I was going to suggest using a different muxing method other than bbMpeg. Maybe TMPEG?

Mac Sidewinder
15th October 2002, 18:13
If all else fails and you can't find the source of the problem, there is a way to fix the final mpeg file:

1. Find a point in the movie as close to the end as you can that you can see a single point of noise (such as a door slamming, gunshot, etc) and write down the time that it happens on the video (don't worry about the corresponding audio).
2. demux the mpeg using tmpge.
3. Load the audio into a sound editor that lets you stretch or shrink the audio file (I use Sound Forge for this).
4. Find the same spot in the audio file and write down the time.
5. Subtract the two times to find the difference (the closer to the end of the movie the more accurate this is)
6. Now if the sound occurs before the video you must stretch the audio by the amount of the difference.
7. If the video occurs before the audio, you must shrink the audio file (Soundforge does this by entering negative numbers into the stretch command)
8. Save the resulting audio file as a uncompressed wav file.
9> Convert the wav file using besweet into a mp2 file.
10. Using tmpge, remux the new audio and old video file.

Problem should be fixed now. If it still async but not as much as it was its because you didn't find a point near enough to the end of the movie for your reference point. Find a closer point to the end and try again. It sounds complicated but actually it is pretty easy.

Mac

UltimateDBZ
15th October 2002, 22:16
Originally posted by Holomatrix
I was going to suggest using a different muxing method other than bbMpeg. Maybe TMPEG? Tried and failed, it seems the Regfix is/was the only solution to this particular problem.

@Mac: While that may work nicely, it's certainly alot of extra work, and the output isn't technicallly what it's supposed to be no matter how close it is. I'm much more interested in fixing problems, than devising workarounds ;)

Mac Sidewinder
17th October 2002, 15:04
@UltimateDBZ - I agree that finding a fix is the better solution. Please note thats why I stated "If all else fails". My post was more to help other users that were having sync problems and couldn't find a solution. I'm glad to hear that you solved yours.

v/r
Mac