Log in

View Full Version : N93 videos


ficofico
3rd December 2006, 18:47
Hi guys, I'm an italian boy that try to write in english:)

I've read for hours this forum because .............. I'm crazy!!

I've 2 question.....

1)
I've a 6680 nokia smartphone and I want to change it with a n95 nokia when arrived in italy. I've a few videos of N93 (640*480 mp4) , and I tryed to pass trough avisynth. The results are very great for me.
The result:

http://ficofico.interfree.it/internooriginale.jpg

http://ficofico.interfree.it/internomodificato.jpg

http://ficofico.interfree.it/quadrooriginale.jpg

http://ficofico.interfree.it/quadromodificato.jpg

http://ficofico.interfree.it/esternooriginale.jpg

http://ficofico.interfree.it/esternomodificato.jpg

The script I've used is:

Import("C:\Program Files\AviSynth 2.5\plugins\SeeSaw.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\dehalo.avsi")
Import("C:\Program Files\AviSynth 2.5\plugins\BlindDeHalo3.avs")



directShowSource("c:\nostab.mp4")





YToUV(FFT3DFilter(sigma=3, plane=1, bw=32, bh=32).UToY,\
FFT3DFilter(sigma=3, plane=2, bw=32, bh=32).VToY,\
FFT3DFilter(sigma=2, plane=0, bw=32, bh=32))
YToUV(FFT3DFilter(sigma=3, plane=1, bw=4, bh=4).UToY,\
FFT3DFilter(sigma=3, plane=2, bw=4, bh=4).VToY,\
FFT3DFilter(sigma=2, plane=0, bw=4, bh=4))


DeBlock(quant=35)

DeGrainMedian(LimitY=5,LimitUV=7,mode=0)




BlindDeHalo3( rx=1.0, ry=1.0, strength=10,
\ lodamp=0.0, hidamp=0.0, sharpness=2.0, tweaker=0.0,
\ PPmode=2, PPlimit=4, interlaced=false)


Tweak(sat=1.2)
Levels(0,1,255,16,235)




Limitedsharpenfaster(ss_x=1.5,ss_y=1.5,strength=150,wide=true,soft=1,overshoot=5,edgemode=1)




The code work good for me, but now I want your council to improve it!!!!!!!! Any suggestion?

2) I've tryed to insert the Integrated Image Processor in anothe script, I've download all the required plugins and I've Write this script.

Import("C:\Program Files\AviSynth 2.5\plugins\SeeSaw.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\dehalo.avsi")
Import("C:\Program Files\AviSynth 2.5\plugins\BlindDeHalo3.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\iip.avs")

LoadPlugin("C:\Program Files\AviSynth 2.5\LoadPluginEx.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\dustv5.dll")

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\undot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\masktools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\WarpSharp.dll")


directShowSource("c:\casa.mp4")



YToUV(FFT3DFilter(sigma=3, plane=1, bw=32, bh=32).UToY,\
FFT3DFilter(sigma=3, plane=2, bw=32, bh=32).VToY,\
FFT3DFilter(sigma=2, plane=0, bw=32, bh=32))
YToUV(FFT3DFilter(sigma=3, plane=1, bw=4, bh=4).UToY,\
FFT3DFilter(sigma=3, plane=2, bw=4, bh=4).VToY,\
FFT3DFilter(sigma=2, plane=0, bw=4, bh=4))







DeGrainMedian(LimitY=5,LimitUV=7,mode=4)





Tweak(sat=1.2)
Levels(0,1,255,16,235)


Limitedsharpenfaster(ss_x=1.5,ss_y=1.5,strength=50,wide=true,soft=1,overshoot=0,edgemode=1)


## version05a
iip( dest_x = 708, dest_y = 532,
\ duststr = 2, dustweight = 1.0,
\ ss1_x = 1.414, ss1_y = 1.414,
\ detailcontr1= 127, detailcontr2=255+40, contr_radius=2, PixSharp=0.38,
\ ss2_x=3.25, ss2_y=3.25,
\ Xstren=255, Xlimit=255,
\ subpelstren = 1.0, antiflicker1=false, antiflicker2=true,
\ flatweight = 0,
\ protect_floor = 0, protect_bias = 12,
\ dering = -80, dering_weight = 1.0,
\ dering_floor = 10, dering_bias = 12,
\ EQ = 2, detail_floor = 15,
\ warp_Y = true, warp_UV=true, exborder = true,
\ debug="-showall", cropx=36, cropy=56
\ )

