3D Vision Blog

A normal user's look into the world of 3D Stereo Technologies

3D Vision Blog header image 4

Converting 2D Videos to 3D using VirtualDub and the AviSynth Script

January 15th, 2010 · 86 Comments · 2D to 3D Conversion


The 2D to 3D Realtime Video Conversion Script for Avisynth v0.3 was designed to be used for realtime conversion, but it can as well be used to get a permanent video converted from 2D to 3D. Sometimes you might just want to have a separate video already converted or your PC might for example not being able to handle 1080p content in real time. An example for converted video is the 1080p Avatar Trailer that you can download from the links below, the video file was just converted with the script so you can see what it is capable of. Just don’t forget that here I’m talking about automated 2D to 3D conversion which can usually provide good results, but they are not as good as what you’ll get from a video shot in Stereoscopic 3D mode. In order to convert videos to 3D with a file output, besides the AivSynth script you’ll also need to download the free video editor VirtualDub along with some codecs that are needed to handle the video and audio output. A good example for that would be Xvid for video and LAME MP3 for audio, but others might as well do… just have in mind that I’m talking about encoding here and not just about being able to decode these formats.


You need to open VirtualDub and then Open as a video file the 2D to 3D AVS script instead of directly opening the video file you’ll be converting, don’t worry, the AviSynt script will do what is needed and will just pass video that VirtualDub can interpret. Then Open the Video menu, make sure that Full Processing mode is selected (on by default) and Open up the Compression menu, where you’ll see a list of compatible codecs installed on your PC. You can choose Xvid MPEG4 Codec and Configure it to use Single pass quality based encoding with a Quantizer of 4 in order to have a good ratio between compression size and image quality.


Recompressing the audio is optional, but you’d need to do it as otherwise the file has PCM audio that just makes the size of the file too big. In this case you need to open the Audio menu, select the Full Processing Mode (here it is not on by default) and choose the Compression option. Again you’ll see a list of installed and supported audio codecs, here MP3 is just fine for Stereo output and you can choose 128Kbps for good enough quality and small file size.

What you need to do now is just save the output file as Avi and the recompression of the video will begin, the time it can take varies depending on a lot of factors for example if you are using a single or multi-core CPU, what it the size and length of the video etc. Here you just need to wait a bit for the processing to finish and after that you’ll be ready to play your converted video file directly in the stereoscopic player without the need to go through the AviSynth script for real-time conversion. So now back to the Full HD 1080p teaser as an example that I’ve converted using my conversion script and VirtualDub, the file is about 170MB…

Download the Avatar 1080p teaser autoconverted in stereo 3D formatmirror 1

→ 86 CommentsTags:·······

Realtime 2D to Stereoscopic 3D Conversion from Live TV Source

December 23rd, 2009 · 6 Comments · 2D to 3D Conversion


I’ve already written about the interesting DirectShow 3Dfier filter that is doing quite well with realtime conversion from 2D video to stereoscopic 3D. After playing a bit more with the filter I was able to make it work with live TV feed coming from a TV tuner, but I had to use the Stereoscopic Player instead of Nvidia’s 3D Vision Video Player as only the first one supports the Live Video mode for use with TV tuners and other video capture devices. That said I should also note that I was able to make things work with NVidia’s player too, but with a bit of workaround which is making it a bit harder and not so convenient. If you use VideoLAN (VLC) for capture of the live stream from the TV tuner to a file and then open the video file in 3D Vision Video Player you are still good to go, but with just a little bit of a delay.


And since the Stereoscopic Player is a multipurpouse stereoscopic 3D video player that supports much more than what Nvidia’s player offers, you’ll have to open the File menu and then Settings in order to configure the player to use 3D Vision as a viewing method.


Then you need to go to the Decoder menu and there under the Video Processor category Add the 3Dfy 2D-to-3D Transformer. This is actually the DirectShow 3Dfier filter (download it here) that is going to be used for the realtime 2D to stereoscopic 3D video conversion, unfortunately as I already said this is not a free filter and has some limitations for use. I still haven’t gotten any response from the authors of the filter…


The last thing you need to do is to open the File menu and form there to go to Video Properties in order to setup the incoming video stream. By default it will be a monoscopic source, but after adding the 3Dfier filter it will be converted into a Side by Side format, so you need to change the Format Layout to that mode. This is the last step in the setup process, what is left is only to open the Live Video stream from your TV tuner. After you do that you’ll have some additional settings for the TV tuner that will be available in the File menu, you need to use these in order to select the TV channel and to configure the TV Tuner. You can also just choose the right settings from your TV Tuner software, select the needed channel and the close the software and open the Stereoscopic Player to have the tuner settings already applied. It might not be the most convenient way, but still you get pretty nice results from this realtime 2D to stereoscopic 3D conversion from the live TV feed. As always if you try this, please report your experiences in the comments below…

→ 6 CommentsTags:·········