This repository has been archived on 2025-06-01. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Find a file
2023-01-14 15:11:57 +01:00
.github now specifying python version in fpm build 2022-10-07 19:12:38 +02:00
compLib Move client foler 2022-12-17 23:59:06 +01:00
docs Move client foler 2022-12-17 23:59:06 +01:00
.gitignore Move client foler 2022-12-17 23:59:06 +01:00
build.sh fixed moving built package to the correct output directory 2022-12-18 15:08:20 +01:00
build_deb.sh Move client foler 2022-12-17 23:59:06 +01:00
MANIFEST.in Move client foler 2022-12-17 23:59:06 +01:00
motorLinearityTest.py Move client foler 2022-12-17 23:59:06 +01:00
postinstall.sh Move client foler 2022-12-17 23:59:06 +01:00
README.md fixed moving built package to the correct output directory 2022-12-18 15:08:20 +01:00
setup.py fix keyerror setup py 2022-12-18 00:03:26 +01:00
sphinx_to_github.sh Move client foler 2022-12-17 23:59:06 +01:00
test.py Move client foler 2022-12-17 23:59:06 +01:00

compLIB

Dependencies

Building documentation

pip install sphinx-rtd-theme

Writing docs

Inline documentation example reStructured Text

ENV Variables

  • DEBUG, default="0", If set to != "0" (default), debug prints will be enabled
  • API_URL, default="http://localhost:5000/"
  • API_FORCE, default="", if set to !="" (default), it will replace the API_URL env variable
  • FORCE_SEED, default="-1", if set to !="-1" (default), the seeding seed supplied by the user will be ignored and this seed will be used instead

Stream Video

sudo raspivid -t 0 -b 10000000 -w 1920 -h 1080 -fps 30 -n -o - | gst-launch-1.0 fdsrc ! video/x-h264,width=1280,height=720,framerate=30/1,noise-reduction=1,profile=high,stream-format=byte-stream  ! h264parse ! queue ! flvmux streamable=true ! rtmpsink location=\"rtmp://10.1.1.68/live/stream\"```

Stream video from generic USB camera

with gst, very cpu heavy

gst-launch-1.0 v4l2src ! image/jpeg,width=640,height=480,framerate=30/1  ! jpegdec ! x264enc ! flvmux streamable=true ! rtmpsink location="rtmp://10.20.86.88/live/stream"

with ffmpeg, cpu friendly

ffmpeg -f v4l2  -framerate 30 -video_size 640x480 -i /dev/video0 -b:v 2M -f flv rtmp://10.20.86.88/live/stream

Bullseye now only supports libcamera

https://www.raspberrypi.com/news/bullseye-camera-system/

(This can still be mitigated by enabling "old camera support" in the raspi-config settings. (This is done automatically in the postinstallscript)