PDA

View Full Version : Panning and Scanning 1920x816 to 1920x1080


yosh
22nd July 2006, 14:48
Hi, could someone help me out with this? I need to pan and scan a movie with a 2:35 aspect ratio to 16:9.

I have tried using a few filters, but what I am trying to aim for is the quality you would get on say, an HBO pan and scan. They are extremely good quality, I can't seem to get that.

Do they pan and scan the movie at 1920xXXXX? Or do they use the higher resolution you get with film and just crop it from a 4k resolution so it still stays native? I doubt they do that, since movies that are shot in HD like Attack of the Clones were pan and scanned from 1920x816 as they were shot in that resolution.

Here's my script:


Loadplugin("K:\Program Files\AVIsynth 2.5\plugins\RSharpen.dll")
Import("K:\Program Files\AviSynth 2.5\plugins\LimitedSharpen.avs")
Loadplugin("K:\Program Files\AVIsynth 2.5\plugins\DGDecode.dll")
Loadplugin("K:\Program Files\AVIsynth 2.5\plugins\RemoveDirt.dll")
Loadplugin("K:\Program Files\AVIsynth 2.5\plugins\Convolution3D.dll")
Loadplugin("K:\Program Files\AVIsynth 2.5\plugins\TIVTC.dll")
Loadplugin("K:\Program Files\AVIsynth 2.5\plugins\degrainmedian.dll")
mpeg2source("K:\Documents and Settings\Tom\Desktop\resize\new.d2v",idct=3)
converttoyuy2(interlaced=false)
LimitedSharpen(ss_x=2.0, ss_y=2.0, Smode=1, strength=255)
DeGrainMedian(limitY=5,limitUV=7,mode=1, norow=true)
removedirt(mthreshold=4*255,athreshold=18,soscillation=10,doscillation=255,dist=2,tolerance=12,show=0)
Convolution3d (preset="movieHQ")
lanczosresize(2400,1360)

Probably not a very good one...

-yosh

MrTroy
22nd July 2006, 20:48
What exactly is your question? How to upsize the video or how to do the actual pan-and-scanning? I would be very interested in an answer to the latter question.

About the size:
I don't think it matters much whether you do the resizing before or after the p&s'ing. Myself I would probably first resize to 2538x1080 and than do the p&s.

IanB
23rd July 2006, 10:41
Assuming the source has 132 lines of top and bottom letterboxing and you want to crop the centre 16:9 section...
LanczosResize(1920, 1080, 233.76, 132, 1452.48, 816)

MrTroy
23rd July 2006, 18:05
Assuming the source has 132 lines of top and bottom letterboxing and you want to crop the centre 16:9 section...
LanczosResize(1920, 1080, 233.76, 132, 1452.48, 816)
That's not really pan&scanning of course, that's just cropping. In most films this will lead to quite disturbing chopped off arms and such.

Mug Funky
24th July 2006, 04:17
hmm... i wonder if depan could be severely abused to do this? if you only allow it to pan horizontally, and limit the deltas to keep everything on the screen, you might be able to pull it off. not sure how nice it'd look though, but i reckon it's worth playing with.

[edit]

i'm thinking it'd be best to run depan on the original footage, then apply ianb's resize after it.

yosh
24th July 2006, 15:32
Ok, thanks. And the resizing part I knew how to do, it's the filters mainly because when you pan it shows up more blocks and artifacts, I was trying to find a good filter set to combat those.