View Full Version : Crop & resize quicktime HD movie trailer
varunb
3rd July 2006, 11:54
:cool: I just want to know what should b the syntaxes in the avisynth script to crop & resize a quicktime video. I wish to crop & resize the video in the same way as one can using the 'square pixel' method in Divx.
anonymez
4th July 2006, 12:25
directshowsource("file.mov")
crop(left,top,-right,-bottom)
lanczosresize(width,height)
actionman133
4th July 2006, 23:26
DirectShowSource doesn't work on Sorenson videos, which is what the HD trailers use for compression. Search the forums for QTSource (there's an old thread dedicated to it) and download the latest link for it.
Here's how you use it:
QTInput ("HD trailer.mov", mode = 2, audio = true)
This should be fine, but I think it returns YUY2 where the chroma has been vertically stretched via a point resize. If you're interested in *slightly* better quality, I think you might need to add these lines directly after (check to see if it's YUY2 first):
Y = Tweak (sat = 0, coring = false).ConvertToYV12 ()
U = UtoY ().SeparateFields ().SelectEven ().ConvertToYV12 ()
V = VtoY ().SeparateFields ().SelectEven ().ConvertToYV12 ()
YtoUV (U, V, Y)
anonymez
5th July 2006, 00:00
DirectShowSource doesn't work on Sorenson videos
yes it does, ffdshow/haali splitter and directshowsource() work just fine
actionman133
5th July 2006, 00:19
Ah yes... I haven't tried loading Quicktimes since I installed ffdshow... does DirectShowSource () provide a YUY2 or a YV12 clip?
Mug Funky
5th July 2006, 09:06
directshowsource returns whatever directshow's filter graph wants to output. it's hard to predict because directshow is different on every computer.
but you can be fairly sure it's outputting yv12. it's easily checked in virtualdub (load the avs, go "file > information").
you can also find tateu's quicktime import filter around here. not sure what colourspace it outputs, but if you're downscaling it shouldn't make a big difference either way. i find tateu's plugin more stable than relying on directshow. the catch is audio doesn't work properly on mp4 files (though it does on pretty much everything else). you can export audio with quicktime player or ffmpeg anyway...
install Quicktime Altenative & CoreAVC and you should be good to go
when using directshowsource :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.