PDA

View Full Version : what can I add to this script..


ficofico
3rd December 2007, 21:43
I know that different videos required different script, but if videos are rec with the same camera, it's possible to standardize filter to use, changing only the value in this filter. The cameras are new nokia n-serie or e-series, that can rec at 640*480 30 vfr fps.
Then, first I use mencoder for changing the framerate to 30 cfr, and after
I want to use avisynth script like automkv or megui x264 profile... like good quality to insane quality for restoring the videos..

For sunny recording, in an hypothetic insane quality, I've created this script, after days and days here :D

directshowsource("originale_automen.huf")
setmemorymax(1024)
assumefps(30)
converttoYv12()
source=last
backward_vec = source.MVAnalyse(isb = true, truemotion=true, pel=4, idx=1, divide=2,overlap=4,search=4)
forward_vec = source.MVAnalyse(isb = false, truemotion=true, pel=4, idx=1, divide=2,overlap=4,search=4)
cropped = source.crop(4,4,-4,-4)
backward_vec2 = cropped.MVAnalyse(isb = true,truemotion=true, overlap=4, pel=4, idx=2, divide=2,search=4)
forward_vec2 = cropped.MVAnalyse(isb = false,truemotion=true, overlap=4, pel=4, idx=2, divide=2, search=4)
source.MVFlowFps2(backward_vec,forward_vec,backward_vec2,forward_vec2,num=60,den=1,idx=1,idx2=2)
source = last
w=width()
h=height()
backward_vec2 = source.MVAnalyse(isb=true, delta=2,blksize=16,search=4,searchparam=4,pel=4,overlap=4/2,overlapV=4/2,dct=0,idx=3)
backward_vec1 = source.MVAnalyse(isb=true, delta=1,blksize=16,search=4,searchparam=4,pel=4,overlap=4/2,overlapV=4/2,dct=0,idx=3)
forward_vec1 = source.MVAnalyse(isb=false, delta=1,blksize=16,search=4,searchparam=4,pel=4,overlap=4/2,overlapV=4/2,dct=0,idx=3)
forward_vec2 = source.MVAnalyse(isb=false, delta=2,blksize=16,search=4,searchparam=4,pel=4,overlap=4/2,overlapV=4/2,dct=0,idx=3)
maskp1 = mvmask(kind=1, vectors=forward_vec1, ysc=255).UtoY()
maskp2 = mvmask(kind=1, vectors=forward_vec2).UtoY()
maskp3 = mvmask(kind=1, vectors=backward_vec1, ysc=255).UtoY()
maskp4 = mvmask(kind=1, vectors=backward_vec2).UtoY()
maskf = average(maskp1, 0.25, maskp2, 0.25, maskp3, 0.25, maskp4, 0.25).spline36resize(w,h)
smooth = source.mt("fft3dfilter(bw=16, bh=16, bt=5, sigma=2.0, plane=0, dehalo= 0.5)")
source2 = maskedmerge(source,smooth,maskf)
source2.MVDegrain2(backward_vec1,forward_vec1,backward_vec2,forward_vec2,thSAD=600,idx=4)
dull = last
sharp = dull.mt("LimitedSharpenfaster(ss_x=3.4,ss_y=3.4,smode=3,strength=220,overshoot=3)")
Soothe(sharp,dull,15)


With my config I'm near 1,8 fps.......... but it's the insane quality!!
My question is... what filter need , for example, this video

VIDEO (http://ficofico2.interfree.it/originale.mp4)
that it's not present in the script? It's possible to improve overall quality in different ways?

HERE (http://ficofico2.interfree.it/finito.mp4)It's possible to view the video after the upper script.

thanks.

Sagekilla
4th December 2007, 00:34
I have to say, I find the results of that clip quite impressive. What part of that script makes the motion so smooth?

Terranigma
4th December 2007, 01:03
What part of that script makes the motion so smooth?
MVFlowFps2

ficofico
4th December 2007, 13:55
I've changed to 2.4 and plane4 the fft3dfiter string...

Pookie
4th December 2007, 20:02
Try the autolevels filter to smooth out the brightness fluctuation

http://www.zendurl.com/t/ta41/autolevels_en.php

Yes, the movement looks good, but the image looks oversmoothed. Perhaps reduce the blocksize for MVdegrain. That's a ton of filters for a arguable increase in quality.

ficofico
4th December 2007, 20:16
I've just try autolevels, but it seem to crash in another pc then mine... I don't know why, even if the dll it's in a folder and in the script there's a call of the filter, an error say that autolevels.dll it's not in the folder......

Yes, the movement looks good, but the image looks oversmoothed. Perhaps reduce the blocksize for MVdegrain. That's a ton of filters for a arguable increase in quality.
Ok I'll try with 8

Pookie
4th December 2007, 20:26
I just tried autolevels on your file, and it increases the visibility of the macroblocks :(

For testing purposes, see if HybridFuPP might be kinder to your source :)

http://forum.doom9.org/showthread.php?t=131920&highlight=fupp

ficofico
4th December 2007, 21:41
I've seen this post, but I haven't understand the syntax for this plugins, tomorrow I'll give a look...... thanks pookie