blob: 5b01948a629edc97d156867fe3a8dd861f83e8bc (
plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#!/bin/bash
DIR=/var/jenkins/workspace/dcpomatic2-long-test/test/dcpomatic-test/output
test=$1
frame=$2
if [ "$test" == "" -o "$frame" == "" ]; then
echo "Syntax: $0 <test> <frame>"
exit 1
fi
tmp=/tmp/$$.tmp
mkdir -p $tmp
a=`ls $DIR | head -n 1`
b=`ls $DIR | tail -n 1`
pushd ~/src/dcpomatic
if [ `git rev-list $a..HEAD | grep $b` != "" ]; then
old=$a
new=$b
else
old=$b
new=$a
fi
popd
echo "old is $old, new is $new"
echo "working in $tmp"
n=`printf "%06d" $frame`
pushd $tmp
cp $DIR/$old/$test.xml/video/* old.mxf
asdcp-unwrap old.mxf
j2k_to_image -i old_$n.j2c -o old.png
cp $DIR/$new/$test.xml/video/* new.mxf
asdcp-unwrap new.mxf
j2k_to_image -i new_$n.j2c -o new.png
popd
cp $tmp/old.png $tmp/new.png .
|