RAM Stream

Ram Disk:

  • mkfs -q /dev/ram1 8000
  • mkdir  /ramcache
  • mount /dev/ram1 /ramchache

Kamera Start:

raspistill -w 640 -h 480 -q 10 -o /ramcache/picture.jpg -tl 100 -t 9999999 -th 0:0:0 &

  • w-width
  • h-hight
  • q-quality
  • o-output
  • tl-timelapse interval
  • t-time the programm runs
  • th-thumbnail options
  • &-background

Stream Server Start:

LD_LIBRARY_PATH=./ ./mjpg_streamer -i “input_file.so -f /ramcache -n picture.jpg” -o “output_http.so -w ./www”

  • i-input plugin
  • 0-output plugin