Webcam Test connection OK but stream failing
Moderator: leecollings
Webcam Test connection OK but stream failing
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!!
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!!
-
- 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
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
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
User/password problem?
Anything in domoticz log?
Anything in domoticz log?
-
- 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
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.
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.
-
- 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
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).
I have 3 cameras: 1 IP-cam and 2 USB-cams which stream via hawkeye (tried mjpeg-streamer too, makes no difference).
-
- 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
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:
I inspected the elements with firefox's built-in inspector and for the preview I get this:
which has the working URL and port as src and works
and for the stream I get the following:
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?
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
Code: Select all
http://username:[email protected]:8080/stream/1
And I can see the preview with both variants:
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">
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">
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?
- 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
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.
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/
-
- 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
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.
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.
-
- 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
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.
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.
Who is online
Users browsing this forum: No registered users and 1 guest