Format
This commit is contained in:
parent
006d83e9b8
commit
a46eb517e8
12
reStream.sh
12
reStream.sh
@ -62,8 +62,8 @@ while [ $# -gt 0 ]; do
|
|||||||
|
|
||||||
# check if there is a modprobed v4l2 loopback device
|
# check if there is a modprobed v4l2 loopback device
|
||||||
# use the first cam as default if there is no output_path already
|
# use the first cam as default if there is no output_path already
|
||||||
cam_path=$(v4l2-ctl --list-devices \
|
cam_path=$(v4l2-ctl --list-devices |
|
||||||
| sed -n '/^[^\s]\+platform:v4l2loopback/{n;s/\s*//g;p;q}')
|
sed -n '/^[^\s]\+platform:v4l2loopback/{n;s/\s*//g;p;q}')
|
||||||
|
|
||||||
# fail if there is no such device
|
# fail if there is no such device
|
||||||
if [ -e "$cam_path" ]; then
|
if [ -e "$cam_path" ]; then
|
||||||
@ -278,10 +278,10 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# shellcheck disable=SC2086,SC2090
|
# shellcheck disable=SC2086,SC2090
|
||||||
$receive_cmd \
|
$receive_cmd |
|
||||||
| $decompress \
|
$decompress |
|
||||||
| $host_passthrough \
|
$host_passthrough |
|
||||||
| (
|
(
|
||||||
"$output_cmd" \
|
"$output_cmd" \
|
||||||
-vcodec rawvideo \
|
-vcodec rawvideo \
|
||||||
-loglevel "$loglevel" \
|
-loglevel "$loglevel" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user