Motion - Support Question 2015x 10x 02x 185939

Configure Network IP Cam with Raspberry Pi as DVR

Question

Hi all, I'm trying to configure my Raspberry Pi as a DVR using the Pi Cam Module and several network IP cams (just one IP cam for now). I have Raspbian installed on a Pi 2 model B, V1.1 with the Pi Camera Module and also installed Motion (per http://www.instructables.com/id/Raspber ... ce-camera/). With a few tweaks it works just fine with the Pi Cam Module (detects motion, saves snapshots and videos, view live stream on VLC). big grin

My problem is with connecting to the IP cams. The IP cams available are DLink DCS-920 or TP-Link TL-SC4171

I modify motion.conf to point to the IP cam (netcam_url http://192.168.1.30/IMAGE.JPG, netcam_userpass Viewer:12345678) but I always get images from the Pi Cam Module. Still works fine, just the wrong cam. frown, sad smile

The log shows: [0] [NTC] [ALL] [Sep 30 15:14:23] main: Thread 1 is device: IMAGE.JPG input -1

I'm suspicious about the "input -1" as it supposedly refers to a USB cam but, just guessing. thinking

I'm sure the URL is valid. If I put it in the Epiphany browser on the RPi it returns the correct image after I put the user/pass.

Maybe I need to set something like: netcam_url http://192.168.1.30/IMAGE.JPG?user=Viewer&pass=12345678

Any ideas on how to get the RPi to see the IP cam?

Thanks in advance!!

Doug

P.S. I've also tried using thread1.conf, thread2.conf with the IP cam settings and Pi cam settings separated. No images at all and Motion crashes without creating the log file. But, I'll create a separate wiki page once I have the stand alone config working.

P.P.S. I can't figure out how to get it to tell me the version number. But, it was installed within the last two weeks.
netcam_userpass Viewer:12345678
netcam_url http://192.168.1.30/IMAGE.JPG

or 

netcam_url http://192.168.1.30/VIDEO.CGI

[0] [NTC] [ALL] [Sep 30 15:14:23] main: Thread 1 is device: http://192.168.1.30/IMAGE.JPG input -1

Environment

Motion version: 3.2.12
ffmpeg version:  
Libraries: ffmpeg, mysql, postgresql
Server OS:  
-- DouglasHurd - 02 Oct 2015

Answer

I Attachment Action Size Date Who Comment
motion.confconf motion.conf manage 28 K 04 Oct 2015 - 17:23 UnknownUser Corresponding config file
motion.loglog motion.log manage 31 K 02 Oct 2015 - 20:09 UnknownUser Corresponding log file
Topic revision: r2 - 04 Oct 2015, DouglasHurd
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.