From: Antonio Ospite Date: Mon, 8 Jan 2018 12:03:04 +0000 (+0100) Subject: gst-test-jpegdec.sh: split out height and width settings X-Git-Url: https://git.ao2.it/experiments/gstreamer.git/commitdiff_plain/096f7c65165e513258f0305e128e8cd0d6d54b36 gst-test-jpegdec.sh: split out height and width settings This makes it easier to change the values to test different sizes. --- diff --git a/shell/gst-test-jpegdec.sh b/shell/gst-test-jpegdec.sh index 997a629..d478c77 100755 --- a/shell/gst-test-jpegdec.sh +++ b/shell/gst-test-jpegdec.sh @@ -9,7 +9,9 @@ command -v cjpeg &> /dev/null || { echo "cjpeg needed, should be in libjpeg-turb if [ "x$1" = "x" ]; then - gst-launch-1.0 videotestsrc num-buffers=1 ! video/x-raw,width=996,height=784 ! jpegenc ! filesink location=videotest.jpg + WIDTH=996 + HEIGHT=784 + gst-launch-1.0 videotestsrc num-buffers=1 ! "video/x-raw,width=${WIDTH},height=${HEIGHT}" ! jpegenc ! filesink location=videotest.jpg INPUT_FILE="videotest.jpg" else INPUT_FILE="$1"