• February 23, 2025, 12:49:40 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Pages: 1 [2]

Author Topic: Is it possible to use VLC to view video from a DCS-930L?  (Read 32057 times)

mrsr71

  • Level 2 Member
  • **
  • Posts: 86
Re: Is it possible to use VLC to view video from a DCS-930L?
« Reply #15 on: July 20, 2011, 08:41:02 AM »

Here's the error message I get. It appears it's Java related.

Java Plug-in 1.6.0_26
Using JRE version 1.6.0_26-b03 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Dan ------
----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------


load: class xplug.class not found.
java.lang.ClassNotFoundException: xplug.class
   at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
   at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassNotFoundException: xplug.class
Logged

JavaLawyer

  • BETA Tester
  • Level 15 Member
  • *
  • Posts: 12190
  • D-Link Global Forum Moderator
    • FoundFootageCritic
Re: Is it possible to use VLC to view video from a DCS-930L?
« Reply #16 on: July 20, 2011, 09:34:43 AM »

I'm going to test the code myself next week (...waiting for a replacement DCS-932L from an RMA).

FYI, you can save the html file/page containing the code on your PC desktop and launch the page locally from your browser while you're testing/troubleshooting. Since the page is referencing the camera location from a specific IP address, it doesn't matter if you test the webpage stored on your server or desktop - both should work the same.
« Last Edit: July 20, 2011, 10:11:12 AM by JavaLawyer »
Logged
Find answers here: D-Link ShareCenter FAQ I D-Link Network Camera FAQ
There's no such thing as too many backups FFC

mrsr71

  • Level 2 Member
  • **
  • Posts: 86
Re: Is it possible to use VLC to view video from a DCS-930L?
« Reply #17 on: July 20, 2011, 10:48:33 AM »

I'm going to test the code myself next week (...waiting for a replacement DCS-932L from an RMA).

FYI, you can save the html file/page containing the code on your PC desktop and launch the page locally from your browser while you're testing/troubleshooting. Since the page is referencing the camera location from a specific IP address, it doesn't matter if you test the webpage stored on your server or desktop - both should work the same.

I'll be awaiting your test - thanks  :)
Logged

JavaLawyer

  • BETA Tester
  • Level 15 Member
  • *
  • Posts: 12190
  • D-Link Global Forum Moderator
    • FoundFootageCritic
Re: Is it possible to use VLC to view video from a DCS-930L?
« Reply #18 on: August 07, 2011, 04:20:30 PM »

I finally had an opportunity to setup my replacement (i.e. RMA'd) DCS-932L. It's been sitting in a box for a week as I've been too busy to set things up. So, as promised (albeit a bit late) I tried embedding the Java code in a local webpage with no luck. Same errors.

The error indicates that the code can't reference some files required to run the script. I'll need some time to play with this. Unfortunately I'm too busy to focus my attention on this right now. It's in my queue.
Logged
Find answers here: D-Link ShareCenter FAQ I D-Link Network Camera FAQ
There's no such thing as too many backups FFC

mrsr71

  • Level 2 Member
  • **
  • Posts: 86
Re: Is it possible to use VLC to view video from a DCS-930L?
« Reply #19 on: August 07, 2011, 05:44:10 PM »

I finally had an opportunity to setup my replacement (i.e. RMA'd) DCS-932L. It's been sitting in a box for a week as I've been too busy to set things up. So, as promised (albeit a bit late) I tried embedding the Java code in a local webpage with no luck. Same errors.

The error indicates that the code can't reference some files required to run the script. I'll need some time to play with this. Unfortunately I'm too busy to focus my attention on this right now. It's in my queue.

Thank you so much for the follow-up. Surprisingly, in this day and age, some people keep their word  ::)
Logged

JavaLawyer

  • BETA Tester
  • Level 15 Member
  • *
  • Posts: 12190
  • D-Link Global Forum Moderator
    • FoundFootageCritic
Re: Is it possible to use VLC to view video from a DCS-930L?
« Reply #20 on: August 08, 2011, 04:53:49 AM »

Thanks. I also would like to get this working, but can't see the technical solution off the top of my head.
Logged
Find answers here: D-Link ShareCenter FAQ I D-Link Network Camera FAQ
There's no such thing as too many backups FFC

Mackerel

  • Level 3 Member
  • ***
  • Posts: 348
Re: Is it possible to use VLC to view video from a DCS-930L?
« Reply #21 on: August 08, 2011, 04:40:50 PM »

I copied the code, inserted the camera address & serial number, FTP'ed the web page to my server (Earthlink) and get a blank page. I'm using Firefox as a browser.

 ??? ??? ???

I am using Firefox myself (works with both 3.x and 4.x), but you will need to fill in the correct IP-address and DeviceSerialNo. You also might have to allow access if you need some plug-ins to heighten your security (like Ad-Block, NoScript, ...). Also, as seen before in this thread you might modify the class, depending on camera used...

Caveat Emptor, mind you...  ;)
Logged

JavaLawyer

  • BETA Tester
  • Level 15 Member
  • *
  • Posts: 12190
  • D-Link Global Forum Moderator
    • FoundFootageCritic
