View Full Version : problem converting ac3 avi file


lazy_dave
1st May 2002, 23:08
i've been using dvd2svcd for some time - backing up dvd's and converting avi files with nothing but success (dvd2svcd = great util). any little probs and i've managed to find the answers on this forum.

i can't find an answer to this one - it goes like this.....

i've dl'ed a movie, encoded using divx5 video and 5.1 ac3 sound, and want to convert it to svcd. i use all my usual settings in d2s and hit go.
the ac3 audio is extracted to disk - fine.
besweet then fires up and tries to convert the ac3 audio to mp2 - this takes 10 seconds and no mp2 file is created!
d2s then carries on to convert the video using cce - this completes after about an hour - no problems.
now bbmpeg runs to remux the converted audio and video into an mpg2 file - this fails coz there's no mp2 file from earlier.
i have to terminate bbmpeg and d2s.

checked the settings in d2s and decided to start again - exactly the same results!

besweet log looks like this -
*******************************************
Error 59: Failed to sync to payload's start position : "D:\Temp\Extracted_audio_1.ac3"
Quiting...
[00:00:00:000] Conversion Completed !
Logging ends : 05/01/02 , 22:29:37.
*******************************************

decided i convert the ac3 file myself and re-run d2s using the recover option.
converted the ac3 file to mp2 using the beesweet gui, azid and toolame - worked - created myself an mp2 file called 'Encoded_audio_1.mp2'

launched d2s and started the recover - all started to work. bbmpeg created the mpg files and vcdxbuild created cue and bin files. when i previewed them using daemon tools the audio is out of sync - not a lot, but it's noticeable. i assume this is because i've fiddle the conversion?

anyone come across this before and know how to get d2s to do the complete conversion?
or know how to offset the audio when i use the recover option in d2s?

thanx in advance,
dave.

1loser
3rd May 2002, 01:23
This is all new to me but I think the problem with the AC3 sound could be corrected by unselecting autodetect azid gain (2pass). When NOT using AVI2SVCD but just using besweet I sometimes wasn't able to use the auto find maximum gain and I would just put in a value 15 to 20 db instead. If I saw any overflows I would just reduce the value.

I'm sure someone else knows better than me, I'm just guessing and at all this stuff which is very knew to me.

mrbass
3rd May 2002, 02:45
way back when before auto detect gain I think the default was 6 and I'd put sometimes 8 hoping there wouldn't be an overflow. If there was an overflow then it'd start the audio conversion over again so it was mostly a matter of time trying to find the sweet spot.

1loser
3rd May 2002, 05:27
I tried a small sample with AC3 and using AVI2SVCD and had the same problem as lazy_dave. I wasn't even able to use Besweet outside of AVI2SVCD. I had to convert to wav and than mp2.

My comment about the azid autodetect was wrong, I was confused with another problem I was having with auto find maximum gain not working but not with AVI2SVCD.

TheeeGod 3
3rd May 2002, 06:46
so what can be done with an avi with ac3 audio? any suggestions?

markrb
3rd May 2002, 07:37
Manually convert it to a more standard audio format.
AVI2SVCD may not work for all kinds of avi's. There are just to many codecs etc. for it to always work.

Mark

DSPguru
3rd May 2002, 09:27
the meaning of error 59 is that SYNCWORD wasn't found on the first 1000 bytes of the inputfile.
for AC3 files - this should mean the file is broken, or not even an AC3 file, but when it comes to ac3 that was extracted from avi, i guess it's reasonable.
i might set the error threshold to 2000 bytes. this should be more than enough.

DSPguru
3rd May 2002, 11:03
download the latest BeSplit (v0.4), and fix your stream using the following command :
BeSplit -core( -input D:\Temp\Extracted_audio_1.ac3 -prefix D:\Temp\Extracted_audio -logfile BeSplit.txt -type ac3 -fix )

it will create D:\Temp\Extracted_audio01.ac3.
try to input this to BeSweet.

and i would also thank you if you could post your logfile.

