Why can't AVI2DVD 0.4.2 convert this AVI?

Discussion about Avi2Dvd.
Requests and bug fixing.

Moderators: george, roger_rabbit, reburn, Excalibur!, skyheartblue

Post Reply
nuujin
Junior Member
Posts: 3
Joined: Mon Nov 21, 2005 4:51 pm

Why can't AVI2DVD 0.4.2 convert this AVI?

Post by nuujin »

I have two AVI files I'm trying to convert from AVI to DVD. The first one (C:\Lost\Lost01.avi) converts just fine. The second one (C:\Lost\Lost02.avi) does not. I am using HCEnc, but that doesn't seem to be the problem, since that part of the AVI2DVD process appears to work fine. Here is the log from the failed attempt to convert Lost02.avi:

Code: Select all

[9:31:20 PM] AVI2DVD Started !
[9:31:22 PM] Type mode : Avi Input
[9:31:22 PM] Output : Dvd
[9:31:22 PM] Encoder Selected : HCEnc
[9:31:22 PM] Start demuxing the AudioStream No.1 ...
[9:32:17 PM] Demuxing of the selected audio finished successfully ! 
[C:\Lost\Avi2dvd_temp\Extracted_Audio.ac3 
129917978 Bytes]
[9:32:19 PM] Audio extracted renamed successfully ! 
[C:\Lost\Avi2dvd_temp\Fixed_Audio01.ac3 
129917978 Bytes]
[9:32:19 PM] Starts Ac3->Ac3 convertion ...
[9:32:19 PM] Audio converted in Ac3 successfully ! 
[C:\Lost\Avi2dvd_temp\AudioStream 1 AC3 
6CH.ac3129917978 Bytes]
[9:32:19 PM] Start creating avisynth script ...
[9:32:19 PM] Avisynth script created successfully ! 
[C:\Lost\Avi2dvd_temp\Avisynth_Script_File.avs 
152 Bytes]
[9:32:20 PM] Bitrate used : 7616 Kbpps
[9:32:20 PM] Start video encoding ...
[12:46:21 AM] Video encoded successfully ! 
[C:\Lost\Avi2dvd_temp\Encoded_Video.m2v 
2509807499 Bytes]
[12:46:22 AM] Pulldown of the m2v is starting ...
[12:51:58 AM] M2v pulldowned successfully ! 
[C:\Lost\AVI2DV~1\Pulldown_Video.m2v 
2509807499 Bytes]
[12:51:58 AM] Muxing Video+Audio(s) ...
[12:51:59 AM] M2v muxed successfully ! 
[C:\Lost\Avi2dvd_temp\Encoded_Video_Muxed.mpg -1 Bytes]
[12:51:59 AM] Job NOT Done. There are warnings ... Find 
at the log file the 0 byte generated file to focus where 
exactly the problem appears
and here is all that remains in "C:\Lost\Avi2dvd_temp" after the failed conversion attempt finishes:

Code: Select all

C:\Lost\Avi2dvd_temp\AudioStream 1 AC3 6CH.ac3 (129,917,978 bytes)
C:\Lost\Avi2dvd_temp\Avi2Dvd_Log.txt (1,443 bytes)
C:\Lost\Avi2dvd_temp\Avisynth_Script_File.avs (152 bytes)
There are no other files or subdirectories. It appears
AVI2DVD deleted everything else after it finished.

Now here is what GSpot reports about Lost01.avi, which AVI2DVD can convert:

Code: Select all

AVI File Details
========================================
Name.........: Lost01.avi
Filesize.....: 698 MB (or 714,868 KB or 732,025,084 bytes)
Runtime......: 00:41:25 (59,583 fr)
Video Codec..: XviD
Video Bitrate: 1965 kb/s (23.976 FPS)
Audio Codec..: ac3 (0x2000) Dolby Laboratories, Inc
Audio Bitrate: 384 kb/s (192/ch, stereo) CBR, Fs 48000 Hz
Frame Size...: 960x528 (1.82:1) [=20:11]
Comments/Meta:
ISFT: Software: cant touch this
And here is what GSpot reports about Lost02.avi, which AVI2DVD cannot convert:

Code: Select all

AVI File Details
========================================
Name.........: Lost01.avi
Filesize.....: 698 MB (or 714,868 KB or 732,025,084 bytes)
Runtime......: 00:41:25 (59,583 fr)
Video Codec..: XviD
Video Bitrate: 1965 kb/s (23.976 FPS)
Audio Codec..: ac3 (0x2000) Dolby Laboratories, Inc
Audio Bitrate: 384 kb/s (192/ch, stereo) CBR, Fs 48000 Hz
Frame Size...: 960x528 (1.82:1) [=20:11]
Comments/Meta:
ISFT: Software: VirtualDubMod 1.5.10.2 (build 2540/release)
JUNK: VirtualDubMod build 2540
JUNK: release
The only substantial difference I can see between the 2 files is that Lost01.avi seems to be 2-channel AC3 format, which Lost02.avi is 6-channel AC3 format. Is that the problem? Can AVI2DVD not handle 6-channel AC3?

