Monday, October 18, 2010

3D Stereo in Linux w/ nVidia 3D Vision Continued

Finishing Touches for Stereo DLP Usage:
In the last post I detailed how to set up the Xorg.conf file for nVidia 3D vision in Ubuntu Linux with a Mitsubishi DLP TV and active shutter glasses. Because you cannot use overscan compensation correction during stereoscopic playback, you need to set overscan compensation to "0". This can cause the edges of your image to extend beyond the screen however, and make general system usage difficult.






To fix this, I made two scripts and put them in /usr/bin:


stereo_on:
#!/bin/bash -i
nvidia-settings -a OverscanCompensation=0 >> /dev/null 2>&1


stereo_off:
!/bin/bash -i
nvidia-settings -a OverscanCompensation=115 >> /dev/null 2>&1

With these scripts you can turn overscan compensation on and off with a simple command.

Linux Stereoscopic Video Player:
The only thing we were missing with our 3D setup was a stereoscopic video player. Luckily, the video player Bino was just released. It requires the newest version of the ffmpeg libraries, so I built them and then built bino. Here's my steps:

> git clone git://git.ffmpeg.org/ffmpeg/
> cd ffmpeg
> git clone git://git.ffmpeg.org/libswscale/
> ./configure --prefix=/usr/local --enable shared
> make install
> make -j 6
> cd ..
> cd bino
> autoreconf
> ./configure PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
> make