View Single Post
Old 14th September 2008, 14:02   #3  |  Link
halsboss
likes to tinker
 
Join Date: Jan 2004
Location: girt by sea
Posts: 635
Thanks! DGIndex says "BT709*" and it's HC023 used to encode ... if PAL DVD is BT601 then I suppose I should be using ColorMatrix(mode="Rec.709->Rec.601") ?
This is the code in question:-
Code:
MPEG2Source("c:\test\test.d2v",cpu=6) # 1080i PAL -> DVD
Converttoyv12(interlaced=true) 
Global NewHeight=576
Global NewWidth=704
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)
Ec = SelectEven().Spline36Resize(NewWidth, NewHeight/2, 0,  2*Shift)
Oc = SelectOdd( ).Spline36Resize(NewWidth, NewHeight/2, 0, -2*shift)
#E  = SelectEven().Lanczos4resize(NewWidth, NewHeight/2, 0,    Shift)
#O  = SelectOdd( ).Lanczos4resize(NewWidth, NewHeight/2, 0,   -Shift)
#Ec = SelectEven().Lanczos4resize(NewWidth, NewHeight/2, 0,  2*Shift)
#Oc = SelectOdd( ).Lanczos4resize(NewWidth, NewHeight/2, 0, -2*shift)
Interleave(E, O)
IsYV12() ? MergeChroma(Interleave(Ec, Oc)) : Last
Weave()
Hmm, also wondering if NTSC HDTV sources are different ? Guess I'll have to google to find out if there's a quick reference, unless someone has a link and/or some knowledge to share ?
halsboss is offline   Reply With Quote