LinuxMCE Forums

General => Users => Topic started by: darkwizard864 on August 06, 2018, 07:07:25 pm

Title: ip cameras
Post by: darkwizard864 on August 06, 2018, 07:07:25 pm
hmm i am confused if i add motion ip camera with /mjpeg/snap.cgi?chn=0  i get nothing but if http://admin:admin@192.168.80.135/mjpeg/snap.cgi?chn=0 in internet expolorer it shows pic
i was wondering what i am doing wrong.
Title: Re: ip cameras
Post by: Marie.O on August 06, 2018, 08:45:33 pm
Post a screenshort containing all the properties you've used to describe the camera.
Title: Re: ip cameras
Post by: darkwizard864 on August 06, 2018, 09:14:46 pm
here are pics ....
Title: Re: ip cameras
Post by: Marie.O on August 07, 2018, 11:43:07 pm
Check the wiki for the Advanced IP Camera device, and see if following the instructions will get you going.
Title: Re: ip cameras
Post by: darkwizard864 on August 07, 2018, 11:49:01 pm
I tried that all I get is gray screen and can't connect to camera.
Title: Re: ip cameras
Post by: Marie.O on August 08, 2018, 06:08:56 am
Post your settings with Advanced IP Camera please
Title: Re: ip cameras
Post by: darkwizard864 on August 08, 2018, 06:20:44 am
here is adavance camera settings.
camera is a swansview w3
Title: Re: ip cameras
Post by: Marie.O on August 08, 2018, 02:31:20 pm
Looks good. Do you get a picture when you use curl http://192.168.80.135/mjpeg/snap.cgi?chn=0

Attached is my working device. One thing that might cause issues is using video in stand of pictures...
Title: Re: ip cameras
Post by: darkwizard864 on August 08, 2018, 02:56:13 pm
dcerouter_1047348:~# curl http://admin:123456@192.168.80.135/mjpeg/snap.cgi?chn=1
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
  <title>401 - Unauthorized</title>
 </head>
 <body>
  <h1>401 - Unauthorized</h1>
 </body>
</html>
dcerouter_1047348:~#
Title: Re: ip cameras
Post by: Marie.O on August 08, 2018, 03:47:17 pm
Looks like the password or authorization is wrong
Title: Re: ip cameras
Post by: darkwizard864 on August 08, 2018, 04:07:25 pm
I got it to work in curl like this

dcerouter_1047348:~# curl --user admin:123456 http://192.168.80.135/mjpeg/snap.cgi?chn=0 --digest -o /tmp/snap.jpg
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   351    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  213k  100  213k    0     0   432k      0 --:--:-- --:--:-- --:--:--  729k
dcerouter_1047348:~#
Title: Re: ip cameras
Post by: Marie.O on August 09, 2018, 09:36:33 am
I have contacted Sambuca, the developer of the Advanced IP Camera template, to have a look. Let's see what he finds.
Title: Re: ip cameras
Post by: darkwizard864 on August 17, 2018, 03:46:31 pm
I am guessing he will take a while to look at it ..mean while I will get different cameras.
Title: Re: ip cameras
Post by: Marie.O on August 17, 2018, 05:19:38 pm
See if your camera can do JPEGs instead of MJPEG
Title: Re: ip cameras
Post by: darkwizard864 on August 18, 2018, 11:50:07 pm
I asked the manufactor they said rtsp or mjpeg only
Title: Re: ip cameras
Post by: Marie.O on August 19, 2018, 09:12:35 pm
iirc MJPEG is not supported atm.
Title: Re: ip cameras
Post by: darkwizard864 on August 19, 2018, 09:17:28 pm
thank you .
I now know to get different foscams