more G-Labs products

Author Topic: MJPEG in camera module  (Read 1090 times)

July 17, 2015, 01:19:19 PM
Read 1090 times

NicoVermeir

  • ****
  • Information
  • Sr. Member
  • Posts: 122
    • My blog
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 but I cannot use this url in the generic ipcamera module. no picture appears.

any clues on how to get this to work?

July 17, 2015, 01:52:48 PM
Reply #1

kevin1

  • *****
  • Information
  • Hero Member
  • Posts: 330
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).


July 17, 2015, 02:27:26 PM
Reply #2

NicoVermeir

  • ****
  • Information
  • Sr. Member
  • Posts: 122
    • My blog
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

July 17, 2015, 08:41:34 PM
Reply #3

kevin1

  • *****
  • Information
  • Hero Member
  • Posts: 330
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

July 20, 2015, 11:32:42 AM
Reply #4

NicoVermeir

  • ****
  • Information
  • Sr. Member
  • Posts: 122
    • My blog
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?