Or is there another problem?

Thanks to anyone who can help!
nuujin
Junior Member
Posts: 3
Joined: Mon Nov 21, 2005 4:51 pm

Post by nuujin »

Well, I wasn't able to figure out why the problem is happening, but I determined a couple of things:
  1. The problem seems to be related to the audio
  2. The problem seems to be common with 6-channel (5.1) AC3 files. At least I found that I had the same problem with two different AVIs, both of which had 5.1 AC3 sound.
So based on that, here's what I've done as a workaround.
  1. Use AVI2DVD to start encoding C:\Lost\Lost02.avi (using any video encoder).
  2. Wait 1-2 minutes until the demuxing is done. This will produce the file "C:\Lost\Avi2dvd_temp\AudioStream 1 AC3 6CH.ac3".
  3. Once the video encoding process begins (with HCEnc/FreeEnc/Qenc, etc), go to the "C:\Lost\Avi2dvd_temp" directory and rename "AudioStream 1 AC3 6CH.ac3" to "bad.ac3"
  4. From a DOSPrompt, use BeSweet to manually process the bad.ac3 file and produce another ac3 file. I did it this way:

    Code: Select all

    C:\Program Files\AVI2DVD\Programs\BeSweet\BeSweet.exe \
       -core( -input   C:\Lost\Avi2dvd_temp\bad.ac3 \ 
              -output  C:\Lost\Avi2dvd_temp\good.ac3 \
              -logfile C:\Lost\Avi2dvd_temp\BeSweet_log.txt ) \
       -ac3enc( -b 384 ) \
       -shibatch( --rate 48000 )
    
    This processes the "bad.ac3" file and produces a cleaned-up "good.ac3" file that is still (apparently) in 5.1 channels mode.
  5. Rename the file "C:\Lost\Avi2dvd_temp\good.ac3" to "C:\Lost\Avi2dvd_temp\AudioStream 1 AC3 6CH.ac3" . AVI2DVD will now automatically find it and use it when the muxing process occurs after the video encoding has completed. This should produce an ISO without any errors.
I don't know what caused the problem, but it seems like BeSweet was able to "clean-up" the original AC3 file when I ran the audio through it. Here's what the BeSweet_log.txt file contained when it finished:

Code: Select all

[00:00:00:000] +------- BeSweet -----                  
[00:00:00:000] |  Input : C:\Lost\Avi2dvd_temp\bad.ac3             
[00:00:00:000] |  Output: C:\Lost\Avi2dvd_temp\good.ac3     
[00:00:00:000] |  Floating-Point Process: No                
[00:00:00:000] +-------- AZID -------                       
[00:00:00:000] |  Input Channels Mode: 3/2, Bitrate: 384kbps
[00:00:00:000] |  Total Gain: 0.000dB, Compression:  None
[00:00:00:000] |  LFE levels: To LR -INF, To LFE 0.0dB
[00:00:00:000] |  Center   mix level: BSI    
[00:00:00:000] |  Surround mix level: BSI    
[00:00:00:000] |  Dialog normalization: No   
[00:00:00:000] |  Rear channels filtering: No
[00:00:00:000] |  Source Sample-Rate: 48.0KHz
[00:00:00:000] +------- AC3ENC ------  
[00:00:00:000] |  Bitrate method  : CBR
[00:00:00:000] |  AC3 bitrate     : 384
[00:00:00:000] |  Channels Mode   : 5.1
[00:00:00:000] |  Error Protection: Yes
[00:00:00:000] +---------------------
[00:10:39.936] E7: CRC error
[00:10:40:064] Stream error : Sync found after 17653 bytes
[00:18:09.984] E7: CRC error
[00:27:48.832] E7: CRC error
[00:45:15:904] Conversion Completed !
[00:45:15:904] Actual Avg. Bitrate  : 384kbps
[00:04:55:000] <-- Transcoding Duration
The Changelog for AVI2DVD 0.4.2 says the following:

Code: Select all

Added : If an avi has ac3 sound will not be reencoded on an dvd output
Added : Real 5.1 ch support if the source has an 6ch ac3
But maybe this functionality still isn't working? Maybe AVI2DVD still needs to process AC3 audio from the source with BeSweet to clean up any oddities in the extracted source audio?

Anyway, just wanted to pass along what had worked for me.
trustfm
Site Admin
Posts: 1649
Joined: Sun Feb 27, 2005 4:40 pm

Post by trustfm »

I will explain you how a2d works :

Now avi2dvd downmix the ac3 only if the original ac3 is not 48/44.1/32khz . If you have an 5.1 ac3 with sampling rate 22khz then will be downmixed [will be processed by the ffmpeg and not by the besweet] because besweet CANNOT handlethis kind of streams at least for the moment .
Tell me the sample rate of the ac3 ...

Now at your case on 2nd avi avi2dvd only extracts it dpoes ot reencode it i have to see whats wrong with that ...made the ac3 is damaged ...



in order to join the two files you must rename them like this :
C:\Lost\Lost CD1.avi
C:\Lost\Lost CD2.avi
Post Reply