2D to 3D Realtime Video Conversion Script for Avisynth v0.3
Posted: Sun Feb 28, 2010 5:50 am
Here is version 0.3b of the Avisynth script I wrote about realtime conversion of 2D video to 3D. The first version of the script was a bit rough and not very functional, then the second version was more functional and improved, but still performing slow on 720p or higher resoltion. The new version does not use the slow Reform plugin anymore as it is quite heavy for the CPU for real time processing of frames as Quadrilaterals. This version can also take advantage of multi-core CPUs, just use the MT version of the script with the multithreading support included (version 0.8 for AviSynth 2.5.8). The multithreaded script is recommended if you have a dual or quad core processor and get slower framerates in order to get better framerate. Just as a reminder, this script is to be opened instead of a video file from 3D Vision Stereoscopic Player or the Stereoscopic Player in a Side by Side L/R format by default and is designed to be viewed on a computer that is equipped with a 120Hz display and Nvidia’s GeForce 3D Vision. Thanks to the help of Martin Haverland and based on some parts of eslave’s similar script the conversion can now also be used with anaglyph glasses, on interlaced displays etc. You just need to comment the StackHorizontal command and uncomment the respective mode you need to use in the script code…
To download the script and all the additional installation files needed:2d-to-3d-video-conversion-scripts.zip
The archive includes single and multithreaded version of the script, along with the latest Avisynth and MT plugin needed for the script to work. You just need to change the video file name to a file you need converted from 2D to 3D inside the script and open the AVS script file in the player instead of the original video. The same can be done with VirtualDub or other video editor in order to generate a 3D output file instead of doing things in real-time with output only on the screen. What the script does is to create one frame difference between the frames for the left and right eye, makes quite good illusion of depth in objects… kind of Pulfrich effect. The second thing is to creare a bit of distortion for the frames to further increase the effect. Two very simple things that create very impressive results, although it is still far from perfect as some objects are at wrong depth and there are some weird visual artefacts on some fast moving scenes, but still the end result is very good.
Some example 1080p movie trailers converted with the above script can be seen here: http://stereoscopic3d.wordpress.com/" onclick="window.open(this.href);return false;
The script is open and any suggestions for improvement are more than welcome, so if you have any good ideas please share them. Also don't forget to comment on how the script works for you...
To download the script and all the additional installation files needed:2d-to-3d-video-conversion-scripts.zip
The archive includes single and multithreaded version of the script, along with the latest Avisynth and MT plugin needed for the script to work. You just need to change the video file name to a file you need converted from 2D to 3D inside the script and open the AVS script file in the player instead of the original video. The same can be done with VirtualDub or other video editor in order to generate a 3D output file instead of doing things in real-time with output only on the screen. What the script does is to create one frame difference between the frames for the left and right eye, makes quite good illusion of depth in objects… kind of Pulfrich effect. The second thing is to creare a bit of distortion for the frames to further increase the effect. Two very simple things that create very impressive results, although it is still far from perfect as some objects are at wrong depth and there are some weird visual artefacts on some fast moving scenes, but still the end result is very good.
Some example 1080p movie trailers converted with the above script can be seen here: http://stereoscopic3d.wordpress.com/" onclick="window.open(this.href);return false;
The script is open and any suggestions for improvement are more than welcome, so if you have any good ideas please share them. Also don't forget to comment on how the script works for you...