Trying to make an xvid from a 29.97 fps dvdr video which has 2 duplicate fields followed by 3 blended fields. Have usually gotten advice to use these two lines in script, and they work when I preview in AvsP, and play the script in Media Player:
Rest of script is just cropping, greyscale and resize.
But when I run the whole movie thru Vdub (which I'm using to make the xvid in 2-pass) I get two problems: an error text across the screen (see pic), and over time the video starts to get choppy.
I did a short sample xvid test clip made of a couple trims, and only the first trim in the output has the error text.
Also, sample xvids made from later parts of the movie come out fine, rather than being choppy like in the complete xvid.
I dont recall having this problem before with this script. Could be my PC being buggy, or perhaps I'm not using Srestore correctly or am missing a plugin. Look familiar?
+ Reply to Thread
Results 1 to 10 of 10
Last edited by spiritgumm; 21st Apr 2011 at 00:18.
This is a mysterious error that has been occasionally reported in the past but never resolved.
Please post your entire script as every bit of information may be relevant.
Do you still get the error if you remove the lines after SRestore()?
Are you using the latest SRestore (v2.7e)?
Which version of Avisynth are you using?
If it is the MT version, try running the 'vanilla' version instead.
I am not the author of SRestore, but I am familiar with its internals and have previously tried to track the problem down (without success). The logic of the function suggests it should 'never' happen, so I suspect it may be due to some sort of memory corruption. (Another possibility is a global variable clash - you don't just happen to have a variable called lfr in your script, do you?)
Based on my understanding of the symptoms, a possible workaround may be to jump to a different frame on the timeline before rendering the file. Does this make any difference?
I've seen that error before. I don't remember exactly what the fix was but it had something to do with incompatible versions of different filters. Make sure you are using the right versions of each of the filters that SRestore() calls.
With default settings, the only external filters used by SRestore are from MaskTools.
Make sure you are using the correct Masktools dll, mt_masktools-25.dll for Avisynth 2.5x, and mt_masktools-26.dll for Avisynth 2.6x. Using the wrong one certainly can lead to memory corruption.
Pretty sure I used Srestore recently without issue, but I might have added some plugins to try to get Qtgmc to work, which are conflicting.
Using Avisynth 2.5. Had been previously using the 25/26 dll's from mvtools-v18.104.22.168. I just tried the 25/26 dll's from mvtools-v22.214.171.124 but same error.
Running Vdub in "fast recompress" so no colorspace change required.
LoadCPlugin("C:\Program Files\AviSynth 2.5\plugins\yadif.dll")
v=MPEG2Source("C:\Documents and Settings\Desktop\Breakfast\1.d2v", cpu=0)
a=nicac3Source("C:\Documents and Settings\Desktop\Breakfast\1 T80 2_0ch 256Kbps DELAY 0ms.ac3")
resampleaudio(48000) #sometimes not included in runs
Last edited by spiritgumm; 21st Apr 2011 at 08:20.
oops, I meant Masktools - I copied the wrong folder names here. My stupid.
I removed the 26 dll, and no error! Thanks! But will this fix the choppy video which occurred later in the xvid? Should I be adding some kind of conditional parameter in case the fields aren't following the exact order I described?
I think it should work OK now that you have the correct dll.
When an error message is written on a frame, it also means that SRestore hasn't processed the video and just returns the original frame. So with the error removed, normal processing should be restored.
I'll post back when it's done in 6 hours, assuming the power doesnt go out and interrupt the process.
Worked perfectly and in less time. Wish I posted it here couple days ago. Many thanks.
Last edited by spiritgumm; 21st Apr 2011 at 14:32.
Glad to have got to the bottom of this mystery.
Thanks to jagabo for starting me on the 'incompatible filters' trail.