Use of a D-Link IP Cam with Octopi

Hello,

I want to use an IP Cam from D-Link (DCS-942L) with Octoprint and struggling with the stream url. According to support of D-link the stream url is:
http://XXX.XXX.XXX.XXX/video/mjpg.cgi?user=[user]&password=[password].
Unfortunatly it doesn't work. After pasting this command to the stream url settings and saving I get that black window that tell me that the webcamstream couldn't be loaded. But if I click on the blue link mentioned in the black window I can see the stream of the IP Cam. And from now on the stream is working. Probably because of coockies. But what do I have to do to get it direcly working from opening Octoprint. Is there a hint how to adapt the url stream? Are maybe further settings required? I'm using the last Octoprint version. By the way the situation is the same when I'm using the smartphone.
Thanks in advance

Regards
Arthy

Try http://user:password@xxx.xxx.xxx.xxx/video/mjpg.cgi as the URL.

1 Like

Hi! I'm using the same D Link camera. The snap link is working, my problem is with the stream.

I'm using: http://admin:pass@xxxxxxx/video/mjpg.cgi for stream and http://admin:pass@xxxxxxx/image/jpeg.cgi for snap. When I try the stream link on my browser or inside Repetier server, it does work. It is definately a problem with Octopi.

It's probable that OctoPrint is adding a nonce. So it may be decorating the end of the URL with something like ?t=2342452 in an attempt to defeat browser caching. Perhaps others know more about this.

1 Like

I even tried a new D Link 936-L and the same happened :confused:

Old thread, but for anyone who stumbles upon this:

  1. You can obtain the camera's password using the "myDLink" app on Android/iOS
  2. Once you have the password, use the following URLs, replacing the user/pass/IP.
    http://user:password@192.168.0.151/video/mjpg.cgi (for video)
    http://user:password@192.168.0.151/image/jpeg.cgi (for snapshot)

User is most likely "admin", password can be obtained from mobile app,

Note that the stream may work in some browsers, and not others.
On MacOS, I found it works on Safari, but not Edge (Chromium)
Had similar experience on Windows, can't remember which ones worked and which ones did not.
TLDR: try multiple browsers

Also, if the password is empty, you may have to still keep the colon in the URL (again try diff browsers).