Log in

View Full Version : Avisynth caught an access violation when encoding to RV10 :(


denissio
27th July 2004, 17:42
Avisynth caught an access violation when encoding to RV10 :(

Arghh.. :mad: I've just opened my encoding to realize I've lost above 20 hours.. I'm not giving up however ;) Though this is my first experience with AutoRV10 (1.0b5) and maybe it's my fault, I feel it's due to AviSynth (2.55a). Also, I used a VagueDenoiser filter (0.33.3, it is awesome) to get rid of blocks and heavy noise in my DVD, that made the encoding really slow (3-4 fps).

Well, The Helix producer didn't report any errors or warnings (I could't find any log file with them) but the encoded movie had only first 31 minutes of normal video (of 2h 36m), with the rest being filled with a red warning "Avisynth: caught an access violation at 0x10013e22, attempting to write to 0x00000000". I've done the encoding twice (just to make sure) and both times the error was reported at the same time (31min 03sec). I've checked this suspicious place feeding the script in VDub and WMP and everything was fine. Alas, I don't know where the AVS log resides (if there is any) so I don't know what exactly the error was.
I'd be very grateful to you if u helped me.

The script looks like this (credits encoded separately):

# PLUGINS
LoadPlugin("F:\DOWNLO~2\_01\AUTORV~2.0_B\SOFTS\AVSFILE\MPEG2DEC3.DLL")
LoadPlugin("F:\DOWNLO~2\_01\AUTORV~2.0_B\SOFTS\AVSFILE\UNDOT.DLL")
LoadPlugin("F:\DOWNLO~2\_01\AUTORV~2.0_B\SOFTS\AVSFILE\VagueDenoiser.DLL")
#
# VIDEO SOURCE
Video=Mpeg2Source("F:\VIDEO_ED\TROY\rv10\01\troy_rv10_01.d2v", idct=5 )
#
# AUDIO SOURCE
Audio = WavSource("F:\VIDEO_ED\TROY\rv10\01\Stream1.wav")
#
# COMBINE VIDEO + AUDIO
Video=AudioDub(Video,Audio)
#
# TRIM MOVIE
Video=Trim(Video,0,220000)
#
# CROPPING
Video=Crop(Video,12,72, -8, -74, align=true)
#
# NOISE REDUCTION
Video=UnDot(Video)
Video=Vaguedenoiser(Video,0,3,6,0,False,False,1,True,0.5,75)
Video=Temporalsoften(Video,4,8,8,mode=2,scenechange=10)
Video=Crop(Video,0,0, -4, -0, align=true)
# //Cropping twice to avoid artifacts caused by VagueDenoiser in the
# //right side of the frame
#
# RESIZING
Video=LanczosResize(Video,512,216)
#
# LIMIT Chroma & Luma Value
Video=Limiter(Video)
#
# FINISH
Return(Video)

In AutoRV10 I only chose the d2v and ac3 sources and altered the 'Codec" settings: (this is what I changed:

Video mode: Sharpest motion
EHQ level: 90 - Very High
Start end credits: 220001
Quality: 15%
Filter mode: Grayscale
Adjust bitrate after end-credits
Total Filesize: 700 Mb
).

I 'edited Script AVS' then, pasting the abovementioned script into the 'movie' window, the 'credits' script in 'credits' window (it was very similar) and started encoding.

Suggestions? :thanks:

P.S. Why am I getting 748Mb final filesize instead of 700?? (maybe because of that error?)

Dark-Cracker
27th July 2004, 19:07
hi,

i don't know why u have this error but i think only *general* solution can avoid this matter.
since the error reproduce at the same time perhaps there is a corrupted frame, try to made a fresh rip of the .vob file and redo the .d2v file .
try to update with the latest avisynth 2.5.5 alpha build version.
try to made a encode without vaguedenoiser.

hope this will help u :)

Leak
27th July 2004, 21:25
Originally posted by Dark-Cracker
try to update with the latest avisynth 2.5.5 alpha build version.

Actually, I wouldn't use any of the alpha builds from July, those suffer from a cache bug (http://forum.doom9.org/showthread.php?threadid=69857&perpage=40&pagenumber=4#post528350) that makes AviSynth exhaust all address space it has after some time which will make the encoding process terminate unexpectedly; maybe that's what the original problem was?

In that case, use the 17.06.04 version which doesn't have this bug.

np: El-P - Accidents Don't Happen (Fantastic Damage)

denissio
27th July 2004, 21:47
@ Dark-Cracker

Thank you, Dark-Cracker, everything is as updated as possible ;) but I think I have to do some tests (e.g. encode 40 minutes of that movie with 'fast' parameters of vaguedenoiser) to reveal the problem. Actually I've already encoded 40 seconds (1000 frames) of that problematic area and I couldn't reproduce that error. Of course I'll follow your advice if nothing helps :)
p.s. I liked your proggie immensely!

@ Leak

This should be a really valuable advice. :thanks: I'll try it out tonight.

denissio
31st July 2004, 00:17
Greetings!
Thanks a lot again (Leak, your suggestion was first-rate :)), avisynth stopped crashing, but I need your piece of advice again ;) My hdd just decided to make fun and restarted the computer during the second pass of RV10 (Helix). Actually the 1st pass took a very long time (22 hours) and I'm just curious if there is a way to avoid running it again, more specifically, I'd like to know if I can manually reproduce AutoRV10's actions before the 2nd pass start ;)
Maybe it's more complex but it seems to me that AutoRV10 sends some commands to producer and rmeditor (perhaps, just "producer.exe -j ..." - the last string from producer.log?) Please, correct me if I'm wrong.
Bye!
P.S. I've got all stats and log files from the first pass as well as jobs and tasks files.