Cheers,
Dg.

lazy_dave
3rd May 2002, 11:50
my d2s log file looks like this (note the times between audio conversion and converting pictures)......

*********************************************
--------------------------------------------------------
- 1/5/02 10:27:33 pm
- AVI to SVCD Conversion
- AVI2SVCD ver. 1.0.8 build 1
--------------------------------------------------------
Initializing
Initializing finished.

--------------------------------------------------------
- 1/5/02 10:27:36 pm
- Free on drive D: 12113.66 mb
- AUDIO Extraction
--------------------------------------------------------
Audio extraction finished.

--------------------------------------------------------
- 1/5/02 10:29:32 pm
- Free on drive D: 11735.41 mb
- AUDIO conversion
--------------------------------------------------------

Converting Audio to MP2. Filename: D:\Temp\Extracted_audio_1.ac3
Executing BeSweet. Commandline:
"C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe" -core( -input "D:\Temp\Extracted_audio_1.ac3" -output "D:\Temp\Encoded_audio_1.mp2" -logfile "D:\Temp\Encoded_audio_1.log" ) -azid( -L -3db -c normal -g max ) -ssrc( --rate 44100 ) -2lame( -e -b 224 -m s )
Audio conversion of D:\Temp\Extracted_audio_1.ac3 finished.

Audio conversion finished.

--------------------------------------------------------
- 1/5/02 10:29:39 pm
- Free on drive D: 11735.41 mb
- Converting Pictures
--------------------------------------------------------
Converting: C:\Program Files\DVD2SVCD\DefaultChangeCD.bmp
Finished converting pictures
--------------------------------------------------------
- 1/5/02 10:29:47 pm
- Free on drive D: 11734.62 mb
- Video Encoding using Cinema Craft
--------------------------------------------------------

Executing Cinema Craft Encoder.
StreamSectors: 2432788764
AudioSectors: 234631040
VideoPAPO: 34050636
ScanOffsetBytes: 247765
SeqAligningBytes: 15746855
DVDBytes: 0
VideoEndHeader: 12
SubtitleSectors: 0
EmptySectors: 238.00
PictureSectors: 900.00
PureMPEGStream: 2148112455.87
Seconds: 8267.84
CalcMPEGStream: 2148112455.87
Frames: 206471
CDSize: 780.00
Cut point 775.00
Variable Settings:
Frames: 206471
Anti Noise Filter: 2
Passes: 3
Image Quality: 20
VAF file creation: On
Video Encoding Mode: CBR
Avg. Bitrate: 2078
Closing program
CCE Max Speed: 1.160
Video Encoding finished.

--------------------------------------------------------
- 2/5/02 12:42:05 am
- Free on drive D: 9291.82 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 2/5/02 12:42:08 am
- Free on drive D: 9291.82 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini

Executing RunbbMPEG. Commandline:
"C:\Program Files\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "D:\Temp\ChangeCDPicture.bmp.mpg"
--------------------------------------------------------
- 2/5/02 12:42:13 am
- Free on drive D: 9291.79 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: 775 mb

Executing RunbbMPEG. Commandline:
"C:\Program Files\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "D:\Temp\bbMPEG_Muxed_File.mpg"
File not found
--------------------------------------------------------
- 2/5/02 7:54:43 pm
- AVI to SVCD Conversion
- AVI2SVCD ver. 1.0.8 build 1
--------------------------------------------------------
Initializing
Initializing finished.

--------------------------------------------------------
- 2/5/02 7:54:54 pm
- Free on drive D: 8943.47 mb
- Crash Recovery
- Restarting Wrom: DREXCAXZOWCONEUQZA
--------------------------------------------------------
- 2/5/02 7:54:57 pm
- Free on drive D: 8943.46 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 2/5/02 7:55:00 pm
- Free on drive D: 8943.46 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini

Executing RunbbMPEG. Commandline:
"C:\Program Files\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "D:\Temp\ChangeCDPicture.bmp.mpg"
--------------------------------------------------------
- 2/5/02 7:55:04 pm
- Free on drive D: 8943.46 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: 775 mb

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