This script doesn't work, and the errors are very different. Sayd that there's no function, after another function, now the error is:

System exception, illegal instruction in line 10. I've tryed with more changes, but this code doesn't work!!!!

*.mp4 guy
3rd December 2006, 19:52
A small sample clip would make it easier for us to helo you.

ficofico
3rd December 2006, 19:55
1 minutes!!

Guest
3rd December 2006, 19:58
@ficofico

Please read and follow forum rules, specifically, rule 9: use a proper thread title. Thank you.

http://forum.doom9.org/forum-rules.htm

ficofico
3rd December 2006, 20:05
ok, excuse me .

ficofico
3rd December 2006, 20:10
http://ficofico.interfree.it/first.rar

ficofico
3rd December 2006, 20:19
http://ficofico.interfree.it/second.rar

Chainmax
5th December 2006, 15:27
That's what the N93 can do? I'm seriously disappointed, the specs made it look as it could much better than, say, the Canon S3's movie mode :(. Anyway, I'd suggest you to start with FFT3DFilter(sigma=3,plane=3,bw=32,bh=32,bt=3,ow=16,oh=16) right after loading the video to clean some of the chroma artifacts, then follow up with DeBlock_QED(quant1=30,aOff1=21,quant2=45,aOff2=6) which should remove that blocking and keep more detail than DeBlock.
As for denoising, the first picture doesn't seem to have much, but the second one does seem to have some big grain, so I'd use DeGrainMedian() as what you've set it to seems overkill.
I would also ditch BlindDeHalo3 since IMO it kills small details and blurs the picture way too much. DeHalo_Alpha(), also created by Didée, is a much better choice. For sharpening, I suggest you to find Soothe and use it this way:

dull=last
sharp=dull.LimitedSharpenFaster(SMode=4,whatever else you want)
Soothe(sharp,dull,25)

as SMode=4 can do wonders :).

Finally, I'd recommend you to add AddGrain(2,0,0) or AddGrain(5,0,0) after the sharpening, as it should mask any possible remaining artifacts and give an illusion of detail. I hope this helps :).


P.S: good call on the Levels line, by the way http://smilies.vidahost.com/otn/wink/thumb.gif.

ficofico
5th December 2006, 20:02
That's what the N93 can do?

Dvd quality in the specific !!!!!!!!!!!!!!!! ahahahahahha

I hold the 6680 for at least 1 years now!!

I've tried AddGrain(5,0,0) and is nice:)
I've tried Soothe function and .....................is impossible to render at 0,001 fps with a x2 4200+ overclock at 2750 !!!!!!!!!

In the explanation Didee said that function is fast, but it's not tooooooo fast!!!!

DeBlock_QED(quant1=30,aOff1=21,quant2=45,aOff2=6)

This line works very well, thanks

For clean video from chroma artifact I prefer this function:

YToUV(FFT3DFilter(sigma=3, plane=1, bw=32, bh=32).UToY,\
FFT3DFilter(sigma=3, plane=2, bw=32, bh=32).VToY,\
FFT3DFilter(sigma=2, plane=0, bw=32, bh=32))
YToUV(FFT3DFilter(sigma=3, plane=1, bw=4, bh=4).UToY,\
FFT3DFilter(sigma=3, plane=2, bw=4, bh=4).VToY,\
FFT3DFilter(sigma=2, plane=0, bw=4, bh=4))

It's the same filter but I need more cleanup!!

Dehalo_alpha: I've used it but I do not have find usage different then Dehalo_alpha(). Blinddehalo works better with value I've written.


Final code is:

directShowSource("c:\nostab.mp4")





