Log in

View Full Version : Convert 1080i60 to 1080p60


easy2Bcheesy
21st August 2009, 11:06
A real newbie question I'm sure - can any one recommend a script to turn 1080i60 into 1080p60... I want to retain all temporal resolution. Even a 1920x540 output stream would be fine.

Can any one help?

Alex_ander
21st August 2009, 11:39
It is possible to bob-deinterlace it with smth. like yadif, LeakKernelDeint or using a very slow sophisticated script like MCBob, but if you want to keep it BD compatible at 60fps, you'll have to downsize it to 720p afterwards. An example:
LeakKernelBob(order=1)#if TFF
Spline36Resize(1280,720)

easy2Bcheesy
21st August 2009, 11:57
Thanks for that - works beautifully.

easy2Bcheesy
21st August 2009, 15:03
Is there a purer method that doesn't involve any actual deinterlacing that can give me a pure 1920x540 stream - essentially turning every field into a progressive frame?

Looking closer at the footage, Bob appears to be adding a fair amount of artefacting. Right now I'm not sure if it is from the camera (Sony Z1) or not.

Guest
21st August 2009, 15:12
Is there a purer method that doesn't involve any actual deinterlacing that can give me a pure 1920x540 stream - essentially turning every field into a progressive frame? You can just separate the fields but then you have to shift the second field to put it in the right spatial position. So, the answer is that there is no "pure" way.

Looking closer at the footage, Bob appears to be adding a fair amount of artefacting. Right now I'm not sure if it is from the camera (Sony Z1) or not. I do both the deinterlacing and resizing all on the Nvidia GPU using my NV tools. The PureVideo deinterlacer does a great job.

Alex_ander
21st August 2009, 15:29
...essentially turning every field into a progressive frame?

There is no perfect method. In case the video is not too sharp you can try single-field based deinterlacers (with vertically sharp video they may give flickering) like nnedi2 (slow) or internal Bob (fast but not as good).

shoopdabloop
22nd August 2009, 08:36
shift the second field to put it in the right spatial position.

How is this possible?

Gavino
22nd August 2009, 09:26
By using the sub-pixel shift feature of the resizers.
shift = GetParity() ? 0.25 : -0.25
SeparateFields()
even=SelectEven().Spline36Resize(width, height, 0, shift)
odd=SelectOdd().Spline36Resize(width, height, 0, -shift)
Interleave(even, odd)
AssumeFrameBased()
or just do the whole job with Bob(height=height()/2), which basically does the same thing (using BicubicResize).

PeaceAnt
23rd August 2009, 03:43
i use very good looking tomsmocomp twice. one for deinterlace even field, second for odd field and then interleave both for 50p.

a=last.tomsmocomp(1,5,0)
b=last.tomsmocomp(0,5,0)
interleave(a,b)
#blur(-0.4)
lanczosresize(1280,720)
try it!

pozdrawiam

Blue_MiSfit
24th August 2009, 02:19
I second the notion of using neuron2's CUDA tools to do all this using the GPU. It's all real-time, and looks very good. Certainly better than a dumb Bob()!

~MiSfit

henryho_hk
28th August 2009, 06:24
Oops... ATI 4850 here....

What deinterlacing quality can I expect from PureVideo? Is it... kerneldeint, yadif, tdeint, yadif+nnedi2, tdeint+tmm+nnedi2 ... or even better?

Blue_MiSfit
28th August 2009, 07:32
It depends... I'd say it's definitely better than yadifi, but not quite as good as TGMC.

That's a vague generalization though, with very little experience backing it up! I use neuron2's NV tools sometimes at work for taking 1080i BluRay sources and outputting 720p60.. but at home I've had an ATI card for over a year now :(

Regardless, it's free (in terms of CPU cycles), and is usually quite good IMO!

~MiSfit

shoopdabloop
28th August 2009, 08:00
Yadif is slightly better than PureVideo imo, because it doesn't leave behind residual combing.