How to make a 3d movie with ffmpeg
Jump to navigation
Jump to search
how to combine two seperate videos into one left-right 3d video
1. Convert both movies to png still images
- 1. ffmpeg -r 20 -i test01-left.avi -r 20 -s 640x480 frames-left/%09d.png
- 2. ffmpeg -r 20 -i test01-rigth.avi -r 20 -s 640x480 frames-right/%09d.png
2. Bash script for putting still images side by side, using imagemagick's montage command. script assumes 320x240 resolution.
a=1 while [ $a -lt 2416 ] do b=`printf "%09d" $a` montage frames-left/$b.png frames-right/$b.png -geometry 320x240+0+0 frames-done/$b.jpg let a++ done
3. Convert images to avi
- 1. ffmpeg -i %03d.png -an -vcodec copy -f avi outputfile.avi