#!/bin/sh
#
# mkthumb_RAW:
# create a jpg formattet preview of 30 seconds of RAW files
# output size is fixed to 320x180, 
# input aspect ratio is set to 4:3
# framerate is 25
#
# Requires sips video converter
#          
# Syntax: mkthumb_RAW.sh -resolution 512 -rotation 0 filename 
#   
# Special thanks to Davi Fox from JPY
# --------------------------------------------------------
sips -s format jpeg -Z $2 -r $4 "$5" -o temp/$$.jpg 2>/dev/null |tail -1|awk ´{print $1}´
exit 0

