script add
This commit is contained in:
parent
e51b42cf4e
commit
c5ce41bb9a
0
scripts/manual/usb-reset.sh
Normal file → Executable file
0
scripts/manual/usb-reset.sh
Normal file → Executable file
17
scripts/manual/video-frame-fetch.sh
Executable file
17
scripts/manual/video-frame-fetch.sh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
PI_HOST="nikto@192.168.42.253" # user@IP‑of lesavka
|
||||||
|
REMOTE_DIR="/tmp" # where eye*-idr.h264 are written
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
WORKDIR="$(mktemp -d)"
|
||||||
|
echo "⏬ pulling IDR samples from $PI_HOST ..."
|
||||||
|
scp "${PI_HOST}:${REMOTE_DIR}/eye*-idr.h264" "$WORKDIR/"
|
||||||
|
|
||||||
|
echo "🎞️ converting to PNG ..."
|
||||||
|
for h264 in "$WORKDIR"/eye*-idr.h264; do
|
||||||
|
png="${h264%.h264}.png"
|
||||||
|
ffmpeg -loglevel error -y -f h264 -i "$h264" -frames:v 1 "$png"
|
||||||
|
echo "🖼️ $(basename "$png") ready"
|
||||||
|
xdg-open "$png" >/dev/null 2>&1 &
|
||||||
|
done
|
||||||
|
echo "✅ done – images are opening (directory: $WORKDIR)"
|
||||||
0
scripts/manual/video-check.sh → scripts/manual/video-stream.sh
Normal file → Executable file
0
scripts/manual/video-check.sh → scripts/manual/video-stream.sh
Normal file → Executable file
Loading…
x
Reference in New Issue
Block a user