diff options
author | Mario <mario@mariovavti.com> | 2019-11-10 12:49:51 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-11-10 14:10:03 +0100 |
commit | 580c3f4ffe9608d2beb56d418c68b3b112420e76 (patch) | |
tree | 82335d01179ac361d3f547a4b8e8c598d302e9f3 /vendor/blueimp/jquery-file-upload/wdio/bin/safaridriver.sh | |
parent | d22766f458a8539a40a57f3946459a9be1f21cd6 (diff) | |
download | volse-hubzilla-580c3f4ffe9608d2beb56d418c68b3b112420e76.tar.gz volse-hubzilla-580c3f4ffe9608d2beb56d418c68b3b112420e76.tar.bz2 volse-hubzilla-580c3f4ffe9608d2beb56d418c68b3b112420e76.zip |
another bulk of composer updates
(cherry picked from commit 6685381fd8db507493c3d7c1793f8c05c681bbce)
Diffstat (limited to 'vendor/blueimp/jquery-file-upload/wdio/bin/safaridriver.sh')
-rw-r--r-- | vendor/blueimp/jquery-file-upload/wdio/bin/safaridriver.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/vendor/blueimp/jquery-file-upload/wdio/bin/safaridriver.sh b/vendor/blueimp/jquery-file-upload/wdio/bin/safaridriver.sh new file mode 100644 index 000000000..829ce9b3b --- /dev/null +++ b/vendor/blueimp/jquery-file-upload/wdio/bin/safaridriver.sh @@ -0,0 +1,31 @@ +#!/bin/sh + +if [ -z "$1" ]; then + echo 'Please select the input device by entering its [index] number:' >&2 + ffmpeg -f avfoundation -list_devices true -i - 2>&1 | grep screen >&2 + read -r INDEX +else + INDEX=$1 +fi + +echo 'Starting safaridriver on 127.0.0.1:4444 ...' >&2 +safaridriver -p 4444 & pid=$! + +# shellcheck disable=SC2064 +trap "kill $pid; exit" INT TERM + +echo 'Starting mjpeg-server on 127.0.0.1:9000 ...' >&2 +mjpeg-server -a 127.0.0.1:9000 -- ffmpeg \ + -loglevel error \ + -probesize 32 \ + -fpsprobesize 0 \ + -analyzeduration 0 \ + -fflags nobuffer \ + -f avfoundation \ + -capture_cursor 1 \ + -r "${FPS:-15}" \ + -pixel_format yuyv422 \ + -i "$INDEX" \ + -f mpjpeg \ + -q "${QUALITY:-2}" \ + - |