Log in

View Full Version : Speeding up a script converting 480 to 1080


sigma2x
4th May 2013, 20:12
Hello friends, I hesitate to post my questions but it took 1hour and 36minutes to convert a 6 minute video with the script that I have created, and I am unsure what will speed it up while keeping the same look to the clip.

As static frames, the quality does not seem to be that good, but when in motion it looks good to my eyes.

Here is a short sample of what I used it on: https://docs.google.com/file/d/0BwODiBEjIqYbeTdTazBkQ0huRHM/edit?usp=sharing
I apologise for Google Drive usage, but I no longer purchase my own Web hosting.

This is my script.

V = mpeg2source("VIDEO_TS.d2v", cpu=6)
A = NicAC3Source("VIDEO_TS T80 2_0ch 192Kbps DELAY 66ms.ac3")
AudioDub(V, A)
DelayAudio(0.066)
Trim(104874,113571)
fft3dgpu(sigma=1, plane=0, beta=1, bt=4, precision=1)
fft3dgpu(sigma=3, plane=4, mode=2, beta=0.8)
unblock()
dehalo_alpha(rx=1.7,ry=1.7)
nnedi3_rpow2(4)
blackmanresize(1920,1080)
limitedsharpenfaster(strength=200, Smode=4, ss_x=1.7, ss_y=1.7, soft =-1, wide = true)

StainlessS
4th May 2013, 20:30
Small point but fft3dgpu, plane =0 is luma, plane =4 is luma + U + V, ie luma again!

Plane = 3 is U + V only.

EDIT: Seem to remember reading somewhere that chroma before luma is faster (although cant see why that would be),
so perhaps swap to fft3dgp, plane=3, then plane=0.

EDIT: Unblock after fft3dgpu is BAD idea, do unblocking before any other frame mod.
Also, believe Deblock() may be faster than unblock().

Mediafire tends to be the preferred upload site.

sigma2x
5th May 2013, 08:53
With your feedback I have removed Unblock and am now using Deblock_QED instead and put it before fft3dgpu, which I have changed to just one instance.

I am not sure if the dehalo_alpha tool needs to be used before denoise and deblock or not, so I leave it where it is.
Also I have changed nnedi3 to only 2x size instead of 4x as I did not see any difference unless i zoomed in 300%.
Infact, the quality of the video seems no different than with my old script, but is at least 2x as fast to run. EDIT: encoding in meGUI reached 2.75fps, previously I encoded at around 1.6fps

V = mpeg2source("VIDEO_TS.d2v", cpu=6)
A = NicAC3Source("VIDEO_TS T80 2_0ch 192Kbps DELAY 66ms.ac3")
AudioDub(V, A)
DelayAudio(0.066)
Trim(104874,113571)
deblock_QED()
fft3dgpu(sigma=1.2, plane=0, bt=4)
dehalo_alpha(rx=1.7,ry=1.7)
nnedi3_rpow2(2)
spline16resize(1920,1080)
limitedsharpenfaster(strength=200, Smode=4, ss_x=1.7, ss_y=1.7, soft =-1, wide = true)