Back Forum Reply New

quot;garbagequot; in avi files causes problem.

I have a couple of avi files which I encoded myself using AGK. They play fine from start to finish, but when I convert them to DVD using D2SRoba the sound always cuts out at the same place at the end.

I believe this may be caused by what GSpot reports as quot;garbagequot; at the end of the file. The latest beta of GSpot says quot;Garbage at endquot; in the container info box. None of my other avi's say this apart from the two I've had sound trouble with converting.

Here are the D2SRoba log and DVD2SVCD log files.

--------------------------------------------------------
D2SRoBa v3.80, by Tylo
--------------------------------------------------------
- WIN_XP - AutoIt 3.1.1.0
- 2005-12-17 18:52:31
--------------------------------------------------------
- INI file         : C:\Program Files\DVD2SVCD\Tylo\D2SRoBa.ini
- Output type      : DVD
- CD size          : 4400
- Sample file size  : 1.0%  (delete previous: Yes)
- Adjust estimated  : 1.4%  (accuracy tweak: Yes)
- Sizing pass        : Encode (1 pass) if opv pass lt; -4.0% from target, or Q gt; 40          Transcode (ReJig) if opv pass gt; 0.0% above target, and Q lt;= 40
- Cond. filtering   : No
- Run mode          : Normal
--------------------------------------------------------
- Waiting for CCE window, or 'Ripping done' message box...
- Detected a CCE encode window
- Detected the movie encode window - shutting down
--------------------------------------------------------
- 2005-12-17 18:56:16
- Copying D2SRoBa.ini to project dir C:\Program Files\DVD2SVCD\Movie\
- Avisynth setup: LanczosResize
- D2S ver. 1.2.3.1, CCE ver. 2.50.1.0
- Setting process priority 1
--------------------------------------------------------
- Movie length     : 02:07:02 (190551 frames, 25 fps)
- D2S audio select : 362 + 0 kbps
- D2S video calc.  : 4348 kbps, 1 CDs
- Select ranges   : every 1200, select 12 frames
- Sample frames  : 1908
--------------------------------------------------------
Calculations:
- 1 CD:  video_br=4348 (4348) audio_br=362+0 video_sz=4142578740 fill=100% cbr=0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Using num CDs    : 1
- Target mpv br    : 4348 (max 8000) kbps, size=4142578740 bytes
--------------------------------------------------------
Search for Q:
- Sample enc. Q=18 : 4709 kbps, err=8.3%, size=4487367771, sample sz=45570300
- Sample enc. Q=20 : 4348 kbps, err=0%, size=4143359777, sample sz=42076816
--------------------------------------------------------
- Determined Q   : 20   = Round(20 + (0/4.2)) with 1.4% adjustment.
--------------------------------------------------------
- 2005-12-17 18:59:06
- Start movie OPV encoding (Q 20)
- OPV pass result: 100.3% on target, 4361 kbps (4155249064 / 4142578740) Speed: 2.26
--------------------------------------------------------
- 2005-12-17 19:55:27
- Executing: quot;C:\Program Files\DVD-RB PRO\Encoders\ReJig\ReJig.exequot; -level 99.7 -o quot;C:\Program Files\DVD2SVCD\Movie\Encoded_Video_CCE_PAL.mpvquot; -i quot;C:\Program Files\DVD2SVCD\Movie\Encoded_Video_CCE_PAL.oversz.mpvquot; -auto -close
- Transcoding pass: 100% on target, 4347 kbps (4142521057 / 4142578740) Speed: 28.44
--------------------------------------------------------
- 2005-12-17 19:59:58
- Recover DVD2SVCD: Muxing
--------------------------------------------------------
- 2005-12-17 21:36:00
- D2SRoBa successfully finished
--------------------------------------------------------

WNASPI32.DLL 4.6.0.1021
--------------------------------------------------------
- 17/12/2005 18:52:40
- AVI to SVCD Conversion
- AVI2DVD ver. 1.2.3 build 1
--------------------------------------------------------
Initializing
- C:\Documents and Settings\HP_Owner\Desktop\40yo.avi
Initializing finished.

--------------------------------------------------------
- 17/12/2005 18:52:43
- Free on drive C: 87022.17 mb
- AUDIO Extraction
--------------------------------------------------------
Checking C:\Program Files\DVD2SVCD\Movie\Extracted_audio_1.ac3
Audio extraction finished.

--------------------------------------------------------
- 17/12/2005 18:54:42
- Free on drive C: 86768.77 mb
- AUDIO conversion
--------------------------------------------------------
--------------------------------------------------------
- 17/12/2005 18:54:45
- Free on drive C: 86768.77 mb
- AUDIO conversion
--------------------------------------------------------

Encoding Audio. Filename: C:\Program Files\DVD2SVCD\Movie\Extracted_audio_1.ac3
Executing BeSweet. Commandline:
quot;C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exequot; -core( -input quot;C:\Program Files\DVD2SVCD\Movie\Extracted_audio_1.ac3quot; -output quot;C:\PROGRA~1\DVD2SVCD\Movie\Encoded_audio_1.ac3quot;  -payload -logfile quot;C:\PROGRA~1\DVD2SVCD\Movie\Encoded_audio_1.logquot; )
Audio conversion of C:\Program Files\DVD2SVCD\Movie\Extracted_audio_1.ac3 finished.

