Log in

View Full Version : access violations problem


si1
28th July 2003, 09:57
hi guys,

i have tried several solutions provided from this excellent forum but i am still unable to successfully encode my avi to svcd without getting an access violation, the only way i can get close to completing it is by using divfix to strip the index & then rebuild it but halfway through the the completed conversion the svcd freezes.
here are the various answers i have tried :-

using mpeg2dec2, mpeg2dec3, bilinear & bicubic resize in avisynth

switching from avisythn 2 to 2.5

scanning for errors in virtual dubmod and then deleting bad frames but this deletes half the avi after only 1 bad frame was found

scan for errors in virtual dubmod and save as avi without taking any other action.

here are my project & avisynth logs :-

Import("C:\MYSHAR~1\RESAMP~1.AVS")
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
AVISource("C:\MYSHAR~1\fixedpb.avi",False)
ConvertToYUY2()
BicubicResize(480,440,0.0,0.6)
AddBorders(0,68,0,68)
ConvertToYUY2()
ResampleAudio(44100)

----------------------------------------------

[Settings]
XPos=4
YPos=395
UseDVDRip=0
UsevStrip=0
UseInternalRip=1
Save diskspace=0
iDCT=0
DVD2AVI Pause=0
WavConv=5
BitRate=9
tooLame Mode=0
Autodetect Azid Gain=1
NoOfpasses=4
CCE Image Quality=5
CCE Anti noise value=2
CCE Anti noise=0
CBR=1
One Pass VBR=0
Multi Pass VBR=0
Dont Delete Files=1
Create VAF=1
QFactor=5
Linear quantizer scale=1
Zigzag scanning order=1
Use2Streams=0
Pri1Audio1=28
Pri1Audio2=-1
Pri2Audio1=-1
Pri2Audio2=-1
Sub1=-1
Sub2=-1
Sub3=-1
Sub4=-1
Sub5=-1
Sub6=-1
Sub7=-1
Sub8=-1
Azid Gain Offset=6
Rip subtitles=0
Min. Delay. Between Subtitles=100
SVCD subtitles=1
Permanent subtitles=0
PAL Y-Pos=-1
NTSC Y-Pos=-1
MinsHigh1=50
MinsHigh2=76
MinsHigh3=100
MinsHigh4=125
MinsHigh5=163
NumCd1=1
NumCd2=1
NumCd3=2
NumCd4=2
NumCd5=3
NumCd6=3
CDSize 1=795
CDSize 2=795
CDSize 3=795
CDSize 4=795
CDSize 5=795
CDSize 6=795
MaxBitrate=2530
MinBitrate=0
MaxAvg=2230
MinAvg=1600
Adjust Audio Bitrate=1
Use Min. Avg.=0
Force Film=0
Movie Offset=2
CDOverlap=2
Data Preparer=dvd2svcd
Use I-Author=0
Use VCDImager=0
No images=1
Use VCDXBuild=0
Length of Chapters=60
Use TitlePicture=0
Use ChangeCD Picture=0
Avisynth Bicubic b Value=0
Avisynth Bicubic c Value=0.75
SmartDeinterlace Mode=2
SmartDeinterlace Treshold=10
SmartDeinterlace Denoise=1
SmartDeinterlace Blend=0
SmartDeinterlace Fast=1
Edit Avisynth Script file=0
UseAVI2SVCD=1
UsePVA2SVCD=0
UseDVD2SVCD=0
UseCDOverlap=1
FirstRun=0
Use CDMage=0
RunPerCDImage=0
RunFinal=0
RunPerCDImage Params=
RunFinal Params=
bbMPEG videoDelay Adjustment=180
bbMPEG audioDelay Adjustment=180
bbMPEG audio1Delay Adjustment=180
Use MPEGAV=0
FixedChapters=1
DVDChapters=0
ForceIAuthorSupport=1
TMPGEnc Rate Control Mode=2
ResizeMethod=2
Auto Intra DC=1
DC component precision=0
Avisynth Setup=BicubicResize
Frames pr spread=25
Spread=100
CCE Timecode=01:00:00:00
Prediction Size=0.95
UseMPEG1=0
UseMPEG2=1
Convert to Canopus codec=0
Convert to Divx4=1
Use Frameselection=0
New Default Folder=0
DVD2SVCD Level=1
Eject DVD=0
Luminance Gain=0
Luminance Offset=0
Audio1Downsampling=1
Audio2Downsampling=1
Audio1BitRate=10
Audio2BitRate=9
Folder Structure Source=
Folder Structure Video=
Folder Structure Audio=
Folder Structure Muxed=
Folder Structure Subs=Subs
Intra=8,16,19,22,26,27,29,34,16,16,22,24,27,29,34,37,19,22,26,27,29,34,34,38,22,22,26,27,29,34,37,40,22,26,27,29,32,35,40,48,26,27,29,32,35,40,48,58,26,27,29,34,38,46,56,69,27,29,35,38,46,56,69,83
NonIntra=16,17,18,19,20,21,22,23,17,18,19,20,21,22,23,24,18,19,20,21,22,23,24,25,19,20,21,22,23,24,26,27,20,21,22,23,25,26,27,28,21,22,23,24,26,27,28,30,22,23,24,26,27,28,30,31,23,24,25,27,28,30,31,33
Matrice Preset=
Use deafult Matrice=1
LFEDownmixLR6Ch=-3
LFEDownmixLFE6Ch=0
CenterDownmix6Ch=0
SurroundDownmix6Ch=0
DynamicCompression6Ch=1
StereoDownmixType6Ch=0
RearChannelFiltering6Ch=0
DialogNorm6Ch=0
LFEDownmixLR2Ch=-3
LFEDownmixLFE2Ch=0
CenterDownmix2Ch=-1
SurroundDownmix2Ch=-1
DynamicCompression2Ch=1
StereoDownmixType2Ch=0
RearChannelFiltering2Ch=0
DialogNorm2Ch=0
No Audio Conversion=0
Flip Vertival=0
Add ResampleAudio=1
Resize To=0
Use CCE=1
Use TMPGEnc=0
Use ProCoder=0
ProCoder CBR VBR Type=2
ProCoder Quality=3
ProCoder Field Order=2
Procoder Close GOPs=0
ProCoder Frames In GOP=15
ProCoder Distance IP=0
Procoder Use Sequence Header=1
ProCoder Picture Structure=1
Procoder DC Precision=1
CCE Safe Mode=0
RoBa Multi Pass=0
RoBa Visibel=0
CCE Bias=20
CCE Field Order=2
Progressive=1
DVD Compliant=0
Restrict auto I frame insertion=0
Close all GOPs=0
Intra DC=2
M GOP=3
MN GOP=5
SEQ Header=1
Constrained Parameter Set=1
TMPGEnc Motion search precision=4
TMPGEnc Field Order=2
TMPGEnc Num of passes=2
OffsetFixed CQ Value=80
OffsetFixed CQ_VBR Value=25
Use fixed CQ Value=0
Output YUV data as Basic YCbCr not CCIR601=0
Use floating point DCT=1
No motion search for still picture part by half pixel=1
Soften block noise=0
Soften Intra=35
Soften NonIntra=35
TMPGEnc GOP I Pictures=1
TMPGEnc GOP P Pictures=4
TMPGEnc GOP B Pictures=3
TMPGEnc SEQ Headers=1
TMPGEnc Max frames in GOP=0
TMPGEnc Close GOPs=0
TMPGEnc Detect Scene Change=1
Enabled Padding=0
TMPGEnc VBVBuffer=0
Use CCE Template=0
CCE Template=
SubOutputPalette0=clBlack
SubBlendPalette0=0
SubOutputPalette1=clWhite
SubBlendPalette1=15
SubOutputPalette2=$001E1E1E
SubBlendPalette2=15
SubOutputPalette3=clGray
SubBlendPalette3=15
Resize Subtitles=100
CVD subtitles=0
External PAL Y-Pos=480
External NTSC Y-Pos=400
SubStreamIDOffset=1
External Subtitle Font Name=Verdana
External Subtitle Font Size=18
External Subtitle Font Style=0
bbMPEG MPEG1=0
bbMPEG VCD=0
bbMPEG MPEG2=0
bbMPEG SVCD=1
bbMPEG DVD=0
bbMPEG VBR=1
bbMPEG Pad VCD=0
bbMPEG Write PEC=1
bbMPEG Add Scan Offsets=1
bbMPEG Align Sequence Headers=1
bbMPEG Use Private Stream 2=0
bbMPEG Computed Bitrate=1
bbMPEG TimeStamps=0
bbMPEG Pulldown=2
bbMPEG MuxRate=0
bbMPEG Pack Size=2324
bbMPEG Packets Pack=1
bbMPEG Video Buffer=230
bbMPEG Audio 1 Buffer=4
bbMPEG Audio 2 Buffer=4
PBCType=0
Use LastCD Picture=0
Use EntrySVD=0
Save XML=1
Save Movie Info=1
ProcessPriority=0
Automatic Shutdown=0