Executing RunbbMPEG. Commandline:
"C:\Program Files\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "D:\Temp\bbMPEG_Muxed_File.mpg"
Length of D:\Temp\bbMPEG_Muxed_File01.mpg
2756 Seconds
Offset in Seconds: 5512
Executing bbMPEG.
Variable Settings:
Movie offset: 2 seconds
Cut point: 775 mb

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

--------------------------------------------------------
- 2/5/02 8:23:54 pm
- Free on drive D: 6622.29 mb
- Determining length of audio
--------------------------------------------------------
Analyzing: D:\Temp\bbMPEG_Muxed_File00.mpg
2756.208 seconds D:\Temp\bbMPEG_Muxed_File00.mpg
Analyzing: D:\Temp\bbMPEG_Muxed_File01.mpg
2758.128 seconds D:\Temp\bbMPEG_Muxed_File01.mpg
Analyzing: D:\Temp\bbMPEG_Muxed_File02.mpg
2746.608 seconds D:\Temp\bbMPEG_Muxed_File02.mpg
Analyzing finished.

--------------------------------------------------------
- 2/5/02 8:26:10 pm
- Free on drive D: 6622.28 mb
- Creating CD-Images using VCDXBuild
--------------------------------------------------------
- No. of chapters to create: 97

CD image #1: CD_Image_File_CD1.bin

Executing VCDXBuild. Commandline:
"C:\Program Files\DVD2SVCD\VCDImager\VCDXBuild.exe" --cue-file="D:\Temp\CD_Image_File_CD1.cue" --bin-file="D:\Temp\CD_Image_File_CD1.bin" "D:\Temp\VCDXBuild_Script_1.xml"
--------------------------------------------------------
- 2/5/02 8:31:12 pm
- Free on drive D: 5835.80 mb
- Creating CD-Images using VCDXBuild
--------------------------------------------------------
- No. of chapters to create: 97

CD image #2: CD_Image_File_CD2.bin

Executing VCDXBuild. Commandline:
"C:\Program Files\DVD2SVCD\VCDImager\VCDXBuild.exe" --cue-file="D:\Temp\CD_Image_File_CD2.cue" --bin-file="D:\Temp\CD_Image_File_CD2.bin" "D:\Temp\VCDXBuild_Script_2.xml"
--------------------------------------------------------
- 2/5/02 8:35:27 pm
- Free on drive D: 5049.35 mb
- Creating CD-Images using VCDXBuild
--------------------------------------------------------
- No. of chapters to create: 97

CD image #3: CD_Image_File_CD3.bin

Executing VCDXBuild. Commandline:
"C:\Program Files\DVD2SVCD\VCDImager\VCDXBuild.exe" --cue-file="D:\Temp\CD_Image_File_CD3.cue" --bin-file="D:\Temp\CD_Image_File_CD3.bin" "D:\Temp\VCDXBuild_Script_3.xml"
CD-Image creation finished.

--------------------------------------------------------
- 2/5/02 8:39:57 pm
- Free on drive D: 4265.82 mb
- SVCD Creation finished!
--------------------------------------------------------
*********************************************

btw - searched the web for BeSplit and can't find it. do u know where i can download it?

DSPguru
3rd May 2002, 11:56
Originally posted by lazy_dave

--------------------------------------------------------
- 1/5/02 10:29:32 pm
- Free on drive D: 11735.41 mb
- AUDIO conversion
--------------------------------------------------------

Converting Audio to MP2. Filename: D:\Temp\Extracted_audio_1.ac3
Executing BeSweet. Commandline:
"C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe" -core( -input "D:\Temp\Extracted_audio_1.ac3" -output "D:\Temp\Encoded_audio_1.mp2" -logfile "D:\Temp\Encoded_audio_1.log" ) -azid( -L -3db -c normal -g max ) -ssrc( --rate 44100 ) -2lame( -e -b 224 -m s )
Audio conversion of D:\Temp\Extracted_audio_1.ac3 finished.

Audio conversion finished.

--------------------------------------------------------
- 1/5/02 10:29:39 pm
- Free on drive D: 11735.41 mb
- Converting Pictures
--------------------------------------------------------BeSweet didn't do anything 'cause it failed to sync to payload's start address ;)
btw - searched the web for BeSplit and can't find it. do u know where i can download it? get it from here : http://DSPguru.doom9.org (http://dspguru.notrace.dk).
and please post your BeSplit logfile.

lazy_dave
3rd May 2002, 12:22
thanx for the link.

ran besplit - log file looks like.....

*******************************
BeSplit v0.4 logfile.
--------------------------
Logging start : 05/03/02 , 12:19:38.

BeSplit -core( -input D:\Temp\Extracted_audio_1.ac3 -prefix D:\Temp\Extracted_audio -logfile BeSplit.txt -type ac3 -fix

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : D:\Temp\Extracted_audio_1.ac3
[00:00:00:000] | Output Prefix : D:\Temp\Extracted_audio
[00:00:00:000] +---------------------
[00:00:00:032] Stream error : Sync found after 7199 bytes
[01:08:44:512] Stream error : Sync found after 1 bytes
[02:17:38:560] | Writing D:\Temp\Extracted_audio01.ac3
[02:17:38:560] +---------------------
[02:17:38:560] Operation Completed !
[00:01:15:000] <-- Process Duration
Logging ends : 05/03/02 , 12:20:53.
********************************

should i rename the besplit file and try the recover in d2s now?

DSPguru
3rd May 2002, 12:27
delete D:\Temp\Extracted_audio_1.ac3
rename D:\Temp\Extracted_audio01.ac3 to D:\Temp\Extracted_audio_1.ac3 .

and run BeSweet (or crash recovery)


EDIT : question -
BeSplit's recovered track length is 02:17:38:560.
is this also the playbacking length of your AVI file ?

lazy_dave
3rd May 2002, 15:53
Originally posted by DSPguru
EDIT : question -
BeSplit's recovered track length is 02:17:38:560.
is this also the playbacking length of your AVI file ?
yes, kinda... virtualdub shows the length of the avi file as 2:17:38.840

anyways, i renamed the file and re-ran d2s from convert audio in the recorver option - everything worked as it should do, and ended up with 3 sets of cue and bin files. checked them using daemon tools and win dvd - near perfect results - a little sync problem, but not realy noticeable (that may be down to the slightly different times for audio and video above!?).

10/10 for some excelent advice - i'm more than happy with the results now.

thanx,
dave.

DSPguru
3rd May 2002, 16:00
cool :cool: !

TheeeGod 3
3rd May 2002, 19:02
@dave or dsp

so you ran d2s, got a ac3 file, put that file into besplit, converted it using besplit and then re-ran from audio extraction in d2s? is this correct? if not, i feel mad dumb :confused:

lazy_dave
3rd May 2002, 20:31
Originally posted by TheeeGod 3
@dave or dsp

so you ran d2s, got a ac3 file, put that file into besplit, converted it using besplit and then re-ran from audio extraction in d2s? is this correct? if not, i feel mad dumb :confused:
nearly - re-ran d2s from audio processing :D

DSPguru
3rd May 2002, 23:06
BeSplit doesn't transcode, that would be.. BeSweet.
BeSplit is a powerful streams manipulator, and used here in order to fix the stream.

lazy_dave
4th May 2002, 10:03
ok - thanx for the audio advice - now i have a problem with the video.

i only checked the start of each disk to see if all was ok!
about half way through disk 2 the video stops - the audio is ok, but at the top of the screen i get the following error message.....

**********************************
Avisynth: caught an access violation at 0x11612c59, attempting to write to 0xfffffff2
**********************************

any ideas what happened to the video?

DSPguru
4th May 2002, 12:11
i suggest that the moderators here export your last post and the logfile post into a new thread.
the topic of the thread just doesn't fit :).