USB Web Camera -> M-JPEG Streamer -> ZM doesn't show u

Support and queries relating to all previous versions of ZoneMinder
Locked
allankliu
Posts: 2
Joined: Tue Feb 17, 2009 7:39 am

USB Web Camera -> M-JPEG Streamer -> ZM doesn't show u

Post by allankliu »

I have a USB web camera on the Linux PC (Ubuntu 8.04, Pentium M), which can not be supported by ZM directly. So I refer some hints to install an M-JPEG streamer as workaround. In the command line, I type:

mjpg_streamer --input "input_gspcav1.so --device /dev/video0" --output "output_http.so -p 8080"

This daemon responses following to me:
=======================
MJPG Streamer Version.: 2.0
i: Using V4L1 device.: /dev/video0
i: Desired Resolution: 640 x 480
video /dev/video0
Camera found: LDLC OV7620+VC302
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=24 palette=4
Bridge found: ZC301-2

......

VIDIOCSPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=8 palette=21
VIDIOCGPICT brightnes=32768 hue=0 color=0 contrast=32768 whiteness=0depth=8 palette=21
grabbing method default MMAP asked
VIDIOCGMBUF size 2457616 frames 2 offets[0]=0 offsets[1]=1228808
o: www-folder-path...: disabled
o: HTTP TCP port.....: 8080
o: username:password.: disabled
o: commands..........: enabled

=======================

I can see the stream video on Firefox at http://127.0.0.1:8080/?action=stream. It works well, which means I have setup a MJPEG IP camera locally. The ZM should be able to capture the MJPEG and consider it a native remote IP camera. But it doesn't show up the stream video/image on ZM monitor. I wonder if I have setup the ZM correctly or not. My setting is as following:

goto 127.0.0.1/zm;
Add New Monitor in ZM console.

General:
Name:IPCam
Source Type: Remote
Function: Monitor
Enabled: checked
Linked Monitors: 3(IPCam)
Max FPS: 2
Alarm Max FPS: blank
Reference Image Blend %: 7

Source:
Remote Host Name: 127.0.0.1
Remote Host Port: 8080
Remote Host Path: /?action=stream
Remote Image Colours: 24 bit colour
Capture Width: 640
Capture Height: 480
Orientation: Normal

Then Save. (Maybe I have something wrong in Source Tab?)

Most of other people claim they are successfully in above bridge approach. Why I can not? Does anyone has similar experience?

Allan K Liu
Mikhail
Posts: 4
Joined: Fri Jan 29, 2010 1:31 am

Post by Mikhail »

Did you resolve the issue? I have the same problem http://www.zoneminder.com/forums/viewto ... 9173#59173
jgrawcoc
Posts: 1
Joined: Thu Aug 26, 2010 7:38 pm

Post by jgrawcoc »

Try leaving the "max_fps" field empty and in the ZM options, "Images" tab change "STREAM_METHOD" to "mpeg". that got my web cam to work
Locked