View Single Post
Old 30th August 2008, 05:20   #124  |  Link
florinandrei
Registered User
 
Join Date: Jul 2006
Posts: 120
I tested the convolution script posted by *.mp4 guy but it's very slow and it's very blurry. The vertical resolution is bad and the conversion speed is like 0.5 fps on a fast machine.

I tested the new corrected shift/interleave script:

Code:
Global NewHeight = 480
Global NewWidth  = 720

DirectShowSource("hd.m2ts", audio=false)

# Pick one manually, DirectShow has no idea
AssumeTFF()
#AssumeBFF()

SeparateFields()

Shift = (GetParity() ? -0.25 : 0.25) * (Height()/Float(NewHeight/2)-1.0)

E    = SelectEven() . Spline36Resize(NewWidth, NewHeight/2, 0,    Shift)
O    = SelectOdd()  . Spline36Resize(NewWidth, NewHeight/2, 0,   -Shift)
Echr = SelectEven() . Spline36Resize(NewWidth, NewHeight/2, 0,  2*Shift)
Ochr = SelectOdd()  . Spline36Resize(NewWidth, NewHeight/2, 0, -2*shift)

Interleave(E, O)
IsYV12() ? MergeChroma(Interleave(Echr, Ochr)) : Last
Weave()
Compared with the initial version (that didn't process chroma separately), this one looks very similar. I didn't do an A/B comparison, but viewing them successively I can't tell any difference.
The corrected version is a bit slower (10.3 fps vs 12.7 fps) but that's OK. This new script supposedly deals with chroma correctly, so I think I'll just use it.

Are we out of ideas yet?
__________________
Florin Andrei

http://florin.myip.org/
florinandrei is offline   Reply With Quote