YToUV(FFT3DFilter(sigma=3, plane=1, bw=32, bh=32).UToY,\
FFT3DFilter(sigma=3, plane=2, bw=32, bh=32).VToY,\
FFT3DFilter(sigma=2, plane=0, bw=32, bh=32))
YToUV(FFT3DFilter(sigma=3, plane=1, bw=4, bh=4).UToY,\
FFT3DFilter(sigma=3, plane=2, bw=4, bh=4).VToY,\
FFT3DFilter(sigma=2, plane=0, bw=4, bh=4))


DeBlock_QED(quant1=30,aOff1=21,quant2=45,aOff2=6)

DeGrainMedian(LimitY=5,LimitUV=7,mode=0)
DeGrainMedian(Limity=8,limituv=8,mode=1)




BlindDeHalo3( rx=1.0, ry=1.0, strength=10,
\ lodamp=0.0, hidamp=0.0, sharpness=2.0, tweaker=0.0,
\ PPmode=2, PPlimit=4, interlaced=false)


Tweak(sat=1.2)
Levels(0,1,255,16,235)





Limitedsharpenfaster(ss_x=1.5,ss_y=1.5,strength=180,wide=true,soft=30,overshoot=1,edgemode=1)

AddGrain(5,0,0)

Spline36Resize (720,576)

Chainmax
5th December 2006, 20:12
DeHalo_Alpha can be tweaked, but not much. In any case, I generally see it removes as much halos as BDH3 while blurring the picture a lot less. I strongly recommend you to use it, even if you step the resizing down to BicubicResize(720,576,0,0.5).


P.S: I'd put the sharpening and grain adding after the resize, it will look better that way.

P.S 2: LimitedSharpenFaster+Soothe works quite fast in my machine (Sempron 2200+ w/512MB Ram), where did you get the ones you're using from?

ficofico
5th December 2006, 20:56
I had tried 2 version, normal by didee and modified by foxyshadis, but all version are very slowly on my system, I don't know why!!


BicubicResize(720,576,0,0.5), why? I've read that for upscaling it's not good, but I trust in you!!!

I'd put the sharpening and grain adding after the resize, it will look better that way.
Ok, now it's better!!

I will search about Dehalo_alpha tweak!!!

Limitedsharpen is better than limitedsharpenfaster as quality image?

ficofico
5th December 2006, 22:18
Finally I've found "THE SCRIPT"!!!!! This script is used for my digital camera nikon coolpix 5200, thanks for Chainmax, Didee, foxyshadis and all the plugin writer in this forum !!!!!!!

The script I used it's not too different from N93 script, but format is different and there's no need to deblock.

script:

QTInput("F:\prove videocamera\casa.mov",color = 0, quality = 100, audio = True)


ConvertToYUY2()


YToUV(FFT3DFilter(sigma=3, plane=1, bw=32, bh=32).UToY,\
FFT3DFilter(sigma=3, plane=2, bw=32, bh=32).VToY,\
FFT3DFilter(sigma=2, plane=0, bw=32, bh=32))
YToUV(FFT3DFilter(sigma=3, plane=1, bw=4, bh=4).UToY,\
FFT3DFilter(sigma=3, plane=2, bw=4, bh=4).VToY,\
FFT3DFilter(sigma=2, plane=0, bw=4, bh=4))


ConvertToYv12()


Convolution3d (preset="movieLQ")


Tweak(sat=1.23)
Levels(0,1.1,255,0,255)



Lanczos4resize(720,576,0,0.5)

LimitedSharpen(ss_x=1.0,ss_y=1.0,strength=200,wide=true,soft=1,overshoot=5,edgemode=1)

AddGrain(2,0,0)

ConvertToRGB()


And images of clips are these:

http://ficofico.interfree.it/1.JPG

http://ficofico.interfree.it/2.JPG



P.s. In 5 days I've pass 30/40 hours in this forum, but now I'm satisfated!!!

Thank at all.

Chainmax
5th December 2006, 22:37
LimitedSharpenFaster is identical to LimitedSharpen, the speedup comes from using MaskTools v2 instead of v1. It also has SMode=4 which usually looks better.