summaryrefslogtreecommitdiff
path: root/hacks/compare_dcp_tests
blob: ae9942c6ec252546a93c19b5bbaa87cadc61c2a8 (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
#!/bin/bash

name=$1
if [ "$name" == "" ]; then
  echo "Syntax $0 <name>"
  exit 1
fi

mkdir -p tmp/ref
cp test/data/$name/j2c*.mxf tmp/ref
cd tmp/ref
asdcp-unwrap *.mxf
for f in *.j2c; do 
  j2k_to_image -i $f -o $f.png
done
cd ../..

mkdir -p tmp/new
for d in `find build/test/$name -mindepth 1 -maxdepth 1 -type d`; do
  b=`basename $d`
  echo $d, $b
  if [ $b != "info" -a $b != "video" ]; then
      cp $d/j2c_*.mxf tmp/new
  fi
done

cd tmp/new
asdcp-unwrap *.mxf
for f in *.j2c; do
  j2k_to_image -i $f -o $f.png
done
cd ../..

eog tmp/ref/*.png &
eog tmp/new/*.png