Changes

Jump to: navigation, search

Home

850 bytes added, 07:44, 16 February 2011
FRAMES -> VIDEO
-r 30 -vcodec mpeg4 -an -b 4000k toiletpaper_wind_0.5.mp4
</code>
 
imagemagick to crop/convert images
 
 
* downsizing 4k frames to HD 1080p (using imagemagick):
imconvert scstereo_01628.tif -geometry 1920x1080 small.tif
* joining left and right frames to make single-frame images (with python and imagemagick <code> montage </code> command):
<source lang="python">
from subprocess import call
import sys
for i in range(0,5856):
try:
cmd = "-geometry +0+0 left/scstereo_left_%05d.tif right/scstere_right_%05d.tif -depth 8 joined/wide_1080p_%05d.tif"%(i, i, i)
print "montage " + cmd
retcode = call("montage " + cmd, shell=True)
if retcode < 0:
print >>sys.stderr, "Child was terminated by signal", -retcode
else:
print >>sys.stderr, "Child returned", retcode
except OSError, e:
print >>sys.stderr, "Execution failed:", e
 
</source>
=== Misc ===

Navigation menu