6 URI="${2:-http://download.blender.org/peach/bigbuckbunny_movies/BigBuckBunny_640x360.m4v}"
9 echo "usage: $(basename $0) [test|ximage|uri [URI]|v4l2|help]"
14 INPUT="videotestsrc ! video/x-raw,width=1920,height=1080"
18 # without use-damage=0 ximagesrc is very slow, see:
19 # https://bugzilla.gnome.org/show_bug.cgi?id=693037
20 INPUT="ximagesrc use-damage=0 show-pointer=1 ! video/x-raw,framerate=30/1"
25 INPUT="uridecodebin uri=$URI name=$DECODER ${DECODER}."
29 INPUT="v4l2src always-copy=FALSE ! video/x-raw,width=640,height=480"
45 if [ $JPEG_FORMAT -eq 1 ];
47 # am7xxx devices doesn't like jpegs with subsampling other than 420
48 ENCODER="! video/x-raw,format=I420 ! jpegenc"
51 VIDEOCONVERT="videorate ! videoscale add-borders=1 ! videoconvert $ENCODER"
53 VIDEOSINK="am7xxxsink"
54 #VIDEOSINK="autovideosink"
55 #VIDEOSINK="fpsdisplaysink text-overlay=false video-sink=$VIDEOSINK"
57 VIDEO_OUT="$VIDEOCONVERT ! $VIDEOSINK"
59 if [ "x$DECODER" != "x" ];
61 AUDIO_OUT="${DECODER}. ! audioconvert ! autoaudiosink"
65 GST_DEBUG=am7xxxsink:6 \
66 GST_PLUGIN_PATH=$(pwd) \
67 gst-launch-1.0 $INPUT ! $VIDEO_OUT $AUDIO_OUT