PDA

View Full Version : DGDecode cannot coexist with RemoveNoiseMC...


Revgen
29th July 2006, 03:14
...when denoising interlaced fields using this script

loadplugin("E:\dgindex\DGDecode.dll")
loadplugin("E:\ColorMatrix.dll")
mpeg2source("H:\LAL@PHX Game 6.d2v")
colormatrix(d2v="H:\LAL@PHX Game 6.d2v")
assumetff()
separatefields()
a=selectodd().lq_filter() #<--lqfilter is a RemoveNoiseMC command
b=selecteven().lq_filter()
interleave(b,a)
weave()


The script crashes about a few secs into the process.

Fortunately I was able to resolve the problem by using a MakeAVI's avi file to separate the mpeg2source and RemoveNoiseMC processes like this:

1) Script 1

loadplugin("E:\dgindex\DGDecode.dll")
loadplugin("E:\ColorMatrix.dll")
mpeg2source("H:\LAL@PHX Game 6.d2v")
colormatrix(d2v="H:\LAL@PHX Game 6.d2v")
assumetff()
separatefields()

2) Use MakeAvi's to create a fake "Laker2.avi" of Script 1 to use for Script 2.

3) Script 2


SetMemoryMax(256)
Import("E:\RemoveNoiseMC\RemoveNoiseMC.avs")
avisource("Laker2.avi") #<-- MakeAVI's file of Script 1
a=selectodd().lq_filter()
b=selecteven().lq_filter()
interleave(b,a)
assumefieldbased().assumetff()
weave()


It seems to do the job for now. Dunno why it can't work in one script.

I'm using DGIndex version 1.4.8 Final.

foxyshadis
5th August 2006, 01:00
You can avisource an avs script, btw. Should save some time making the fake avi, until this can be investigated.

Revgen
5th August 2006, 01:35
Sometimes avisourcing the avs script itself would fail, sometimes not. I've never had problems with the fake avi.

However I've only done 4 tests so it's not exactly conclusive:

2 avisource(*.avs) tests: 1 failed 1 suceeded.
2 avisource("fake".avi) tests: both suceeded.

These results are the reason why I recommended the fake avi approach.

tritical
6th August 2006, 03:40
Hm, I tried your script (with a different source, obviously) and it worked sometimes and also crashed sometimes. I ran it in the vs debugger real quick and both times that it crashed it always stopped on an access violation in fluxsmooth.dll. I couldn't find the source for fluxsmooth anywhere so I didn't try digging any deeper.

Revgen
7th August 2006, 03:17
Thanks Tritical.

Fluxsmooth source code is here http://www.kvcd.net/sansgrip/avisynth/ if you're interested.

Maybe a mod can add that link to the Fluxsmooth thread ( http://forum.doom9.org/showthread.php?t=38296&highlight=fluxsmooth ) since the link there is outdated.

tritical
7th August 2006, 15:32
Thanks for the link. It looks like the problem in fluxsmooth is that it assumes the pitch for the previous and next frames is the same as for the current frame. That is usually the case, but not necessarily... it becomes more and more likely that it wont be true in complex, memory intensive scripts. I'll put up a fixed version tommorrow for you to see if it fixes things on your comp... it stopped the crashes here at least.

Revgen
7th August 2006, 16:27
Cool. Thanks for your efforts.

Wilbert
7th August 2006, 19:03
@Revgen,tritical

Done. There should be a modified version (by Sh0dan) floating around. I will post when i've access again to my hdd on saturday.

Revgen
7th August 2006, 19:54
The Sh0dan modified version is 1.01 according to the readme (http://www.kvcd.net/sansgrip/avisynth/FluxSmooth-readme.html). However version 1.1 is newer and contains all of Sh0dan's changes. Version 1.1 can be downloaded from the Fluxsmooth site I posted above.

tritical
8th August 2006, 00:36
The source I was using was for version 1.1a from the site Revgen linked to.

tritical
8th November 2006, 00:47
Was this issue resolved? I'm deleting stuff and came across the 1.1a source that I had modified, any need to put it up?

Wilbert
8th November 2006, 11:47
Was this issue resolved? I'm deleting stuff and came across the 1.1a source that I had modified, any need to put it up?
Yes please. I don't have it.

Revgen
9th November 2006, 17:52
Was this issue resolved? I'm deleting stuff and came across the 1.1a source that I had modified, any need to put it up?

I would appreciate it if you did, thanks.

Then I hopefully wouldn't have to use a MakeAVI's chain to solve the problem.

tritical
10th November 2006, 00:10
FluxSmooth-1.1b.zip (http://bengal.missouri.edu/~kes25c/FluxSmooth-1.1b.zip) w/ source