Format
This commit is contained in:
parent
006d83e9b8
commit
a46eb517e8
18
reStream.sh
18
reStream.sh
@ -62,8 +62,8 @@ while [ $# -gt 0 ]; do
|
||||
|
||||
# check if there is a modprobed v4l2 loopback device
|
||||
# use the first cam as default if there is no output_path already
|
||||
cam_path=$(v4l2-ctl --list-devices \
|
||||
| sed -n '/^[^\s]\+platform:v4l2loopback/{n;s/\s*//g;p;q}')
|
||||
cam_path=$(v4l2-ctl --list-devices |
|
||||
sed -n '/^[^\s]\+platform:v4l2loopback/{n;s/\s*//g;p;q}')
|
||||
|
||||
# fail if there is no such device
|
||||
if [ -e "$cam_path" ]; then
|
||||
@ -146,14 +146,14 @@ fi
|
||||
rm_version="$(ssh_cmd cat /sys/devices/soc0/machine)"
|
||||
|
||||
case "$rm_version" in
|
||||
"reMarkable 1.0")
|
||||
"reMarkable 1.0")
|
||||
width=1408
|
||||
height=1872
|
||||
bytes_per_pixel=2
|
||||
fb_file="/dev/fb0"
|
||||
pixel_format="rgb565le"
|
||||
;;
|
||||
"reMarkable 2.0")
|
||||
"reMarkable 2.0")
|
||||
if ssh_cmd "[ -f /dev/shm/swtfb.01 ]"; then
|
||||
width=1404
|
||||
height=1872
|
||||
@ -180,7 +180,7 @@ case "$rm_version" in
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
*)
|
||||
echo "Unsupported reMarkable version: $rm_version."
|
||||
echo "Please visit https://github.com/rien/reStream/ for updates."
|
||||
exit 1
|
||||
@ -278,10 +278,10 @@ else
|
||||
fi
|
||||
|
||||
# shellcheck disable=SC2086,SC2090
|
||||
$receive_cmd \
|
||||
| $decompress \
|
||||
| $host_passthrough \
|
||||
| (
|
||||
$receive_cmd |
|
||||
$decompress |
|
||||
$host_passthrough |
|
||||
(
|
||||
"$output_cmd" \
|
||||
-vcodec rawvideo \
|
||||
-loglevel "$loglevel" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user