Webcam Test connection OK but stream failing

Moderator: leecollings

Post Reply
svdstra
Posts: 5
Joined: Thursday 21 January 2016 23:28
Target OS: Linux
Domoticz version:
Contact:

Webcam Test connection OK but stream failing

Post 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!!
Bron
Posts: 2
Joined: Sunday 17 April 2016 22:02
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3530
Contact:

Re: Webcam Test connection OK but stream failing

Post 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
toreandre
Posts: 91
Joined: Tuesday 19 January 2016 12:51
Target OS: -
Domoticz version:
Contact:

Re: Webcam Test connection OK but stream failing

Post by toreandre »

User/password problem?
Anything in domoticz log?
Bron
Posts: 2
Joined: Sunday 17 April 2016 22:02
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3530
Contact:

Re: Webcam Test connection OK but stream failing

Post 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.
groovy
Posts: 17
Joined: Sunday 23 October 2016 11:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Webcam Test connection OK but stream failing

Post 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).
groovy
Posts: 17
Joined: Sunday 23 October 2016 11:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Webcam Test connection OK but stream failing

Post 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:

Code: Select all

https://username:[email protected]:8881/stream/1
and with (both http or https):

Code: Select all

http://username:[email protected]:8080/stream/1
from internal network.
And I can see the preview with both variants:
domoticz_cam_preview.png
domoticz_cam_preview.png (105.14 KiB) Viewed 3933 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?
User avatar
bbqkees
Posts: 407
Joined: Sunday 17 August 2014 21:01
Target OS: Linux
Domoticz version: 4.1x
Location: The Netherlands
Contact:

Re: Webcam Test connection OK but stream failing

Post 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.
Bosch / Nefit / Buderus / Junkers / Worcester / Sieger EMS bus Wi-Fi MQTT Gateway and interface boards: https://bbqkees-electronics.nl/
groovy
Posts: 17
Joined: Sunday 23 October 2016 11:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Webcam Test connection OK but stream failing

Post 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.
jvmaanen
Posts: 13
Joined: Wednesday 01 March 2017 13:32
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Webcam Test connection OK but stream failing

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest