Log in

View Full Version : Convert HDMI 1.4 3D into 1080p Side-by-Side 3D?


easy2Bcheesy
6th June 2011, 15:44
I'm wondering if any of the Avisynth masters out there can suggest a script for converting a stereo 720p capture from HDMI 1.4 format stereoscopic 3D into a side-by-side 1080p image, 960x1080 per eye?

HDMI 1.4 stereo 720p is 1280x1470, with 30 blanking lines separating the images. Here's a shot:

http://imageshack.us/f/695/blog2v.png/

The top image is for the left eye, the bottom for the right.

Is this sort of re-composition work a bit too much for Avisynth? If so, can any one recommend a simple way to do the conversion? Right now I'm having to create two resized videos with VirtualDub and then putting them side-by-side in Premiere - and it takes ages...

um3k
6th June 2011, 18:24
YourSource("C:/Directory/File.ext")
l = Crop(0,0,1280,720).Spline36Resize(960, 1080)
r = Crop(0,750,1280,720).Spline36Resize(960, 1080)
StackHorizontal(l,r)

Just wrote it in the browser, not able to test at the moment. Of course you'll have to replace the source line with your own video source.

easy2Bcheesy
6th June 2011, 19:51
Um, wow, thanks. You've no idea how much time this will save me. Worked first time and the results are perfect.

Essentially I can capture HDMI 1.4 stereo 3D, but it needs this reformatting in order to work on YouTube 3D. I could resize to 720p but the quality is really poor on fast-moving video. At least by giving a 1080p source, I have the option of running the 1080p encode full-screen on my 720p laptop!

Thanks again!

Blue_MiSfit
7th June 2011, 07:16
This is a task incredibly well suited to AviSynth!

um3k
7th June 2011, 15:00
You're very welcome!

And indeed, Blue_MiSfit, truly indeed. Much more suited than that time when I edited a short film in Avisynth.