PDA

View Full Version : height Mod16 error with funkydeblock


Graigddu
27th August 2008, 14:47
I'm a relative newcomer to avisynth and video editing and i have been trying to convert a couple of copies of films that i had encoded as divx back to dvd as my originals have been trashed,

Iv'e been trying to run a avisynth SetModeMT script with FunkyDeblock,DNR2 and Fluxsmooth in The FilmMachine and it was crashing so i tried the script in AVSP and i received the title error along the lines that BlindPP needed Height Mod 16 (Sorry in work at the mo) so i opened the file in virtualdub and divided the height by 16 and resized to a X16 appropriate height usually smaller than original

my questions are

Is this as long way round of doing things and could i resize in the script even though iv'e read that it's better to resize after filtering and i when i tried to noise filter at end of script the encoding with HCEnc took 4 hours more approx

is it better to save the resized in virtualdub as uncompressed RGB as the original is RGB for less noise problems when encoding, or convert with Huffyuv to YUV and then in The FilmMachine to YV12 (no problem with storage space)

Is it better to resize the image to a larger height than original or smaller height for future pal 16.9 encoding

EDIT: Would this post be better in virtualdub subforum

Graigddu
27th August 2008, 18:45
Does anyone have any suggestions

Adub
27th August 2008, 19:12
1) post the dimensions of your clip.
2) post your script.

Graigddu
27th August 2008, 21:01
for some reason its 616x254 25Fps

SetMTmode(mode=5,threads=2)
# 16:9 encoding
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MT Filter\MT.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools-v1.5.8\MaskTools.dll") #version 1.58
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Masktools 2.0a21\mt_masktools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemoveGrain\RemoveGrain.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Warpsharp\WarpSharp.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DNR2\Dnr2_for_25.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\FluxSmooth\FluxSmooth.dll")
Import("C:\Program Files\AviSynth 2.5\plugins\Functions\funkydeblock.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\Functions\LimitedSharpenFaster.avs")
DirectShowSource("C:\Documents and Settings\Videos\Editing\Convoy", fps=25.000, audio=false)
SetMTmode(mode=1,threads=2)
ConvertToYV12()
funkydeblock(th=5)
DNR2(8,4,6,3,6,3,"")
FluxSmoothST(5,7)
LimitedSharpenFaster(strength=100)
FadeIn(50)
Lanczos4Resize(720,436,0.0,0.6)
AddBorders(0,70,0,70)
AssumeFPS(25,1,False)

Graigddu
28th August 2008, 09:01
would it be better to incorperate something like Spline36resize into the script and where would it go
also would it have a dramatic effect on speed or would resizing in virtualdub and saving as uncompressed RGB be better
as i understand that evertime i resize i loose quality

Adub
28th August 2008, 16:54
Well, it looks like you are loading a directory in that script, not an exact video file. I have never seen that done before.

First off, open that file in Media Player Classic, or something like it, and make sure that you know what it's resolution actually is. Double check your numbers.

If it really is an odd size, than Spline36resize, or Lanczos4resize(sharper) should fix the problem. Placing the resize line right after you load the video file will speed up or slow down the script, depending if you are up scaling or down scaling. I usually scale to the closest possible mod 16 resolution. In this case, try scaling to 624x256.

Oh, and if you are complaining about the 25fps, and it's isn't supposed to be, then edit your directshowsource line, because you are telling it it is 25fps.