View Single Post
Old 18th November 2004, 22:58   #77  |  Link
Leak
ffdshow/AviSynth wrangler
 
Leak's Avatar
 
Join Date: Feb 2003
Location: Austria
Posts: 2,441
Quote:
Originally posted by tritical
Leak, what patterns do you use for blending down 30fps progressive and 60i to 24fps?
Well, I'm doing it the mathematically correct way; if you go from 30 to 24 FPS you need to fit 1 1/4 source frames into a destination frame, i.e.

Code:
Fr.  Src.A  Amt.A  Src.B  Amt.B
0      0     4/5     1     1/5
1      1     3/5     2     2/5
2      2     2/5     3     3/5
3      3     1/5     4     4/5

4      5     4/5     6     1/5
5      6     3/5     7     2/5
6      7     2/5     8     3/5
7      8     1/5     9     4/5

...
which I was doing this way:
Code:
a=source.SelectEvery(5,0)
b=source.SelectEvery(5,1)
c=source.SelectEvery(5,2)
d=source.SelectEvery(5,3)
e=source.SelectEvery(5,4)

return Interleave( \
  a.Overlay(b,mode="blend",opacity=0.2), \
  b.Overlay(c,mode="blend",opacity=0.4), \
  c.Overlay(d,mode="blend",opacity=0.6), \
  d.Overlay(e,mode="blend",opacity=0.8))
This way, you'll get evenly spaced intervals in the blend, with every source frame getting used for a total of 80%. With your method, you get 100% of frame 0 and 75% of the other frames. Of course, this means you'll get a totally unblended frame per cycle, but I find it adds too much jerkiness for my taste, while I don't care as much for ghosting blending brings with it.

I do think that scharfis_brain is on to something here, even though MVConvertFPS will not work with anime; in that case blending like the above will probably be preferable - but if you can feed it 3 clips so the processing is configurable, everybody can do it the way they like...

np: Frankie Goes To Hollywood - Relax (New York Mix) (Twelve Inches (Disc 1))
Leak is offline   Reply With Quote