shfmt
This commit is contained in:
parent
995486e1ec
commit
d436a8ecb0
@ -102,9 +102,9 @@ rm2_getpointer() {
|
|||||||
;;
|
;;
|
||||||
*) # use last known version if we cannot find a match
|
*) # use last known version if we cannot find a match
|
||||||
echo "WARNING: unknown reMarkable 2 release version" >&2
|
echo "WARNING: unknown reMarkable 2 release version" >&2
|
||||||
echo "consider updating if reStream doesn't work" >&2
|
echo "consider updating if reStream doesn't work" >&2
|
||||||
echo "???"
|
echo "???"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -140,12 +140,10 @@ case "$rm_version" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
# technical parameters
|
# technical parameters
|
||||||
loop_wait="true"
|
loop_wait="true"
|
||||||
loglevel="info"
|
loglevel="info"
|
||||||
|
|
||||||
|
|
||||||
fallback_to_gzip() {
|
fallback_to_gzip() {
|
||||||
echo "Falling back to gzip, your experience may not be optimal."
|
echo "Falling back to gzip, your experience may not be optimal."
|
||||||
echo "Go to https://github.com/rien/reStream/#sub-second-latency for a better experience."
|
echo "Go to https://github.com/rien/reStream/#sub-second-latency for a better experience."
|
||||||
@ -191,7 +189,6 @@ video_filters=""
|
|||||||
# store extra ffmpeg arguments in $@
|
# store extra ffmpeg arguments in $@
|
||||||
set --
|
set --
|
||||||
|
|
||||||
|
|
||||||
# rotate 90 degrees if landscape=true
|
# rotate 90 degrees if landscape=true
|
||||||
$landscape && video_filters="$video_filters,transpose=1"
|
$landscape && video_filters="$video_filters,transpose=1"
|
||||||
|
|
||||||
@ -207,7 +204,6 @@ fi
|
|||||||
# set each frame presentation time to the time it is received
|
# set each frame presentation time to the time it is received
|
||||||
video_filters="$video_filters,setpts=(RTCTIME - RTCSTART) / (TB * 1000000)"
|
video_filters="$video_filters,setpts=(RTCTIME - RTCSTART) / (TB * 1000000)"
|
||||||
|
|
||||||
|
|
||||||
# loop that keeps on reading and compressing, to be executed remotely
|
# loop that keeps on reading and compressing, to be executed remotely
|
||||||
read_loop="while $head_fb0; do $loop_wait; done | $compress"
|
read_loop="while $head_fb0; do $loop_wait; done | $compress"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user