This article used the words "nonlinear stretch mode" which led me to these threads (1, 2) and this Wikipedia article:
SD to Stretch-o-Vision HD: SimpleResize
Stretch-o-Vision HD to SD:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\SimpleResize.dll")
directshowsource("video.avi")
WarpedResize(640,480,1.15,0.95)
Thanks, fellow nerds!
---
Update: There's another version here made by a different guy, but he states "However, at least my function works in YV12 colorspace!"
For Cartoon Network HD:
ReplyDelete# Deinterlace first!!!
Levels(5, 1, 248, 0, 255, coring=false) # they screwed up the black levels
ConvertToYUY2(interlaced=false)
WarpedResize(last.width,last.height,1.0635,1) # the "5" is just wishful thinking. it will get rounded to 3 decimal places so it's not as precise as I'd like # "last." used for clarity. you could of course omit it
ConvertToYV12(interlaced=false)
Spline36Resize(720,460) # only 460 (or perhaps 462, but 460 is nicer) actual horizontal lines of resolution.
Proper *display* aspect ratio is 640:460 (32:23) (or approx. 720x518).
Some logic behind the DAR selection, assuming that the common 1.85:1 ratio is involved:
(4/3)/(1.85)*1920 = 1383.78
(4/3)/(1.85)*720 = 518.92
(4/3)/(1.85)*640 = 461.26
(However, they might've just been lazy and cropped 10px off the top and bottom of the 480i source. Hard to tell.)
Examples: http://imgur.com/a/D2eQF