Soar Over Asteroid Vesta in 3-D
Channel: Jiec6shi
Date: 03/12/2011

The last few seconds are missing from this version. A corrected version is available at http://www.youtube.com/watch?v=Zudzwjw7wRE

Converted NASA/JPLNews' Video to side-by-side youtube 3d video with ffmpeg and imagemagick using only the red and green channels. The blue channel has been dropped all together. Source Video taken from:
http://www.jpl.nasa.gov/video/download.php?mm_type=hdmov&id=1041&file=dawn/20111201/dawn20111130-1280.mov
http://www.jpl.nasa.gov/video/
http://www.nasa.gov/mission_pages/dawn/news/dawn20111201.html 
http://www.youtube.com/watch?v=tGpZT8WL2y0


The following script was used to create this video. Sadly, ffmpeg segfaults reproducably close to the end, so the Video is cut short by a few seconds.
#!/bin/bash
#ffmpeg  -i  dawn20111201-1280.mov  -vcodec png -an 1_png/dawn%d.png
#ffmpeg -i dawn20111201-1280.mov  -f matroska -vn -y dawn_aac.mkv
# mkdir 8
# mkdir 2_rg
# mkdir 1_png

for i in 1_png/*png; do 
   B=`basename "$i" .png`
   r=2_rg/"$B"_r.png
   g=2_rg/"$B"_g.png
   #s=3_s/"$B"_s.png
   s=8/"$B"_s.png
   convert "$i" -channel R -separate "$r"; 
   convert "$i" -channel G -separate "$g"

   #convert -size 1280x720 xc:magenta -draw  "image SrcOver 0,0 640,720 \"${r}\"" -draw "image SrcOver 640,0 640,720 \"${g}\""  "${s}"
   #for i in 3_s/*_s.png; do convert -depth 8 $i  8/`basename $i .png`8.png; done
   #for i in 3_s/*_s.png; do convert -depth 8 $i  8/`basename $i .png`8.png; done

   convert -size 1280x720 xc:magenta -draw  "image SrcOver 0,0 640,720 \"${r}\"" -draw "image SrcOver 640,0 640,720 \"${g}\"" -depth 8  "${s}"
   #for i in 3_s/*_s.png; do convert -depth 8 $i  8/`basename $i .png`8.png; done

   echo -n .
done
time ffmpeg -i 8/dawn%d_s8.png -i dawn_aac.mkv -r 29.970 -f matroska -vcodec libx264  -vpre libx264-medium -acodec copy  -b 9176k -refs 1 -keyint_min 25   -y dawn_3d_2.mkv