add option to change the window title (default: reStream)

This commit is contained in:
Fabian Weik 2020-11-20 12:14:45 +01:00
parent 4b3527ebef
commit 30ac3b714d

View File

@ -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 <source>] [-o <output>] [-f <format>]"
echo "Usage: $0 [-p] [-s <source>] [-o <output>] [-f <format>] [--window_title <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 - \
"$@"