[Executables]
vStrip Executable=C:\Program Files\DVD2SVCD\vStrip\vStrip.exe
DVD2AVI Executable=C:\Program Files\DVD2SVCD\DVD2AVI\DVD2AVI.exe
SubMux Executable=C:\Program Files\DVD2SVCD\WinSubMux\WinSubMux.exe
Pulldown Executable=C:\Program Files\DVD2SVCD\pulldown\pulldown.exe
BeSweet Executable=C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe
MPEG51 Executable=C:\Program Files\DVD2SVCD\MPEG5.1\pub_enc.exe
bbMPEG Executable=C:\Program Files\DVD2SVCD\bbMPEG\RunbbMPEG.exe
VCDImager Executable=C:\Program Files\DVD2SVCD\VCDImager\VCDImager.exe
VCDXBuild Executable=C:\Program Files\DVD2SVCD\VCDImager\VCDXBuild.exe
Title Picture=C:\Program Files\DVD2SVCD\DefaultTitlepicture.bmp
Change CD Picture=C:\Program Files\DVD2SVCD\DefaultChangeCD.bmp
Last CD Picture=C:\Program Files\DVD2SVCD\DefaultLastCD.bmp
PVA Executable=
CDMage Executable=
RunPerCDImage Executable=
RunFinal Executable=
VFAPI Executable=C:\Program Files\DVD2SVCD\VFAPI\Reader\VFAPIConv-EN.exe
ProCoder Frameserver Executable=C:\Program Files\DVD2SVCD\VFAPI\Reader\VFAPIConv-EN.exe
MadPlay Executable=C:\Program Files\DVD2SVCD\MADPlay\madplay.exe
AVS2 MPG2Dec DLL=C:\Program Files\DVD2SVCD\Avisynth2 Plugins\Mpeg2dec\mpeg2dec.dll
AVS2 Dividee MPEG2Dec=C:\Program Files\DVD2SVCD\Avisynth2 Plugins\Mpeg2dec\mpeg2dec.dll
AVS2 InverseTelecine DLL=C:\Program Files\DVD2SVCD\Avisynth2 Plugins\InverseTelecine\decomb.dll
AVS2 Subtitle DLL=C:\Program Files\DVD2SVCD\Avisynth2 Plugins\Avisynth Subtitler.dll
AVS2 BMP Loader DLL=C:\Program Files\DVD2SVCD\Avisynth2 Plugins\Avisynth BMP Loader.dll
AVS2 SimpleResize DLL=C:\Program Files\DVD2SVCD\Avisynth2 Plugins\SimpleResize\SimpleResize.dll
AVS2.5 MPG2Dec DLL=C:\Program Files\DVD2SVCD\Avisynth2.5 Plugins\Mpeg2dec\mpeg2dec3.dll
AVS2.5 Dividee MPEG2Dec=C:\Program Files\DVD2SVCD\Avisynth2.5 Plugins\Mpeg2dec\mpeg2dec.dll
AVS2.5 InverseTelecine DLL=C:\Program Files\DVD2SVCD\Avisynth2.5 Plugins\InverseTelecine\decomb.dll
AVS2.5 Subtitle DLL=C:\Program Files\DVD2SVCD\Avisynth2.5 Plugins\Avisynth Subtitler.dll
AVS2.5 BMP Loader DLL=C:\Program Files\DVD2SVCD\Avisynth2.5 Plugins\Avisynth BMP Loader.dll
AVS2.5 SimpleResize DLL=C:\Program Files\DVD2SVCD\Avisynth2.5 Plugins\SimpleResize\SimpleResize.dll
CCE Executable=C:\Program Files\encoder\Cinema Craft Encoder SP\cctsp.exe
TMPGEnc Executable=C:\Program Files\Pegasys Inc\TMPGEnc Plus 2.5\TMPGEnc.exe
ProCoder Executable=
I-Author Executable=

