Take snapshot through URL #3536
Replies: 1 comment
-
So this is a bit hacky... would love to know a better way to do this, but it's working for anyone else that needs this: Setup ffmpeg to produce a new snapshot jpg by adding the following to your
This snapshot gets stored in your Now as long as you tune the |
Beta Was this translation helpful? Give feedback.
-
I have built a rPi Camera to monitor my 3D printers using mediamtx an rPi zero 2W. For this purpose, it works great. When defining the camera in Mainsail (front end to control the printers) you define both a stream URL (just used IP:8889/mycam) and a snapshot URL so you can do a timelapse with Moonraker (the underlying web server) while the toolhead is parked at a specified point.
I haven't managed to set this up. I have tried this:
mycam: source: rpiCamera snapshot: runOnRead: ffmpeg -i rtsp://localhost:8554/cam -frames 1 -y /tmp/out.jpg runOnReadRestart: yes
I have also tried runOnDemand with no luck.
Is there a way to accomplish this?
Beta Was this translation helpful? Give feedback.
All reactions