#!/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