From 30ac3b714daaa70e3999d029d4340fe543d70566 Mon Sep 17 00:00:00 2001 From: Fabian Weik Date: Fri, 20 Nov 2020 12:14:45 +0100 Subject: [PATCH] add option to change the window title (default: reStream) --- reStream.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/reStream.sh b/reStream.sh index 0c3c810..e407d18 100755 --- a/reStream.sh +++ b/reStream.sh @@ -7,6 +7,7 @@ output_path=- # display output through ffplay format=- # automatic output format webcam=false # not to a webcam measure_throughput=false # measure how fast data is being transferred +window_tile=reStream # stream windoe title is reStream # loop through arguments and process them while [ $# -gt 0 ]; do @@ -55,8 +56,13 @@ while [ $# -gt 0 ]; do fi shift ;; + --window_title) + window_title="$2" + shift + shift + ;; -h | --help | *) - echo "Usage: $0 [-p] [-s ] [-o ] [-f ]" + echo "Usage: $0 [-p] [-s ] [-o ] [-f ] [--window_title ]" echo "Examples:" echo " $0 # live view in landscape" echo " $0 -p # live view in portrait" @@ -189,5 +195,6 @@ ssh_cmd "$read_loop" \ -f rawvideo \ -pixel_format rgb565le \ -video_size "$width,$height" \ + -window_title "$window_title" \ -i - \ "$@"