Log in

View Full Version : My script renders under realtime


sigma2x
29th August 2009, 09:10
Hi, I have just wrote a script for a dvd I have demuxed which plays in realtime in vdub but renders about 21fps via the fastest setting with divx and slower uncompressed.

Any suggestions as to speeding my script up?

mpeg2source("Trap_Door.d2v")
tomsmocomp(0,5,1)

DeGrainMedian(limitY=2,limitUV=3,mode=1)
DeGrainMedian(limitY=2,limitUV=3,mode=1)

blackmanresize(480,360)
warpsharp(depth=180,blur=5)


Thanks.:D

sigma2x
29th August 2009, 10:12
Well i've got the rendered fps up to 27-32 now by using this

mpeg2source("Trap_Door.d2v")
tomsmocomp(0,5,1)

fft3dgpu(sigma=4)

blackmanresize(480,360)
warpsharp(depth=180,blur=5)

with almost the same kind of denoising.
:o

fvisagie
29th August 2009, 10:41
If the resize amounts to down-scaling, you could experiment with putting it before the other filters so the latter have less content to process.

sigma2x
29th August 2009, 15:23
Now I feel stupid :thanks:

I already encoded it, though, over 2hrs and the audio seems to go out of sync the futher along it plays. :confused:
I only noticed that after I cut it up into seperate files too, arrrggghhhh

7ekno
30th August 2009, 09:52
Why Blackman for a downsize?!? Wouldn't bicubic be faster and the difference hardly noticable at 480x360?!? ...

Could also try SetMTMode(2) to see if the filters like MT (Toms should be fine, not sure about FFT3DGPU / Warpsharp) ...

7ek

alph@
30th August 2009, 12:27
FFT3DGPU is not compatible with the function 'mt'
http://avisynth.org/mediawiki/MT_support_page :o

sigma2x
30th August 2009, 14:21
Thanks for the help and the MT link I didn't know about the different modes, I wasn't sure which filters worked with MT hence why I didn't use it in the end.

I did however put the downsizing before the denoising though and it seemed to gain some speed.
I thought warpsharp was just for anime - type stuff but it worked OK on this stop-motion :D

Also I rendered to h.264 via ffdshow encoder and the quality looks better than divx at low bitrates :D Infact i set it to 400kbs with everything else default and it looked great.
I fixed the out of sync audio by demuxing each vob seperately.

Thanks.

p.s
7ekno the source is soft and i thought blackmanresize would sharpen it somewhat.
http://imagesinside.com/junk/doom9/trap_door-capture.jpg