View Full Version : how to do "pulldown" from 23.976 to 29.97?
E-Male
19th August 2003, 15:27
I want to add some additional material to a DVD
I want the original material to stay untouched, it's 29.97fps NTSC
my question is: how can i turn the new material to from 24.976 to 29.97fps?
i'm basicly looking for a reversed version of "doublweave.pulldown(x,y)"
THX
E-Male
stickboy
19th August 2003, 18:42
In other words, you want to telecine the clip. ("Pulldown" is also known as "inverse-telecine".)
# Telecine
#
# Telecines a clip.
#
# Useful for dealing with hybrid material when the final format is
# interlaced.
#
function Telecine(clip c)
{
assert(c.IsFrameBased(), "Telecine: clip must be frame-based")
# we need to handle the case of a null-clip manually;
# otherwise, SelectEvery(...) will generate unwanted blank frames
return (c.FrameCount() == 0)
\ ? c.AssumeFPS(c.FrameRate() * 5.0 / 4.0)
\ : c.ComplementParity().DoubleWeave().SelectEvery(8, 0, 2, 3, 5, 6)
}
E-Male
19th August 2003, 21:34
i wasn't shure which way was called how
thx for the function
should do what i want (at least my math understandign says it'll turn 24fps to 30 :)
i'll try it asap
EDIT: or will it give me 15
well, i'll just try it
EDIT2: it works, i don't understand exacly why, but it does
thx again
PowerMacG4
20th August 2003, 03:13
Just for fun, I telecined some pure FILM material to 29.976 and then did a telecide().decimate(5) and to my surprise, it doesn't work 100% properly. On the 'interlaced' frames there is noticable chroma buggage.
mpeg2source("C:\EQUILIBRUIM\VIDEO_TS\equilibrium.d2v",idct=7)
crop(0,60,718,356)
LanczosResize(704,288)
Telecine()
Telecide().decimate(5)
function Telecine(clip c)
{
assert(c.IsFrameBased(), "Telecine: clip must be frame-based")
# we need to handle the case of a null-clip manually;
# otherwise, SelectEvery(...) will generate unwanted blank frames
return (c.FrameCount() == 0)
\ ? c.AssumeFPS(c.FrameRate() * 5.0 / 4.0)
\ : c.ComplementParity().DoubleWeave().SelectEvery(8, 0, 2, 3, 5, 6)
}
http://chris.7thcircle.com/chroma.jpg
this is the frame before (normal) (http://chris.7thcircle.com/normal.jpg)
I am using the newest decomb4 and avisynth 2.5.2. mpeg2dec3 is version 1.10. This bug may be semi-serious..
stickboy
20th August 2003, 05:49
Things to try:
Telecide(guide=1, chroma=true, agg=true).Decimate(cycle=5, quality=3)
IVTCPattern (http://www.avisynth.org/~stickboy/)(2)If neither of those works, could you post a short clip?
Bogalvator
20th August 2003, 15:37
What about the line "LanczosResize(704,288)" - doesn't the height need to be bigger than 288 in order to work? I.e. 576......
DoW
20th August 2003, 17:39
Try decomb 5 beta 16.
PowerMacG4
22nd August 2003, 07:46
Have you guys managed to reproduce it with the settings and such I provided? It would seem to work with any material which is 100% FILM.
I will try decomb5, but I have found that it gives unsatisfactory results compared to 4 (mostly because the parameter passing scheme was changed so much).
PowerMacG4
22nd August 2003, 22:28
decomb5 (http://chris.7thcircle.com/de5.jpg)
It appears to have the same chroma bug shifting, but this time it is blended together.
Telecide(order=1).decimate(cycle=5) is what i used
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.