WhipHubley
12th July 2004, 00:28
Hi there, I hope someone can help me with this issue I'm having. It's driving me nuts, and I just can't work it out!
I've got an AVI file that's mp42 video 29.97 FPS and MP3 audio 96 kb/s CBR 48000 Hz, that I want to convert to DVD. But after running it through AVI2DVD I find that the audio is ahead of the video by about a second, and this gap ever so slightly increases as the film goes on. By the end it's about two seconds ahead.
So the first thing I did was to run the AVI through VirtualDub and convert the audio to PCM, 16 bit, high quality (as advised in one of the stickies) which had always helped me before with issues such as this. Unfortunately, it had no effect this time. The same audio / video sync issue occured when ran through AVI2DVD.
I then decided to check the file lengths of the Encoded_Video_CCE_NTSC.mpv and Encoded_audio_1.mp2 files. I found that they were both the same length. So I then used TMPGEnc to mux those two files together manually - which resulted in the same audio / video sync issue as above. This (I think) rules out any problems with bbMPEG muxing the files together - something is going wrong before this point.
So I then thought I'd try and rule out the audio conversion by bringing together the Encoded_Video_CCE_NTSC.mpv and the Extracted_audio_1.wav file in TMPGEnc DVD Author. All I'm doing now is muxing the MPEG2 video file with the original extracted audio - surely they would mux together perfectly this time! But no - still the same audio / video sync issue.
This leads me to believe that something strange has happened when converting the video from mp42 to MPEG2. An important factor is that this is the first time I have had to amend the AVISYNTH.INI file so that it would accept the mp42 video. I needed to change the AVIReader to DirectShowSource as recommended by Nick. This indeed worked fine, but I'm wondering if it may have had some effect? I could of course be barking up the wrong tree, though.
That's the background, now's here's the log file. I really hope someone can spot something or advise on a course of action, as I'm all out of ideas on how to solve this one. Thanks very much in advance.
WNASPI32.DLL 4.6.0.1021
--------------------------------------------------------
- 11/07/2004 22:20:12
- AVI to SVCD Conversion
- AVI2DVD ver. 1.2.2 build 1
--------------------------------------------------------
Initializing
- D:\Captures&Rips\movie.avi
Initializing finished.
--------------------------------------------------------
- 11/07/2004 22:20:14
- Free on drive D: 16934.33 mb
- AUDIO Extraction
--------------------------------------------------------
Audio extraction finished.
--------------------------------------------------------
- 11/07/2004 22:22:03
- Free on drive D: 16013.15 mb
- AUDIO conversion
--------------------------------------------------------
Encoding Audio. Filename: D:\Captures&Rips\conversion\Extracted_audio_1.wav
Executing BeSweet. Commandline:
"C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe" -core( -input "D:\Captures&Rips\conversion\Extracted_audio_1.wav" -output "D:\CAPTUR~1\CONVER~1\Encoded_audio_1.mp2" -logfile "D:\CAPTUR~1\CONVER~1\Encoded_audio_1.log" ) -ota( -g max ) -shibatch( --rate 48000 ) -2lame( -e -b 224 -m s )
Audio conversion of D:\Captures&Rips\conversion\Extracted_audio_1.wav finished.
Audio conversion finished.
--------------------------------------------------------
- 11/07/2004 22:25:24
- Free on drive D: 15878.80 mb
- Video Encoding using Cinema Craft
--------------------------------------------------------
Executing Cinema Craft Encoder.
StreamSectors: 4546875788
AudioSectors: 142914380
VideoPAPO: 68219712
ScanOffsetBytes: 226167
SeqAligningBytes: 14374169
DVDBytes: 0
VideoEndHeader: 4
SubtitleSectors: 0
EmptySectors: 238.00
PictureSectors: 0.00
PureMPEGStream: 4321141355.67
Seconds: 5035.96
CalcMPEGStream: 4321141355.67
Frames: 150778
CDSize: 4350.00
Number of CDs: 1
Cut point 4346.00
Variable Settings:
Frames: 150778
Anti Noise Filter: Off
Passes: 3
Image Quality: 17
VAF file creation: Off
Video Encoding Mode: CBR
Avg. Bitrate: 6864
Aspect Ratio: 4:3 (No borders, encoded as 4:3)
---AVS Begin---
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
DirectShowSource("D:\CAPTUR~1\movie.avi",29.970,audio=false)
ConvertToYUY2()
Levels(0,1.2,255,0,255)
BicubicResize(720,480,0.6,0.2)
Import("D:\Captures&Rips\conversion\ResampleAudio.avs")
ResampleAudio(44100)
----AVS End----
Closing program
CCE Max Speed: 1.850
Video Encoding finished.
--------------------------------------------------------
- 11/07/2004 23:14:58
- Free on drive D: 11762.20 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 11/07/2004 23:15:01
- Free on drive D: 11762.20 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 11/07/2004 23:15:03
- Free on drive D: 11762.20 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 11/07/2004 23:15:05
- Free on drive D: 11762.20 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: 4346 mb
Executing RunbbMPEG. Commandline:
"C:\Program Files\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "D:\Captures&Rips\conversion\bbMPEG_Muxed_File.mpg"
Multiplexing and cutting finished.
Image creation finished.
--------------------------------------------------------
- 11/07/2004 23:28:16
- Free on drive D: 7427.67 mb
- Conversion done!
--------------------------------------------------------
I've got an AVI file that's mp42 video 29.97 FPS and MP3 audio 96 kb/s CBR 48000 Hz, that I want to convert to DVD. But after running it through AVI2DVD I find that the audio is ahead of the video by about a second, and this gap ever so slightly increases as the film goes on. By the end it's about two seconds ahead.
So the first thing I did was to run the AVI through VirtualDub and convert the audio to PCM, 16 bit, high quality (as advised in one of the stickies) which had always helped me before with issues such as this. Unfortunately, it had no effect this time. The same audio / video sync issue occured when ran through AVI2DVD.
I then decided to check the file lengths of the Encoded_Video_CCE_NTSC.mpv and Encoded_audio_1.mp2 files. I found that they were both the same length. So I then used TMPGEnc to mux those two files together manually - which resulted in the same audio / video sync issue as above. This (I think) rules out any problems with bbMPEG muxing the files together - something is going wrong before this point.
So I then thought I'd try and rule out the audio conversion by bringing together the Encoded_Video_CCE_NTSC.mpv and the Extracted_audio_1.wav file in TMPGEnc DVD Author. All I'm doing now is muxing the MPEG2 video file with the original extracted audio - surely they would mux together perfectly this time! But no - still the same audio / video sync issue.
This leads me to believe that something strange has happened when converting the video from mp42 to MPEG2. An important factor is that this is the first time I have had to amend the AVISYNTH.INI file so that it would accept the mp42 video. I needed to change the AVIReader to DirectShowSource as recommended by Nick. This indeed worked fine, but I'm wondering if it may have had some effect? I could of course be barking up the wrong tree, though.
That's the background, now's here's the log file. I really hope someone can spot something or advise on a course of action, as I'm all out of ideas on how to solve this one. Thanks very much in advance.
WNASPI32.DLL 4.6.0.1021
--------------------------------------------------------
- 11/07/2004 22:20:12
- AVI to SVCD Conversion
- AVI2DVD ver. 1.2.2 build 1
--------------------------------------------------------
Initializing
- D:\Captures&Rips\movie.avi
Initializing finished.
--------------------------------------------------------
- 11/07/2004 22:20:14
- Free on drive D: 16934.33 mb
- AUDIO Extraction
--------------------------------------------------------
Audio extraction finished.
--------------------------------------------------------
- 11/07/2004 22:22:03
- Free on drive D: 16013.15 mb
- AUDIO conversion
--------------------------------------------------------
Encoding Audio. Filename: D:\Captures&Rips\conversion\Extracted_audio_1.wav
Executing BeSweet. Commandline:
"C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe" -core( -input "D:\Captures&Rips\conversion\Extracted_audio_1.wav" -output "D:\CAPTUR~1\CONVER~1\Encoded_audio_1.mp2" -logfile "D:\CAPTUR~1\CONVER~1\Encoded_audio_1.log" ) -ota( -g max ) -shibatch( --rate 48000 ) -2lame( -e -b 224 -m s )
Audio conversion of D:\Captures&Rips\conversion\Extracted_audio_1.wav finished.
Audio conversion finished.
--------------------------------------------------------
- 11/07/2004 22:25:24
- Free on drive D: 15878.80 mb
- Video Encoding using Cinema Craft
--------------------------------------------------------
Executing Cinema Craft Encoder.
StreamSectors: 4546875788
AudioSectors: 142914380
VideoPAPO: 68219712
ScanOffsetBytes: 226167
SeqAligningBytes: 14374169
DVDBytes: 0
VideoEndHeader: 4
SubtitleSectors: 0
EmptySectors: 238.00
PictureSectors: 0.00
PureMPEGStream: 4321141355.67
Seconds: 5035.96
CalcMPEGStream: 4321141355.67
Frames: 150778
CDSize: 4350.00
Number of CDs: 1
Cut point 4346.00
Variable Settings:
Frames: 150778
Anti Noise Filter: Off
Passes: 3
Image Quality: 17
VAF file creation: Off
Video Encoding Mode: CBR
Avg. Bitrate: 6864
Aspect Ratio: 4:3 (No borders, encoded as 4:3)
---AVS Begin---
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
DirectShowSource("D:\CAPTUR~1\movie.avi",29.970,audio=false)
ConvertToYUY2()
Levels(0,1.2,255,0,255)
BicubicResize(720,480,0.6,0.2)
Import("D:\Captures&Rips\conversion\ResampleAudio.avs")
ResampleAudio(44100)
----AVS End----
Closing program
CCE Max Speed: 1.850
Video Encoding finished.
--------------------------------------------------------
- 11/07/2004 23:14:58
- Free on drive D: 11762.20 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 11/07/2004 23:15:01
- Free on drive D: 11762.20 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 11/07/2004 23:15:03
- Free on drive D: 11762.20 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 11/07/2004 23:15:05
- Free on drive D: 11762.20 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: 4346 mb
Executing RunbbMPEG. Commandline:
"C:\Program Files\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "D:\Captures&Rips\conversion\bbMPEG_Muxed_File.mpg"
Multiplexing and cutting finished.
Image creation finished.
--------------------------------------------------------
- 11/07/2004 23:28:16
- Free on drive D: 7427.67 mb
- Conversion done!
--------------------------------------------------------