3 GST_LAUNCH
='gst-launch-0.10 -e'
5 #FILE1=/home/douglas/sparrow/content/dv/sparrow-1-3-4-12-14208.dv
6 #FILE2=/home/douglas/sparrow/content/dv/sparrow-1-3-4-12-14206.dv
7 #FILE3=/home/douglas/sparrow/content/dv/sparrow-1-3-4-12-14201.dv
8 #FILE4=/home/douglas/sparrow/content/dv/sparrow-1-3-4-12-14202.dv
10 FILE1
=/home
/douglas
/sparrow
/content
/dv-big
/capture1098064.dv
11 FILE2
=/home
/douglas
/sparrow
/content
/dv-big
/capture1098061.dv
12 FILE3
=/home
/douglas
/sparrow
/content
/dv-big
/capture-xx068.dv
13 FILE4
=/home
/douglas
/sparrow
/content
/dv-big
/capture1098066.dv
18 TMP_FILE
=/tmp
/fresh.avi
25 HEIGHT
=$
(( $WIDTH * 3 / 4 ))
28 echo "converting to mjpeg at 4 x ($WIDTH, $HEIGHT), 25 fps"
31 $GST_LAUNCH videomixer name
=mix background
=1 \
32 ! ffmpegcolorspace
! jpegenc idct-method
=2 ! avimux \
33 ! filesink location
=$TMP_FILE \
35 uridecodebin uri
=file://$FILE1 ! deinterlace
! videoscale \
36 ! video
/x-raw-yuv
, width
=$WIDTH, height
=$HEIGHT \
37 ! videobox border-alpha
=0 alpha
=1 left
=0 right
=$
((-3 * $WIDTH)) ! mix. \
39 uridecodebin uri
=file://$FILE2 ! deinterlace
! videoscale \
40 ! video
/x-raw-yuv
, width
=$WIDTH, height
=$HEIGHT \
41 ! videobox border-alpha
=0 alpha
=1 left
=$
((-1 * $WIDTH)) right
=$
((-2 * $WIDTH)) ! mix. \
43 uridecodebin uri
=file://$FILE3 ! deinterlace
! videoscale \
44 ! video
/x-raw-yuv
, width
=$WIDTH, height
=$HEIGHT \
45 ! videobox border-alpha
=0 alpha
=1 left
=$
((-2 * $WIDTH)) right
=$
((-1 * $WIDTH)) ! mix. \
47 uridecodebin uri
=file://$FILE4 ! deinterlace
! videoscale \
48 ! video
/x-raw-yuv
, width
=$WIDTH, height
=$HEIGHT \
49 ! videobox border-alpha
=0 alpha
=1 left
=$
((-3 * $WIDTH)) right
=0 ! mix. \
51 mencoder
$TMP_FILE -o mjpeg-4x
${WIDTH}x
${HEIGHT}.avi
-ovc copy
-fps 25 -ofps 25