HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: NicoVermeir on July 17, 2015, 01:19:19 PM

Title: MJPEG in camera module
Post by: NicoVermeir on July 17, 2015, 01:19:19 PM
I have a webcam attached to a raspberry pi running debian. I installed ffmpeg and setup a stream. I can access and view the stream from http://ipofthepi/webcam.mjpeg (http://ipofthepi/webcam.mjpeg) but I cannot use this url in the generic ipcamera module. no picture appears.

any clues on how to get this to work?
Title: Re: MJPEG in camera module
Post by: kevin1 on July 17, 2015, 01:52:48 PM
I am not using Pi, have you seen in the HG Settings, Camera Device?  There are settings for /device/video0, resolution and frames per second.  It says:
Quote
Works with any Video4Linux compatible device on /dev/video (x64 Ubuntu and Rasberry Pi only).

Title: Re: MJPEG in camera module
Post by: NicoVermeir on July 17, 2015, 02:27:26 PM
I am not using Pi, have you seen in the HG Settings, Camera Device?  There are settings for /device/video0, resolution and frames per second.  It says:
Quote
Works with any Video4Linux compatible device on /dev/video (x64 Ubuntu and Rasberry Pi only).

those settings are for camera's directly attached to the HG box. My pi is a stand alone device with a usb camera connected and a live stream url
Title: Re: MJPEG in camera module
Post by: kevin1 on July 17, 2015, 08:41:34 PM
Okay, does the stream provide a .jpg image?  HG definitely works with that.  Are you able to use any test cameras (find a traffic camera or anything on the net)?  I actually have a animated weather radar image like this in one widget on my weather group: http://sirocco.accuweather.com/sat_mosaic_400x300_public/rs/isarNY_.gif (http://sirocco.accuweather.com/sat_mosaic_400x300_public/rs/isarNY_.gif)
Title: Re: MJPEG in camera module
Post by: NicoVermeir on July 20, 2015, 11:32:42 AM
update:

as a test I moved my HG installation from the old ubuntu tablet I had lying around to the raspberry pi that the webcam is connected to, now using the video 4 linux widget I have the camera up and running.

so, on to the next question: how can I add a second camera that is connected to another raspberry pi to my HG installation?