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 - \ "$@"