[Folders]
vStrip Folder=C:\My Shared Folder\
DVD2AVI Folder=C:\My Shared Folder\
Audio Folder=C:\My Shared Folder\
CCE Folder=C:\My Shared Folder\
Pulldown Folder=C:\My Shared Folder\
Subpictures Folder=C:\My Shared Folder\Subs
bbMPEG Folder=C:\My Shared Folder\
I-Author Folder=C:\My Shared Folder\
PVA Folder=C:\My Shared Folder\
TMPGEnc Folder=C:\My Shared Folder\
ProCoder Folder=C:\My Shared Folder\

[AVISYNTH_SimpleResize]
0=LoadPlugin(!SimpleResize.dll)
1=ConvertToYUY2().SimpleResize(^TargetWidth,^TargetHeight)
2=AddBorders(0,^BorderTop,0,^BorderBottom)
!SimpleResize.dll=C:\Program Files\DVD2SVCD\Avisynth2.5 Plugins\SimpleResize\SimpleResize.dll

[AVISYNTH_BilinearResize]
0=BilinearResize(^TargetWidth,^TargetHeight)
1=AddBorders(0,^BorderTop,0,^BorderBottom)

[AVISYNTH_BicubicResize]
0=BicubicResize(^TargetWidth,^TargetHeight,^b_value,^c_value)
1=AddBorders(0,^BorderTop,0,^BorderBottom)
^b_value=0.0
^c_value=0.6

