Log in

View Full Version : 4:3 to 16:9 Footage Conversion a la Panasonic 'Just'..?


easy2Bcheesy
5th May 2006, 15:53
Hi there,

I have a 800x600 4:3 aspect ratio file that I want to convert to 1280x720, 16:9. The source is incredibly clean so scaling artefacts will be minimal.

The question is, how best can I convert the aspect ratios? I could in theory crop the top/bottom of the video, but that is not 100% ideal. So is there a filter/converter out that will produce an effect similar to the 'Just' aspect ratio mode in the Panasonic plasma TVs?

This mode basically keeps the centre of the image in roughly the right aspect ratio, but expands the image horizontally the further you get away from the centre.

Is there anything out there that can produce a similar effect? It's only a logo animation for a corporate video, so don't worry about me desecrating any actual movie footage or anything!

Wilbert
5th May 2006, 15:57
C:\Program Files\AviSynth25\Docs\english\externalfilters\simpleresize.htm

# simpleresize.dll
WarpedResize(width, height, hWarp, vWarp)

Did you try that one?

easy2Bcheesy
5th May 2006, 20:55
Unfortunately, while the SimpleResize function appears to work OK, I get a "CAVISynthStream: System Exception, Access Violation" whenever I use the WarpedResize function.

This is extremely irritating as based on the examples, it looks as though it would be perfect.

MrTroy
5th May 2006, 22:48
Acces Violation? Do you have administrator rights on your computer?

Wilbert
6th May 2006, 00:01
:script: (I used it a while ago, and didn't have any problems ...)

foxyshadis
6th May 2006, 05:22
Access violation usually means an internal avisynth or plugin failure, so it could be it doesn't like 2.5.7 or your parameters. If your script is correct and it still crashes, tom barry's still around once in a while to check on it.

easy2Bcheesy
6th May 2006, 07:41
AVISource ("c:\test.avi")
ConvertToYUY2
WarpedResize(1280,720,0,0)


Really, really straightforward stuff. Just loading the script, converting to YUY2 for the benefit of the WarpedResize function, then just doing a basic resize, not even any warping. Suffice to say that when I do try to warp (any variable at all), it makes no difference. I still get access violations.

So is the final 2.5 version worth a go?

foxyshadis
6th May 2006, 10:30
Actually, WarpedResize(...,...,1,1) is no warping (default). Excessively low values all crash avisynth, below .5 or so.

Hmm, I don't know advanced asm at all, and that's where the crash occurs, according to the debugger.

movdqu xmm1, xmmword ptr[esi+eax*2] // top of 2 lines to interpolate

easy2Bcheesy
6th May 2006, 11:58
Excellent! Many thanks for that - now working with the values changed to 1 for no warping... absolutely brilliant filter by the way if you're reading this tbarry!