From 096f7c65165e513258f0305e128e8cd0d6d54b36 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Mon, 8 Jan 2018 13:03:04 +0100 Subject: [PATCH 1/1] gst-test-jpegdec.sh: split out height and width settings This makes it easier to change the values to test different sizes. --- shell/gst-test-jpegdec.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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" -- 2.1.4