| || |
Convert top/bottom video to side by side
I am really impressed with the 3D on my phone, much more than I thought I would be. I love being able to watch 3D right out of the youtube app. I wanted to save a couple of trailers to my phone so I could show it off..
The issue I found was that most of the videos I was finding on youtube were top/bottom instead of side by side. I tried searching and I didnít see an easy way out there to convert from t/b to sbs.
I played around with avisynth and was able to come up with the following script that accomplished this. One of the videos I tried wasnít centered in the file so when I cut it in half the the two videos were offset, so watch out for that. A handful of others worked fine.
Here is the avisynth code:
Load the avisynth scrip in virtual dub then save the avi. A typical trailer was outputting about 4 gigs, so this might not be practical for a feature length movie (see below). Then encode with the iphone4 setting in handbrake. Pay attention to the output resolution. Handbrake defaults to the evo screen width, so you end up with a 180 or so high resolution. You need change anamorphic to none and make sure aspect ratio is off. Then keep the height the same, but change the width to width/2.
# I had to force FPS to prevent audio synch issues so make sure your source is really 30 fps.
#Not sure if this is really required, but it was in the example with the ConvertFPS feature
#Extract top and bottom views as seperate videos
#Place videos side by side
There a more elegant way to do this, without the intermediate uncompressed avi file out of virtualdub, but I was in kind of a hurry and didnít want to mess with encoding correctly in vd. Or if you donít use handbrake you could frame serve to tmpegenc or something.
Hopefully this will help others out there. Let me know if you have questions. If you never used avisynth or virtualdub, there are lots of tutorials out there for those apps.
Shout out to the other Pre Converts out there!