---------------------------------------------------------------

WNASPI32.DLL 4.71.1.0
--------------------------------------------------------
- 27/07/2003 19:34:17
- AVI to SVCD Conversion
- AVI2SVCD ver. 1.1.3 build 2
--------------------------------------------------------
Initializing
Initializing finished.

--------------------------------------------------------
- 27/07/2003 19:34:23
- Free on drive C: 8495.47 mb
- AUDIO Extraction
--------------------------------------------------------
Audio extraction finished.

--------------------------------------------------------
- 27/07/2003 19:35:42
- Free on drive C: 8423.06 mb
- AUDIO conversion
--------------------------------------------------------

Converting MP2 to WAV. Filename: C:\My Shared Folder\Extracted_audio_1.mpa
Executing MADPlay (mp2 to wav). Commandline:
"C:\Program Files\DVD2SVCD\MADPlay\madplay.exe" --quiet --output=wave:"C:\My Shared Folder\Encoded_audio_1.mp2.wav" "C:\My Shared Folder\Extracted_audio_1.mpa"
Conversion (mp2 to wav) of C:\My Shared Folder\Extracted_audio_1.mpa finished.


Encoding Audio. Filename: C:\My Shared Folder\Extracted_audio_1.mpa
Executing BeSweet. Commandline:
"C:\Program Files\DVD2SVCD\BeSweet\BeSweet.exe" -core( -input "C:\My Shared Folder\Encoded_audio_1.mp2.wav" -output "C:\MYSHAR~1\Encoded_audio_1.mp2" -logfile "C:\MYSHAR~1\Encoded_audio_1.log" ) -ota( -g max ) -shibatch( --rate 44100 ) -2lame( -e -b 224 -m s )
Audio conversion of C:\My Shared Folder\Extracted_audio_1.mpa finished.

Audio conversion finished.

--------------------------------------------------------
- 27/07/2003 21:34:40
- Free on drive C: 7418.64 mb
- Video Encoding using Cinema Craft
--------------------------------------------------------