Audio conversion finished.

--------------------------------------------------------
- 17/12/2005 18:55:28
- Free on drive C: 86439.63 mb
- Video Encoding using Cinema Craft
--------------------------------------------------------

Executing Cinema Craft Encoder.
StreamSectors: 4599165788
AudioSectors: 370903428
VideoPAPO: 65498040
ScanOffsetBytes: 285827
SeqAligningBytes: 18165862
DVDBytes: 0
VideoEndHeader: 4
SubtitleSectors: 0
EmptySectors: 238.00
PictureSectors: 0.00
PureMPEGStream: 4144312627.50
Seconds: 7624.04
CalcMPEGStream: 4144312627.50
Frames: 190551
CDSize: 4400.00
Number of CDs: 1
Cut point 4396.00
Variable Settings:
Frames: 190551
Anti Noise Filter: Off
Passes: 3
Image Quality: 17
VAF file creation: On
Video Encoding Mode: Multipass VBR
Min. bitrate: 800
Max. bitrate: 8000
Avg. Bitrate: 4348
Aspect Ratio: 16:9 (borders added, encoded as 4:3)

---AVS Begin---
LoadPlugin(quot;C:\PROGRA~1\DVD2SVCD\dgindex\DGDecode.dllquot;)
AVISource(quot;C:\DOCUME~1\HP_Owner\Desktop\40yo.aviquot;,audio=false)
ConvertToYUY2()
Import(quot;C:\Program Files\DVD2SVCD\Tylo\RoBaConditional.avsquot;)
LanczosResize(720,432)
AddBorders(0,72,0,72)
Import(quot;C:\Program Files\DVD2SVCD\Movie\ResampleAudio.avsquot;)
ResampleAudio(44100)
----AVS End----

--------------------------------------------------------
- 17/12/2005 20:00:04
- AVI to SVCD Conversion
- AVI2DVD ver. 1.2.3 build 1
--------------------------------------------------------
Initializing
-
Initializing finished.

--------------------------------------------------------
- 17/12/2005 20:00:04
- Free on drive C: 82358.68 mb
- Restarting from: Muxing and Cutting
--------------------------------------------------------
- 17/12/2005 20:00:06
- Free on drive C: 82358.68 mb
- Multiplexing Audio and Video
--------------------------------------------------------
Executing MPlex. Commandline:
quot;C:\Program Files\DVD2SVCD\DVDAuthor\mplex.exequot;  -f 8 -o quot;C:\Program Files\DVD2SVCD\Movie\MPlex_Muxed_File00.mpgquot; quot;C:\Program Files\DVD2SVCD\Movie\Encoded_Video_CCE_PAL.mpvquot; quot;C:\Program Files\DVD2SVCD\Movie\Encoded_audio_1.ac3quot;
--------------------------------------------------------
- 17/12/2005 20:06:31
- Free on drive C: 77980.95 mb
- Determining length of audio
--------------------------------------------------------
Analyzing: C:\Program Files\DVD2SVCD\Movie\MPlex_Muxed_File00.mpg
7190.144 seconds C:\Program Files\DVD2SVCD\Movie\MPlex_Muxed_File00.mpg
Analyzing finished.

--------------------------------------------------------
- 17/12/2005 20:08:51
- Free on drive C: 82371.31 mb
- Authoring DVD
--------------------------------------------------------
Executing DVDAuthor. Commandline:
quot;C:\Program Files\DVD2SVCD\DVDAuthor\dvdauthor.exequot; -x quot;C:\Program Files\DVD2SVCD\Movie\DVDAuthor.xmlquot;
Image creation finished.

--------------------------------------------------------
- 17/12/2005 20:16:49
- Free on drive C: 77993.43 mb
- Conversion done!
--------------------------------------------------------

I have tried fixing the file with DivFix but all it ever comes up with is I/O error 131 - can't seem to make it do anything else! I've also tried the VDub suggestion from the stickies for problems specific to avi. No success with that either.

I've checked the audio that was extracted from the file by DVD2SVCD and it's seven minutes too short - which is clearly why it cuts out.

Anybody any ideas where this problem is arising from, and how I can fix it?

(Sorry for the disgustingly long first post!)

Reencode from your source - that should give you better quality than going from Source -gt; Avi -gt; DVD.
You can also just reuse the AC3 instead of reencoding it. Last but not least you cant resample your audio to 44100Hz - this is not allowed for DVD Video - it has to be 48000Hz.

@Communist - he is not re-encoding or resampling the audio.  This only appears in the avisynth script as it seems to stop CCE crashing on older AMD machines.  

The audio is prepared in a separate stage and according to that logfile, the AC3 audio is being retained.

However, you are of course correct in saying that re-encoding from the original DVD is a much better solution.

@Yazuka - if there is a good reason why you can't re-read the AC3 from the DVD (scratched disk etc) then try demuxing it in VDubMod.  Save the demuxed AC3 file over the Encoded_Audio_1 file created by DVD2SVCD.  Then crash recover DVD2SVCD from the muxing stage.

Interestingly, that solution works Nick - why is it that DVD2SVCD fails to extract all the audio properly?
¥
Back Forum Reply New