You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Intended to be used by other programs or scripts, not humans
Malformed JSON will panic with a reasonably descriptive error
Examples
[{"input": {"Video4Linux": "/dev/video0"}, "encoder": "Camera", "size": {"width": 320, "height": 240, "framerate": 30}, "url": "/json-stream"}] mounts to /json-stream and streams H.264 provided by the drivers for /dev/video0.
[{"input": "Raspberry", "encoder": "Camera", "size": {"width": 320, "height": 240, "framerate": 30}, "url": "/json-stream"}] is the same, but uses rpicamsrc to get video instead of Video 4 Linux.
[{"input": {"SharedMemory": "/tmp/socket"}, "encoder": "Software", "size": {"width": 320, "height": 240, "framerate": 30}, "url": "/shmem-magic"}] reads I420 frames from /tmp/socket and encodes them as H.264 in software, making the video stream available at /shmem-magic.