Executing Cinema Craft Encoder.
StreamSectors: 1658113576
AudioSectors: 132458704
VideoPAPO: 23633208
ScanOffsetBytes: 139816
SeqAligningBytes: 8886058
DVDBytes: 0
VideoEndHeader: 8
SubtitleSectors: 0
EmptySectors: 238.00
PictureSectors: 0.00
PureMPEGStream: 1492995782.27
Seconds: 4667.52
CalcMPEGStream: 1492995782.27
Frames: 116513
CDSize: 795.00
Number of CDs: 2
Cut point 791.00
Variable Settings:
Frames: 116513
Anti Noise Filter: Off
Passes: 4
Image Quality: 5
VAF file creation: On
Video Encoding Mode: CBR
Avg. Bitrate: 2230
Aspect Ratio: 4:3 (No borders, encoded as 4:3)

---AVS Begin---
Import("C:\MYSHAR~1\RESAMP~1.AVS")
LoadPlugin("C:\PROGRA~1\DVD2SVCD\AVISYN~1.5PL\Mpeg2dec\MPEG2D~1.DLL")
AVISource("C:\MYSHAR~1\fixedpb.avi",False)
ConvertToYUY2()
BicubicResize(480,440,0.0,0.6)
AddBorders(0,68,0,68)
ConvertToYUY2()
ResampleAudio(44100)
----AVS End----

Closing program
CCE Max Speed: 0.250
Video Encoding finished.

--------------------------------------------------------
- 28/07/2003 02:35:53
- Free on drive C: 6120.86 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 28/07/2003 02:35:57
- Free on drive C: 6120.84 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 28/07/2003 02:36:01
- Free on drive C: 6120.84 mb
- Converting Pictures from ES to PS
--------------------------------------------------------
Saving bbMPEG settings: C:\Program Files\DVD2SVCD\bbMPEG\default.ini
--------------------------------------------------------
- 28/07/2003 02:36:05
- Free on drive C: 6120.84 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: 791 mb

Executing RunbbMPEG. Commandline:
"C:\Program Files\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "C:\My Shared Folder\bbMPEG_Muxed_File.mpg"
Length of C:\My Shared Folder\bbMPEG_Muxed_File00.mpg
2641 Seconds
Offset in Seconds: 2643
Executing bbMPEG.
Variable Settings:
Movie offset: 2 seconds
Cut point: 791 mb

Executing RunbbMPEG. Commandline:
"C:\Program Files\DVD2SVCD\bbMPEG\RunbbMPEG.exe" "C:\My Shared Folder\bbMPEG_Muxed_File.mpg"
Multiplexing and cutting finished.

CD-Image creation finished.

--------------------------------------------------------
- 28/07/2003 03:06:05
- Free on drive C: 4724.53 mb
- SVCD Creation finished!
--------------------------------------------------------


can anybody please help

manono
28th July 2003, 15:48
Hi-

Make an .avs named "Version.avs". Inside have only this line, "Version()". Open it in NanDub or VDubMod. That will tell you which version is currently installed. If you have 2.08, then you use the Mpeg2Dec.dll. If it's 2.52, then you use Mpeg2Dec3.dll. Once you get that squared away, open the AviSynth script in NanDub or VDubMod and see if it gives you an error message that may help to pinpoint the problem. I think that if using 2.52, instead of "ResampleAudio(44100)", you use "AddAudio()" for CCE. If everything seems OK, then move the slider and scroll around in the video. If you get an access violation, then the .avi is corrupt, and unless you cut out the corrupt parts, it's hopeless.

si1
28th July 2003, 17:11
hi manono

thanks for the reply, I'm using version 2.51 beta , with this version i would need to use mpeg2dec3.dll ? i'll use add audio instead of resample and see what happens

cheers

Nick
28th July 2003, 20:52
Stating the obvious, but you have tried the trick using Virtual dub from the "AVI 2 SVCD fails at some point" sticky at the top of the forum.

Just double checking...

si1
29th July 2003, 17:20
thanks guys,

i've tried all the above and still get the same result, it must be a poor avi file, thanks for all the tips