-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcr2mov.sh
More file actions
executable file
·28 lines (22 loc) · 984 Bytes
/
cr2mov.sh
File metadata and controls
executable file
·28 lines (22 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
#NOTE: This script MUST be run from the directory with all the *.CR2 images in it
exposure=${1:-'0'}
nprocs=${2:-'3'}
# Convert all the CR2 files to jpg
if command -v parallel &>/dev/null; then
#time nice parallel -j $nprocs ufraw-batch --out-type=jpg --exposure=$exposure -- *.CR2
time nice parallel --citation -j $nprocs ufraw-batch --out-type=jpg --exposure=$exposure ::: *.CR2
else
time nice ufraw-batch --out-type=jpg --exposure=$exposure *.CR2
fi
# create an mov
#
# ffmpeg options culled from the following sources:
# http://mewiki.project357.com/wiki/X264_Encoding_Suggestions#QuickTime-compatible_Encoding
# https://trac.ffmpeg.org/wiki/Encode/H.264
# http://en.wikipedia.org/wiki/High-definition_television
# http://en.wikibooks.org/wiki/FFMPEG_An_Intermediate_Guide/image_sequence
#up_dir=`ls -d ..`
#mov_name=`basename $up_dir`
#time ffmpeg -f image2 -pattern_type glob -i "*.jpg" -r 30 -s 1920x1080 -pix_fmt yuv420p "${mov_name}.mov"
jpg2mov.sh