Travails with my camera

Tilt Shift

I’ve always liked little tilt-shift movies.

So can we make this effect with a Go-Pro HD?  This script is my initial attempt, results to follow.

#!/bin/bash

width=$1
 height=$2
 name=$3

mkdir -p tilt_shift
 i=10000

for file in *.png
 do
 convert $file -sigmoidal-contrast 15x30% \( +clone -sparse-color Barycentric '0,0 black 0,%h gray80' -solarize 50% -level 50%,0 \) -compose Blur -set option:compose:args 5 -composite tilt_shift/${i}_model.png
 i=`expr $i + 1`
 done

cd tilt_shift
 ffmpeg -f image2 -s $widthx$height -r 25 -i %d_model.png -vf scale=1920:1080:0 -sws_flags spline -target xdcamhd422 -f mov $name.mov
 rm *_model.png
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s