Page 1 of 1
Webcam Test connection OK but stream failing
Posted: Friday 08 April 2016 15:37
by svdstra
Hi,
I am adding a stream from motioneye to Domoticz. While setting up the camera I push the 'Test Connection' button and the stream is visible but after goin to the camera and clicking the stream a new window shows but no stream is visible. What am I doing wrong?
Thanks!!
Re: Webcam Test connection OK but stream failing
Posted: Sunday 17 April 2016 22:15
by Bron
I do have the same problem as svdstra, with a Foscam FI9900P camera.
I can not find a solution, please can someone tell me what I am doing wrong ?
With kindly regards,
Jan Bron
Re: Webcam Test connection OK but stream failing
Posted: Monday 18 April 2016 11:03
by toreandre
User/password problem?
Anything in domoticz log?
Re: Webcam Test connection OK but stream failing
Posted: Monday 18 April 2016 17:42
by Bron
Toreandre,
Username and password are correct. I have on de connection test visible video stream from the camera.
I do have a lot of warnings, see below, in de log, this is what have to be solved as well.
2016-04-18 17:33:40.547 Error: Razberry: Invalid data received!
2016-04-18 17:33:41.050 Error: Razberry: Invalid data received!
2016-04-18 17:33:41.552 Error: Razberry: Invalid data received!
2016-04-18 17:33:42.056 Error: Razberry: Invalid data received!
2016-04-18 17:33:42.558 Error: Razberry: Invalid data received!
2016-04-18 17:33:43.061 Error: Razberry: Invalid data received!
2016-04-18 17:33:43.564 Error: Razberry: Invalid data received!
Thanks for your reaction,
Jan Bron.
Re: Webcam Test connection OK but stream failing
Posted: Thursday 27 October 2016 15:51
by groovy
Same here. Testing the connection I can see the stream, but streaming afterwards doesn't work.
I have 3 cameras: 1 IP-cam and 2 USB-cams which stream via
hawkeye (tried mjpeg-streamer too, makes no difference).
Re: Webcam Test connection OK but stream failing
Posted: Wednesday 08 February 2017 17:25
by groovy
Just had a look at this problem again.
So I picked one particular camera, a USB device which is accessible in browser with the following URL from the internet:
and with (both http or https):
from internal network.
And I can see the preview with both variants:
- domoticz_cam_preview.png (105.14 KiB) Viewed 3929 times
I inspected the elements with firefox's built-in inspector and for the preview I get this:
Code: Select all
<img id="camfeed" onload="load_testcam_video()" src="http://username:[email protected]:8881/stream/1?count=258" style="max-height: 220px; border: 1px solid #1E2832;" width="280" height="210">
which has the working URL and port as src and works
and for the stream I get the following:
Code: Select all
<img id="camfeed" name="camfeed" onload="load_cam_video()" src="https://external.server.com:8443/camsnapshot.jpg?idx=1&count=2?t=1486563611119" style="border: 1px solid rgb(30, 40, 50); width: 599px; height: 338px;" width="600" height="337">
which has the URL and port of my domoticz-server and a "camsnapshot.jpg" suffix which is presumable generated by domoticz itself and doesn't work.
It doesn't matter if I use the internal IP and test from internal net or use the external servername and test from outside.
So somehow the assembled "camsnapshot.jpg" is wrong. Why can't we just use the user-given URL to view the stream instead of trying to generate a new URL which seems not to work with a bunch of webcams?
Re: Webcam Test connection OK but stream failing
Posted: Wednesday 08 February 2017 17:48
by bbqkees
Please be aware that Domoticz does not request a 'video stream'.
It acquires camera snapshots.
So filling in a video stream URL from the camera will not work.
You need a snapshot URL. Not all camera's have this.
The reason Domoticz uses snapshots instead of video is probably because only snapshots are used in the system.
If you play a 'stream' in Domoticz what you get is just a new snapshot every second.
Re: Webcam Test connection OK but stream failing
Posted: Wednesday 08 February 2017 18:01
by groovy
Thanks, I didn't know this.
But I also wonder, why this is the case, as almost every, even the cheapest chinese cams, can supply a stream. Even my old Raspberry 1 B+ streams 2 connected USB-cam streams simultaneously in realtime. So, basically the term "stream" in domoticz is confusing if it's not really a stream.
Re: Webcam Test connection OK but stream failing
Posted: Wednesday 08 March 2017 19:08
by jvmaanen
Thanks this helps. But it didn't work immediately.
For my Elro C704IP.2 it didn't work when I entered my username and password in the designated fields. But when I leave these fields empty and put the username and password in the URL it works.
So, my URL looks like this:
snapshot.cgi?user=username&pwd=password&resolution=32&rate=0
I also noted that I get the pictogram when &resolution=32&rate=0 is added to the URL, but unfortunately I don't know what it does.