try not setting caps in pad_added callback: in complains
[opo.git] / convert_video.sh
blobdd7979e4b6bba13990c57ede34861cd40dc7b27a
1 #!/bin/sh
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
17 WIDTH=1024
18 HEIGHT=768
22 $GST_LAUNCH videomixer name=mix ! ffmpegcolorspace ! jpegenc ! avimux ! filesink location=mjpeg.avi \
24 uridecodebin uri=file://$FILE1 ! deinterlace ! videoscale ! video/x-raw-yuv, width=$WIDTH, height=$HEIGHT \
25 ! videobox border-alpha=0 left=0 right=$((-3 * $WIDTH)) ! mix. \
27 uridecodebin uri=file://$FILE2 ! deinterlace ! videoscale ! video/x-raw-yuv, width=$WIDTH, height=$HEIGHT \
28 ! videobox border-alpha=0 left=$((-1 * $WIDTH)) right=$((-2 * $WIDTH)) ! mix. \
30 uridecodebin uri=file://$FILE3 ! deinterlace ! videoscale ! video/x-raw-yuv, width=$WIDTH, height=$HEIGHT \
31 ! videobox border-alpha=0 left=$((-2 * $WIDTH)) right=$((-1 * $WIDTH)) ! mix. \
33 uridecodebin uri=file://$FILE4 ! deinterlace ! videoscale ! video/x-raw-yuv, width=$WIDTH, height=$HEIGHT \
34 ! videobox border-alpha=0 left=$((-3 * $WIDTH)) right=0 ! mix. \