thermalcam_decoder/run_live.sh

15 lines
395 B
Bash
Raw Normal View History

2024-02-15 00:30:29 +02:00
#!/bin/bash
cd $(dirname $0)
set -e
# Python works but stutters
#sudo ./venv/bin/python ./decode.py --live
cargo build --release --example live
sudo ./target/release/examples/live /dev/stdout | gst-launch-1.0 filesrc location=/dev/stdin \
! rawvideoparse use_sink_caps=false height=384 width=288 format=gray16-le \
! videoconvertscale \
! v4l2sink device=/dev/video0
# ! videoconvertscale