All pastes #1323168 Raw Edit

rawdiff.sh

public shellscript v1 · immutable
#1323168 ·published 2009-01-30 22:58 UTC
rendered paste body
#!/bin/bashif [ ! "$5" ]then    echo 'Use: rawdiff.sh <in 1> <in 2> <width> <height> <fps> [mul] [playback opts]'    exit 1fiI1="$1"I2="$2"W="$3"H="$4"FPS="$5"OPTS="$7"if [ "$6" ]then    MUL="$6"else    MUL="1"fimkfifo i1 i2 o# Set up the inputsmencoder "$I1" -vf format=rgb24 -nosound -ovc raw -of rawvideo -o i1 &mencoder "$I2" -vf format=rgb24 -nosound -ovc raw -of rawvideo -o i2 &# And the output./rawdiff i1 i2 o "$MUL" &# Then play itmplayer o -demuxer rawvideo -rawvideo format=rgb24:w="$W":h="$H":fps="$FPS" $OPTS# And get rid of stragglerskill %1kill %2wait