I dug through the wiki on here and found multiple posts about IP cameras and a few on webcams. I have spent hours scouring the web and now I hope someone may be able to help here. I currently have my webcam streaming over a URL just fine (http://192.168.1.214:8081/).
I am using a RPI 3B running OH ver 3 with a USB logitech webcam. I can view the stream from the URL just fine from a web browser (not through openhab). I have no idea what format is being used here. I have tried multiple attempts to use the IP Camera binding with my URL but I seem to be failing. The “Thing” will show up connected but with no feed (everything is NULL).
Has anyone here implemetned a webcam in Openhab using Motion?
All I’m after is to post a snapshot from my webcam. I am not interested in only posting during motion. A live feed would be great. One single picture would also work.
As @kristofejro wrote you can display the video stream directly if it is in mjpeg format which it most likely is. This should be preferred as the stream will not pass through the openhab server and go from camera to the viewing device.
To get it working in the binding, give your URL as the ffmpeg input, then
ffmpegInputOptions="-f mjpeg"
That will tell ffmpeg the stream is in mjpeg format. You can then create gif, record to mp4 and some of the other features.