summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-10-25 23:54:10 +0100
committerCarl Hetherington <cth@carlh.net>2014-10-25 23:54:10 +0100
commit724ffceca447911b703ff7865d4a754dd0d5f7c3 (patch)
treec1d46d8592ea1086fa9c54984403809b82565e83
parent6a83317e65555954dd33c7b1c62e3a317ff37bd2 (diff)
Add handy script.
-rwxr-xr-xhacks/compare_dcp_tests.sh36
1 files changed, 36 insertions, 0 deletions
diff --git a/hacks/compare_dcp_tests.sh b/hacks/compare_dcp_tests.sh
new file mode 100755
index 000000000..30949cdef
--- /dev/null
+++ b/hacks/compare_dcp_tests.sh
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+name=$1
+if [ "$name" == "" ]; then
+ echo "Syntax $0 <name>"
+ exit 1
+fi
+
+mkdir -p tmp/ref
+cp test/data/$name/*video.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/*video.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
+