Re: Is it possible to use VLC to view video from a DCS-930L?
« Reply #22 on: August 09, 2011, 05:17:37 AM »

Mackeral -- I previously executed a test page through IE and Firefox with all the usual suspects disabled to no avail. What DCS model are you using?
Logged
Find answers here: D-Link ShareCenter FAQ I D-Link Network Camera FAQ
There's no such thing as too many backups FFC

Mackerel

  • Level 3 Member
  • ***
  • Posts: 348
Re: Is it possible to use VLC to view video from a DCS-930L?
« Reply #23 on: August 10, 2011, 11:57:37 AM »

All 920's
Logged

JavaLawyer

  • BETA Tester
  • Level 15 Member
  • *
  • Posts: 12190
  • D-Link Global Forum Moderator
    • FoundFootageCritic
Re: Is it possible to use VLC to view video from a DCS-930L?
« Reply #24 on: August 10, 2011, 12:09:07 PM »

All 920's

Thanks. Based on my own tests and from what I've read, it looks like the Java function calls are not working properly, although I'm sure all the parameters are properly configured. I'm convinced the issue is not client-side (i.e. my PC/browser) and am fairly unconvinced that the DCS-932L is incompatible. . . which brings me back to square one.
Logged
Find answers here: D-Link ShareCenter FAQ I D-Link Network Camera FAQ
There's no such thing as too many backups FFC

Mackerel

  • Level 3 Member
  • ***
  • Posts: 348
Re: Is it possible to use VLC to view video from a DCS-930L?
« Reply #25 on: August 10, 2011, 12:11:23 PM »

I have read somewhere that xplug.class needs to be renamed. But if you look at the HTML source of your live view inside the webpage (independent of browser), it should contain the exact HTML code to run. That is how I found out...

Little bit of editing to get frames, headers and such around it, and you should be good to go. Just take the live view web-page of your camera, view source, and find code similar to what I put in this thread...

Not too hard.
« Last Edit: August 10, 2011, 12:14:08 PM by Mackerel »
Logged

JavaLawyer

  • BETA Tester
  • Level 15 Member
  • *
  • Posts: 12190
  • D-Link Global Forum Moderator
    • FoundFootageCritic
Re: Is it possible to use VLC to view video from a DCS-930L?
« Reply #26 on: August 10, 2011, 12:36:46 PM »

Thanks again. . . Another project for me to put in the queue.
Logged
Find answers here: D-Link ShareCenter FAQ I D-Link Network Camera FAQ
There's no such thing as too many backups FFC

JavaLawyer

  • BETA Tester
  • Level 15 Member
  • *
  • Posts: 12190
  • D-Link Global Forum Moderator
    • FoundFootageCritic
Re: Is it possible to use VLC to view video from a DCS-930L?
« Reply #27 on: August 11, 2011, 04:22:50 AM »

Update: I followed Mackerel's suggestion and that resolved the issue. Was able to instantiate a test page by pulling the html from the LIVE VIDEO page source on the web interface. The applet has quite a few differences from the generic code that's been posted previously.

I only tested the page locally, as I haven't had the time to upload the page to a web server to test remote access.
« Last Edit: August 11, 2011, 05:25:03 AM by JavaLawyer »
Logged
Find answers here: D-Link ShareCenter FAQ I D-Link Network Camera FAQ
There's no such thing as too many backups FFC

JavaLawyer

  • BETA Tester
  • Level 15 Member
  • *
  • Posts: 12190
  • D-Link Global Forum Moderator
    • FoundFootageCritic
Re: Is it possible to use VLC to view video from a DCS-930L?
« Reply #28 on: August 11, 2011, 06:25:29 PM »

Here's the modified code I used, where "X" is swapped out for values specific to my IP address and DCS-932L serial number:

Code: [Select]
<html><body>
This is a test
<table border=0>
   <tr><td>
              <APPLET name="cvcs" CODEBASE="http://XXX.XXX.X.X:80" CODE="aplug.class" WIDTH=640 HEIGHT=480>
              <param name="RemotePort" value=80>
              <param name="Timeout" value=5000>
              <param name="RotateAngle" value=0>
              <param name="PreviewFrameRate" value=2>
              <param name="DeviceSerialNo" value="XXXXXXXXXXXXXXXX=">
              </APPLET>
   </td></tr>
</table>
</body></html>
« Last Edit: August 11, 2011, 06:30:37 PM by JavaLawyer »
Logged
Find answers here: D-Link ShareCenter FAQ I D-Link Network Camera FAQ
There's no such thing as too many backups FFC

kmurray

  • Level 1 Member
  • *
  • Posts: 1
Re: Is it possible to use VLC to view video from a DCS-930L?
« Reply #29 on: October 14, 2011, 08:26:32 PM »

I don't know about VLC but I did find a way to record from the camera on my Linux box using ffmpeg:

ffmpeg -r 10 -f mjpeg -i http://username:password@XXX.XXX.XXX.XXX/mjpeg.cgi -vcodec mpeg4 -sameq -aspect 4:3 -y outfile.m4v

You may need to fiddle with the frame rate a bit to get it just right.  I found 10 fps (-r 10) worked ok for me.
Logged
Pages: 1 [2]