mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 01:50:47 -04:00
ugh
This commit is contained in:
@@ -17,7 +17,8 @@ VIDEO_WIDTH="${VIDEO_WIDTH:-1920}"
|
|||||||
VIDEO_HEIGHT="${VIDEO_HEIGHT:-1080}"
|
VIDEO_HEIGHT="${VIDEO_HEIGHT:-1080}"
|
||||||
VIDEO_FPS="${VIDEO_FPS:-30}"
|
VIDEO_FPS="${VIDEO_FPS:-30}"
|
||||||
VIDEO_BITRATE="${VIDEO_BITRATE:-3000000}"
|
VIDEO_BITRATE="${VIDEO_BITRATE:-3000000}"
|
||||||
FLIP_ARGS=(--transform rotate180)
|
# Flip the camera 180deg (supported by rpicam-vid/libcamera-vid)
|
||||||
|
FLIP_ARGS=(--rotation 180)
|
||||||
|
|
||||||
if [[ -n "${LIBCAMERA_BIN:-}" ]]; then
|
if [[ -n "${LIBCAMERA_BIN:-}" ]]; then
|
||||||
LIBCAMERA_BIN_PATH="$LIBCAMERA_BIN"
|
LIBCAMERA_BIN_PATH="$LIBCAMERA_BIN"
|
||||||
@@ -39,6 +40,12 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Prefer a single rotate flag when supported; fall back to h+v flip otherwise.
|
||||||
|
FLIP_ARGS=(--hflip --vflip)
|
||||||
|
if "${LIBCAMERA_BIN_PATH}" --help 2>&1 | grep -q -- "--rotation"; then
|
||||||
|
FLIP_ARGS=(--rotation 180)
|
||||||
|
fi
|
||||||
|
|
||||||
run_pipeline() {
|
run_pipeline() {
|
||||||
"${LIBCAMERA_BIN_PATH}" \
|
"${LIBCAMERA_BIN_PATH}" \
|
||||||
--inline \
|
--inline \
|
||||||
|
|||||||
Reference in New Issue
Block a user