-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would love support with D-Link DCS933L with webcam-capture-driver-ipcam #511
Comments
Ok... Since I didn't get any responses, how would one go about building a class for the camera? I have a REAL need to get this running with my IP Camera |
Hi @85frankenstein, If you have MJPEG video feed URL, why not simply use |
@sarxos I'm very new to Java... I'm pretty resourceful and very good at Networking but have never had the need to edit code in Java, so please bear with me... I'll take a whack at it and we can see what happens... |
Hi @85frankenstein, do you have some demo URL, some kind of freely available endpoint or public IP where I can play with this camera? |
I wanted to try demo from D-Link but I can neither access it from by Ubuntu (they require Internet Explorer, shame on them) nor from my Windows XP virtual machine with IE 8 (probably it's too old and their page doesn't work due to JavaScript errors). |
I'll dig around and see if I can come up with one... Mine isn't public, and I won't port forward, but I'm sure, somewhere, there is an example |
Yeah, the demo cam at D-Link is down for whatever reason... Can't seem to find one in the wild... Might have to put mine up in the DMZ for a very short while... How long would you need @sarxos ? |
@85frankenstein, few hours should be ok. I need to check how login work in this specific camera (is it base auth or something else), what is the MJPEG stream URI, and finally check if it play nice with webcam-capture-driver-ipcam. That should be all. Today is pretty late for me so if possible could we try to find these details tomorrow or after tomorrow? We can chat on Google Hangouts or you can just drop me an email or send Facebook message, so you won't have to put your IP and camera's login credentials into public. |
@sarxos I sent over the link to the video feed without any HTML Wrappers via Google Hangouts... Let me know if you have any troubles |
Hi @85frankenstein, With 64fdd35 you can use IpCamDeviceRegistry.register(new DSC933L(name, url, user, pass)); Example: import java.net.MalformedURLException;
import javax.swing.JFrame;
import com.github.sarxos.webcam.Webcam;
import com.github.sarxos.webcam.WebcamPanel;
import com.github.sarxos.webcam.ds.ipcam.IpCamDeviceRegistry;
import com.github.sarxos.webcam.ds.ipcam.IpCamDriver;
import com.github.sarxos.webcam.ds.ipcam.device.dlink.DSC933L;
public class DLinkDsc933LExample {
static {
Webcam.setDriver(new IpCamDriver());
}
public static void main(String[] args) throws MalformedURLException {
final String name = "D-Link 993L Camera";
final String user = "{username}"; // change to your own username
final String pass = "{password}"; // change to your own password
final String url = "http://{ip-address-or-domain-name}"; // camera's IP address or domain
IpCamDeviceRegistry.register(new DSC933L(name, url, user, pass));
final Webcam webcam = Webcam.getDefault();
final WebcamPanel panel = new WebcamPanel(webcam);
JFrame f = new JFrame(name);
f.add(panel);
f.pack();
f.setVisible(true);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
} If you do not use programmatic approach but configure your IP cameras in XML registry storage, then it has to be defined as: <?xml version="1.0" encoding="UTF-8" ?>
<storage>
<ipcam name="{camera-name}" url="http://{ip-address-or-domain-name}/video/mjpg.cgi" mode="push">
<auth user="{username}" password="{password}" />
</ipcam>
<!-- other ip cameras has to be listed here -->
</storage> (parameters in curly braces has to be replaced by real values) |
Newest JAR is already available from Sonatype snapshots repository: Or as a Maven dependency: <dependency>
<groupId>com.github.sarxos</groupId>
<artifactId>webcam-capture-driver-ipcam</artifactId>
<version>0.3.12-SNAPSHOT</version>
</dependency> Note that SNAPSHOT version is available only with snaphots repository included in <repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories> If you do not use Maven, then simply download this ZIP assembly: webcam-capture-driver-ipcam-0.3.12-SNAPSHOT-dist.zip Required JARs can be found in this zip:
With dependencies:
If you have any additional questions fell free to ask them here. You can move your camera from DMZ. I won't use it any more. Take care! |
Dude! You're awesome!!!! |
I've been trying for some time to get a program that uses Webcam-Capture working with the D-Link 933L IP Camera with no luck... The developer referred me back to here for help... I would LOVE to get a class working with this particular IP Camera... here in the States, it's cheap, commonly found, and easy to work with...
I do not have access to a live feed or an API, but it works pretty much like many others out there...
What I can provide is the URL that allows you to view the video feed without any of the D-Link Wrappers...
http://[USERNAME]:[PASSWORD]@IPAddress:PORT/mjpeg.cgi
The text was updated successfully, but these errors were encountered: