Log in

View Full Version : Corrupt ac3 audio from avi file?


onisama
30th September 2002, 05:30
I am having trouble extracting the ac3 audio from an avi:

* Vdub and Nandub won't sav as wav. In vdub the error msg is: "The requested audio compression is not compatible with the input format. Check that the sampling rate and channel count of the imput match those of the requested format." Channel count and sampling rate were set to no change. I even tried changing the interleave values. I can open ather avi files with ac3 audio so think everything is set right as far as codecs and the lot.

* The audio craeted by DVD2SVCD causes choppy playback when muxed with the mpv file.

* I used AVI2WAV and fixed with AC3Fix and Blesplit both and same choppy playback results when muxed.

* I used Goldwave sound editor to extract audio and again same choppy result.

When I burn the mpv file by itself (no sound) it plays smoothly, so I know the audio is the culprit.

I had another avi file that was doing the same crap, but when I used Goldwave, it fixed it. They are both sg1 amc rips.

I ran a crc check on the file and there was an error but i fixed and checksums now check out ok, but I still get the same choppy playback on pan shots.

Any help would be greatly appreciated as I have been working on this for two weeks and have gotten nothing but 25 or so frisbees.

DJ Bobo
30th September 2002, 10:06
AFAIK, SVCD can't accept AC3 sound.

onisama
30th September 2002, 13:36
I know that, I'm converting the ac3 to an mp2 file before muxing.

HeadAC3che gives me th error: "Warning: Source file's last frame incomplete or corrupt stream."

But converts without any other error msgs. My prob is how to fixthe audio stream so I don't get shoppy playback in the camera pans and high motion scenes.

DJ Bobo
30th September 2002, 14:22
Well, after fixing the AC3 with AC3fix, I'm wondering why there should be any problem afterwards.

Don't know what's happening, but here is my method (hopefully DSPguru won't knock me down, he's a super quality freak :D)

Decode the AC3 to WAV using AZID that way:
azid -c normal -a filename.ac3 filename.wav

Then take that WAV and encode it to MP2 using TMPG for example. You'll have to test if your DVD player accepts 48 or 44,1KHz. So you'll have to select 44,1KHz if your DVD player doesn't accept SVCDs with 48KHz sampling.

Then mux the mpv and the mp2 file with bbMPEG choosing SVCD as muxing type.

That's it.

NB: I havn't give you all super power tips for super high quality. But this should be OK for the moment (that was an anti-DSPguru security :D)

DSPguru
30th September 2002, 18:06
@onisama
post your BeSplit logfile.

@bobo
lol :)

onisama
30th September 2002, 19:34
Besplit did not generate a log file. I'll try it agian adn see if I get one. Is there a switch to initiate log generation?

DSPguru
30th September 2002, 19:36
-logfile ;)

onisama
1st October 2002, 02:10
Here is the log:

BeSplit v0.82 by DSPguru.
--------------------------
Logging start : 09/30/02 , 20:09:06.

BeSplit -core( -input new.wav -prefix track -type ac3 -fix -logfile log.txt)

[00:00:00:000] +------- BeSplit -----
[00:00:00:000] | Input : new.wav
[00:00:00:000] | Output Prefix : track
[00:00:00:000] +---------------------
[00:00:00:032] Stream error : Sync found after 46 bytes
[00:42:26:272] | Writing track01.ac3
[00:42:26:272] +---------------------
[00:42:26:272] Operation Completed !
[00:00:12:000] <-- Process Duration
Logging ends : 09/30/02 , 20:09:18.

DSPguru
1st October 2002, 17:35
try playbacking that ac3 on wmp and see if it sounds okay, if it does, try to decode the ac3 to wav using BeSweet/AZID and see if there are problems.

onisama
2nd October 2002, 00:59
I am such a tard. The real prob was I was taking a 25fps pal avi and encoding it at 480x480 rather than 480x576. When I encoded at pal resolution it played fine. I had done this a couple of times before, but had never had any trouble. Apparently it is not the best of ideas.:rolleyes: