This commit is contained in:
Mark 2025-01-25 15:27:53 -08:00
parent 006d83e9b8
commit a46eb517e8
Signed by: Mark
GPG Key ID: C6D63995FE72FD80

View File

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