add option to change the window title (default: reStream)
This commit is contained in:
parent
4b3527ebef
commit
30ac3b714d
@ -7,6 +7,7 @@ output_path=- # display output through ffplay
|
|||||||
format=- # automatic output format
|
format=- # automatic output format
|
||||||
webcam=false # not to a webcam
|
webcam=false # not to a webcam
|
||||||
measure_throughput=false # measure how fast data is being transferred
|
measure_throughput=false # measure how fast data is being transferred
|
||||||
|
window_tile=reStream # stream windoe title is reStream
|
||||||
|
|
||||||
# loop through arguments and process them
|
# loop through arguments and process them
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
@ -55,8 +56,13 @@ while [ $# -gt 0 ]; do
|
|||||||
fi
|
fi
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
--window_title)
|
||||||
|
window_title="$2"
|
||||||
|
shift
|
||||||
|
shift
|
||||||
|
;;
|
||||||
-h | --help | *)
|
-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 "Examples:"
|
||||||
echo " $0 # live view in landscape"
|
echo " $0 # live view in landscape"
|
||||||
echo " $0 -p # live view in portrait"
|
echo " $0 -p # live view in portrait"
|
||||||
@ -189,5 +195,6 @@ ssh_cmd "$read_loop" \
|
|||||||
-f rawvideo \
|
-f rawvideo \
|
||||||
-pixel_format rgb565le \
|
-pixel_format rgb565le \
|
||||||
-video_size "$width,$height" \
|
-video_size "$width,$height" \
|
||||||
|
-window_title "$window_title" \
|
||||||
-i - \
|
-i - \
|
||||||
"$@"
|
"$@"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user