PDA

View Full Version : Am I over-filtering my video?


Gaby83
30th April 2009, 13:07
Hello!

I'm newbie in this new filters I'm using, and I feel satisfied with the result, but the encode speed is too slow (0.5 - 1 fps), so I wonder if I'm over-filtering my video, maybe you can gimme some advices of how to configurate so the encode may speed up a little with the same results.

Well, my video is too blocky, so, I've tried to get rid of that blocks and make the image a bit sharpened so I added some grain too, but I'm not sure if this combination of filters is right because it slows too much the encode, here is some screens:

Original:
http://img253.imageshack.us/img253/2057/originalt.jpg
Filtred:
http://img410.imageshack.us/img410/4681/filtred.jpg

Original:
http://img299.imageshack.us/img299/8056/original2.jpg
Filtred:
http://img412.imageshack.us/img412/723/filtred2.jpg


And this is the script I'm using:

Directshowsource("C:\01.rmvb",audio=false,fps=29.970,convertfps=true)
DeBlock_QED(quant1=30,quant2=51)
LimitedSharpenFaster(SMode=4,LMode=3,Strength=1000,wide=true,soft=75)
EEDI2()
TurnRight().EEDI2().TurnLeft()
FFT3DGPU(sigma=1,bt=3,sharpen=0.7,precision=2)
BicubicResize(608,448,0,0.75)
TweakColor(sat=1.1,bright=15,hue=2,cont=1.1)
AddGrain(5,0,0)


Please gimme some advices so I can learn about this cool filters, as you can notice, english is not my first language, and Is kinda hard for me understand everything in filter's manuals, but I'm giving my best! :o

Thank you very much :)

dat720
30th April 2009, 13:12
It may not be that you are 'over filtering' the video, it maybe that you are 'over filtering' for you hardware..... each new filter you add puts more load on the processor, if your processor isn't that powerful to begin with running to many filters will cause slow speeds like this.

Oh and the filtered screen caps are way too grainy.... remove the AddGrain filter or lower its value. And BicubicResize is not a very nice resize filter when it comes to quality, try Lanzcos3 or even one of the spline filters, will look better but will bring another speed hit!

And i'm not an expert on filter order but i would usually do the resize first.

Gaby83
30th April 2009, 13:23
Oh, thanks dat, I've though that too, that may be my computer cant handle those filters... I have a P4 3.2 GHz 2GB RAM DDR2 and a Video Card nVidia GeForce 8400GS 256mb of video, it sux for encoding I guess. What do you think?

I'll make the changes you told me and see what happens, thank you so much for your answer, it was so fast! :D
Gabriella.

dat720
30th April 2009, 13:34
2gb RAM is fine, its the CPU that's letting you down there....
You should look at even a middle of the range Core 2 Duo they are pretty cheap now, you could probably get away with just a upgrade of your Motherboard and CPU, or if your motherboard supports C2D processors (assuming its a LGA775 socket motherboard) you could just drop in a better CPU.

Like i said, no expert with filters but that's the things i would change.... for my tastes its also a little to bright.

Gaby83
30th April 2009, 13:55
Thanks dat, yes, my motherboard is socket LGA775, I'll be upgrade my computer when I save some money, for me now its impossible xD

I noticed it was too bright too, so I already change it, from 15 to 12, also, I Changed what you said, and now isnt that grainy but I notice that is more blocky again, what should I raise to get rid of more blocks but not damage too much the details? :/ any idea?

BigDid
30th April 2009, 19:52
Thanks dat, yes, my motherboard is socket LGA775, I'll be upgrade my computer when I save some money, for me now its impossible xD
...
Hi,

I just updated my processor from a E4700 to E5300 C2D. Actually at 3450 (stock 2600), no voltage change and climbing.
A E5200 can be found for 60 euros and can also get a high overclock.

Maybe you could post your updated script to see what can still be improved...?

Did

Gaby83
1st May 2009, 02:58
Oh, thanks BigDid, yes, I'll think about it :)

Here is my updated script, still some blocks are left, but I dunno what to do to get rid of them whitout demage details:

Directshowsource("C:\01.rmvb",audio=false,fps=29.970,convertfps=true)
DeBlock_QED(quant1=30,quant2=51)
LimitedSharpenFaster(SMode=4,LMode=3,Strength=1000,wide=true,soft=75)
EEDI2()
TurnRight().EEDI2().TurnLeft()
FFT3DGPU(sigma=1,bt=3,sharpen=0.7,precision=2)
spline64Resize(608,448)
TweakColor(sat=1.1,bright=10,hue=2,cont=1.1)
AddGrain(3,0,0)

movmasty
5th May 2009, 03:26
Oh, thanks BigDid, yes, I'll think about it :)

Here is my updated script, still some blocks are left, but I dunno what to do to get rid of them whitout demage details:

Directshowsource("C:\01.rmvb",audio=false,fps=29.970,convertfps=true)
DeBlock_QED(quant1=30,quant2=51)
LimitedSharpenFaster(SMode=4,LMode=3,Strength=1000,wide=true,soft=75)
EEDI2()
TurnRight().EEDI2().TurnLeft()
FFT3DGPU(sigma=1,bt=3,sharpen=0.7,precision=2)
spline64Resize(608,448)
TweakColor(sat=1.1,bright=10,hue=2,cont=1.1)
AddGrain(3,0,0)
buy a new pc?? i get at least 3.5 fps on my oldxp2600 with 480mb of ram and more filters than you, over 11 with AMD 6400, thus 22 using both cpu...
but using virtualdub, thought NSU deblocking is veeeeery slow

as said put all filters(except deblocking) AFTER resize

get rid of all those sharpener and grain, to sharp use a contrast or levels filter, faster and producing more pleasant results

movmasty
5th May 2009, 03:37
And BicubicResize is not a very nice resize filter when it comes to quality, try Lanzcos3 or even one of the spline filters, will look better but will bring another speed hit!
But spline filters doesnt blur??

What quality can you aspect from a blocky video that was deblocked?????

bicubic is more than ok, and you can tune it to sharp a bit

then levels is ok to sharp, dont rem the asynt settings but just set black and white points, try black double than white,
and also remove brightness from tweak colors

Gaby83
6th May 2009, 11:27
Thanks so much for your advices, I'll test them! :D