Results 1 to 4 of 4

Thread: webcam server to connect to zoneminder?

  1. #1
    Join Date
    Dec 2005
    Location
    USA
    Beans
    134
    Distro
    Ubuntu Development Release

    Question webcam server to connect to zoneminder?

    I have a webcam on a ubuntu machine that i want to share to my zoneminder server on another computer. I want to set the computer to share the webcam as a IP camera or in some form that the zoneminder computer can record.

    All the guides i see refer to "webcam-server" which looks like its a depricated package in 12.04.

    I see the packages "webcam" and "webcamd" would those work?

  2. #2
    Join Date
    Dec 2005
    Location
    USA
    Beans
    134
    Distro
    Ubuntu Development Release

    Re: webcam server to connect to zoneminder?

    Had good luck with "motion". Just pointed server to the 8081 port and worked good.

  3. #3
    Join Date
    Jun 2010
    Beans
    4
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: webcam server to connect to zoneminder?

    I have been wanting to do the same thing.
    I looked at a few options but in the end wrote a small script (called from cron every minute) to grab the image using ffmpeg and then ssh it to my server and ZoneMinder grabs the image from there.
    Not ideal but it works as a static image, and seems to be 'easier' than webcamd.

    Code:
    /usr/bin/ffmpeg -t 10 -f video4linux2 -s 640x480 -r 30 -i /dev/video0 -f oss -f mp4 $FILEVIDEO 
    /usr/bin/ffmpeg -ss 9 -f mp4 -i $FILEVIDEO -s 640x480 -vframes 1 -an $FILEIMAGE
    
    ping -c 1 -t 1 $SERVERIP;
    if [ $? -eq 0 ]; then
        scp $FILEIMAGE username@$SERVERIP:$REMOTEPATH
    fi
    Now to have a look at 'motion'....!

  4. #4
    Join Date
    Jul 2012
    Beans
    1

    Re: webcam server to connect to zoneminder?

    I would recommend mjpeg-streamer
    Check out http://blog.philippklaus.de/2012/01/...-ubuntu-11-10/ for best implementation make a cron job of it starting up with computer.

    Works great with zoneminder
    with source type: ffmpeg
    and source path: http://xx.xx.xx.xx:abcd/?action=stream&ignored.mjpg

    Hope this helps

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •