PDA

View Full Version : access violation due to my filter setup?


sillKotscha
1st February 2003, 22:35
good evening :)

I did a short tv-capture (with PicVideo_MJPEG) to test some nice filter settings, unfortunately VDub_Mod is crashing. But I'm not sure if it's due to the last VDub_Mod update or because of my filter chain?

Everything is ok until here:


LoadPlugin("C:\PROGRA~1\GORDIA~1\decomb.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\Convolution3d")
LoadPlugin("C:\PROGRA~1\GORDIA~1\Cnr2.dll")
LoadPlugin("C:\PROGRA~1\GORDIA~1\MSharpen.dll")
SegmentedAviSource("D:\capture\capture000.avi")
ComplementParity()
FieldDeinterlace(full=false,threshold=15,dthreshold=9,blend=false)
crop(4,88,696,404)
Cnr2()
#ConvertToYV12().Convolution3d(0,3,4,3,4,2.8,0)
MSharpen(30,40,highq=true)
LanczosResize(544,288)


this script results in a normal preview (http://www.sahnau.de/skotscha/Capture_01.jpg)

but if I try to work with conv3D I get an access violation (http://www.sahnau.de/skotscha/Capture_02.jpg)...

disabling #FieldDeinterlace(...) results in the same error message

and additionally turning #MSharpen(...) off will screw up everything. The picture (the whole example_clip) looks like this (http://www.sahnau.de/skotscha/Capture_03.jpg)...

Is there something I can do or is it due to some filter [-settings], VDub_Mod or even avisynth??

thank you

regards Sill

Edit: I don't know why I didn't test cnr2 :confused: but I will...

sh0dan
1st February 2003, 23:04
Are you using Donald's fixed CNR2? Otherwise, that might help you out! It fixes a crashbug.

Edit: Hey! - Post #1000 - calls for a celebration. :)

sillKotscha
1st February 2003, 23:35
hi shOdan,

yes, I've changed cnr2 to Donald's latest release but cnr2 has not caused the trouble because just disabling it...


ComplementParity()
FieldDeinterlace(full=false,threshold=15,dthreshold=9,blend=false)
crop(4,88,696,404)
ConvertToYV12().Convolution3d(0,3,4,3,4,2.8,0)
#Cnr2()
ConvertToYUY2().MSharpen(30,40,highq=true)
LanczosResize(544,288)


... ends up as screwed as my last picture/ link

this is strange because it seems that the clip has problems with conv3D, just disabling Vlad59's filter solves the problem - I've never observed something like that :confused:


I will see if v2.07 handles it...

regards Sill

sillKotscha
2nd February 2003, 01:01
using v2.07 this problem didn't occure...



ComplementParity()
FieldDeinterlace(full=false,threshold=15,dthreshold=9,blend=false)
crop(4,88,696,400)
WNR("D:\Capture\wave.vcf")
Cnr2()
Convolution3d(0,3,4,3,4,2.8,0)
MSharpen(30,40,highq=true)
LanczosResize(544,288)


and it looks great... as it should (http://www.sahnau.de/skotscha/wnr.jpg)


cheers Sill

sh0dan
2nd February 2003, 01:40
msharpen doesn't work in YV12 mode (yet).

I can reproduce the screwed up image! Seems to be a problem with the conversion routines.

There are some problems with error reporting, causing crashes instead of error pop-ups. CNR (and perhaps some other filters) seems to cause a deallocation error.

Donald - is it possible for CNR to try to deallocate some data that hasn't been initialized, if no frames has been requested?

Edit: Had a long look at the yv12->yuy2 conversion routines, and it seems to make some fairly strange assumptions about pitches. Seems like it'll take some work to fix. Thanks for the detailed report!

neuron2
2nd February 2003, 02:39
Originally posted by sh0dan

Donald - is it possible for CNR to try to deallocate some data that hasn't been initialized, if no frames has been requested?
No.

sh0dan
2nd February 2003, 12:08
ok - thanks! It's probably due to the conversion routines writing to invalid memory then.

sillKotscha
2nd February 2003, 12:13
but only from YV12 (conv3d) back to YUY2 (msharpen) - cnr2 isn't affected and it seems that either conv3d or msharpen can't handle the conversion propperly.

Replacing conv3d by Fluxsmooth worked just flawless (no color conversion needed)...