Use RPi with Motion as video source

Forum for questions and support relating to the 1.29.x releases only.
Locked
slaeyer
Posts: 2
Joined: Tue Feb 16, 2016 5:44 pm

Use RPi with Motion as video source

Post by slaeyer »

Hello All,

First time poster and new to ZoneMinder but not new to Linux.

I successfully configured a spare desktop as a ZoneMinder server over the weekend. This was a clean install on a 2 TB HDD and I followed the Ubuntu install directions for 1.29.x. ZoneMinder is running and I can login to the console successfully.

I have a pair of webcams in the house setup on a pair of RPi's running Motion. I can browse to their respective urls and see the video feed. I can't for the life of me figure out how to stream this feed into ZoneMinder nor can I find anybody who has managed to get this work in the past or any websites / forums with information on what I might be doing wrong.

If anyone has used a similar setup who could point me in right direction, please let me know.

TYIA
codabiz
Posts: 59
Joined: Sun Jan 04, 2009 10:16 am
Location: London, UK

Re: Use RPi with Motion as video source

Post by codabiz »

I use MotionEyeOS with a Raspberry Pi B which uses the motion daemon. This streams a Logitech webcam to ZM 1.29.0 The url ( without authentication) is: http://IPADDRESS:8081 for the first camera, http://IPADDRESS:8082 2nd camera, on the same Raspberry Pi.

General - Source = Remote

Suorce - Remote Protocol = HTTP
Remote Method = Simple
Remote Hostname = IPADDRESS of Raspberry Pi
Remote Port = 8081
Target Colourspace = 24 bitcolour
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Use RPi with Motion as video source

Post by knight-of-ni »

Most of the similar cases I have read about use mjpg-streamer to do this, like this blog for example:
http://redlegoman.blogspot.com/2013/05/ ... -with.html

Had a user in our IRC channel trying to use motion to stream to zoneminder and could not get it to work. Once he switched to mjpg-streamer it worked immediately. Not saying I know motion won't work, but I am saying that I have not seen a documented case where someone has claimed success.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
User avatar
Barry Jackson
Posts: 21
Joined: Wed Jun 30, 2010 8:11 pm

Re: Use RPi with Motion as video source

Post by Barry Jackson »

I have several RPi 1s running motion-pi (now motion-eyeOS - the name changed.) without problems.
All use the pi-camera boards and are mixed wired and wireless streaming to zoneminder.
They are built into dummy camera cases and have been running for months now.
What is the exact problem that you hit?

@knnniggett
You must have forgotten - you saw a picture of mine!
Yes - I have donated!
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: Use RPi with Motion as video source

Post by knight-of-ni »

Yeah, I guess I did forget you were using motion on those Rasp Pi's.
Anyways, it will be good to know how to get it working motion.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Trigun
Posts: 6
Joined: Thu Nov 16, 2017 12:14 pm

Re: Use RPi with Motion as video source

Post by Trigun »

Hi Guys,

I see this case has been out of reply for a while, but perhaps you guys are able to help me out.
I currently have Motioneye OS running on my Pi3. I would like this to be a source for Zoneminder(1.30) to with with my other Camera's as well.
I've searched the internet but so far no right answer yet.
the problem I am facing is that I am not getting a picture when adding the camera to zoneminder. I've tried the following settings.

General - Source = Remote

Suorce - Remote Protocol = HTTP
Remote Method = Simple
Remote Hostname = IPADDRESS of Raspberry Pi
Remote Port = 8081
Target Colourspace = 24 bitcolour

can someone help me out here?

Thnx in advance!
User avatar
Barry Jackson
Posts: 21
Joined: Wed Jun 30, 2010 8:11 pm

Re: Use RPi with Motion as video source

Post by Barry Jackson »

Make sure that in ZM both max fps settings are left blank and try 640x480 as aspect ratio, otherwise what you have looks OK.
In MotionEyeOS web interface under General settings there is an Advanced settings switch. (top option)
With that ON proceed down to the Expert settings group and switch on 'fast network camera'.
Continue down to the Video Device group and set the resolution to 640x480
Continue down to Video Streaming group and check that the port actually is 8081 and disable authentication.

That may not be optimum but it works for me - best of luck :)
Yes - I have donated!
Locked