D-Link Forums

Software => D-ViewCam => Topic started by: jsrober on May 03, 2011, 05:28:12 AM

Title: Is it possible to use VLC to view video from a DCS-930L?
Post by: jsrober on May 03, 2011, 05:28:12 AM
Given that D-View Cam stinks (will only run full-screen), is there a way to view the DCS-930L using VLC?

John
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: garcia2litz on May 04, 2011, 12:35:27 PM
Yes it is possible ..............

1. Open the Dview cam playback
2. Play the recorded video
3. Click Cue in to start and cue out to end the video
4. Then click Save as avi and locate to save the file

You can play the video using the VLC and media player ........
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: jsrober on May 04, 2011, 06:44:32 PM
I want to view live/streaming video in VLC. Is that possible?
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: Mackerel on May 04, 2011, 06:45:00 PM
VLC goes through the motions, even prompts for username/password, but is not able to show it. But using HTML in a browser allows you to do it (fill in 2 values, IP-address and SerialNo):

<html>
    <body>
   <table border=0 >
   <tr>
   <td align="center">
            <APPLET name="cvcs" CODEBASE="http://192.168.x.y/" CODE="xplug.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="PutYourCodeHere">
            </APPLET>
   </td>
...Repeat above for multiple...
   </tr>
   </table>
    </body>
</html>
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: jsrober on May 04, 2011, 06:57:29 PM
That's awesome! I think that might work perfectly for me. I'll try it and let you know.

John
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: jsrober on May 06, 2011, 06:40:15 AM
Thank you very much! This is working very well for me!

John
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: Mackerel on May 07, 2011, 11:23:39 PM
Glad to be of assistance...
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: euphoria on July 01, 2011, 03:11:57 AM
Please note I had to enter aplug.class instead of xplug.class to get this to work.
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: Mackerel on July 03, 2011, 07:52:09 PM
Please note I had to enter aplug.class instead of xplug.class to get this to work.

Depends all on the camera used...
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: jsrober on July 07, 2011, 04:50:47 PM
Mackerel,

I've been using the HTML code for months now to easily watch my camera via IE. Works very well. I keep a small IE window in the corner of my screen. Thanks again for your help.

Some more questions:

1. The video frame rate seems low. Can one of the parameters be adjusted to improve the frame rate?

2. The audio cuts in and out. One second on, on second off. Very annoying. Can I improve the audio? If not, is there a parameter to turn off audio altogether? Turning off audio might provide more bandwidth for video.

THANKS for your help!
John
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: JavaLawyer on July 12, 2011, 05:30:51 AM
Mackerel,

I've been using the HTML code for months now to easily watch my camera via IE. Works very well. I keep a small IE window in the corner of my screen. Thanks again for your help.

Some more questions:

1. The video frame rate seems low. Can one of the parameters be adjusted to improve the frame rate?

2. The audio cuts in and out. One second on, on second off. Very annoying. Can I improve the audio? If not, is there a parameter to turn off audio altogether? Turning off audio might provide more bandwidth for video.

THANKS for your help!
John

The DCS-930L web interface will allow you to alter the audio volume, but does not provide any settings that will improve audio quality. There is a setting to disable audio, although disabling this will most likely only marginally improve your suspected bandwidth issue.

The web interface also a setting to adjust the video image size (i.e. resolution). Reducing the frame size should significantly improve throughput.
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: mrsr71 on July 19, 2011, 11:23:24 AM
Mackerel,

I've been using the HTML code for months now to easily watch my camera via IE. Works very well. I keep a small IE window in the corner of my screen.

John

Can you share the code?

Dan
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: JavaLawyer on July 19, 2011, 12:39:12 PM
Can you share the code?

The code was included in an earlier post (if you scroll down further):

Code: [Select]
VLC goes through the motions, even prompts for username/password, but is not able to show it. But using HTML in a browser allows you to do it (fill in 2 values, IP-address and SerialNo):

<html>
    <body>
   <table border=0 >
   <tr>
   <td align="center">
            <APPLET name="cvcs" CODEBASE="http://192.168.x.y/" CODE="xplug.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="PutYourCodeHere">
            </APPLET>
   </td>
...Repeat above for multiple...
   </tr>
   </table>
    </body>
</html>
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: mrsr71 on July 19, 2011, 05:57:57 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.

 ??? ??? ???
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: JavaLawyer on July 20, 2011, 06:49:45 AM
When you say blank page, do you see any content at all (e.g. text and other things you have on the page) or is it literally a blank page.

If the page is totally blank, that has nothing to do with the HTML code snippet that you inserted.
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: mrsr71 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
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: JavaLawyer 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.
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: mrsr71 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  :)
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: JavaLawyer 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.
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: mrsr71 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  ::)
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: JavaLawyer 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.
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: Mackerel 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...  ;)
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: JavaLawyer 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?
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: Mackerel on August 10, 2011, 11:57:37 AM
All 920's
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: JavaLawyer 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.
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: Mackerel 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.
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: JavaLawyer on August 10, 2011, 12:36:46 PM
Thanks again. . . Another project for me to put in the queue.
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: JavaLawyer 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.
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: JavaLawyer 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>
Title: Re: Is it possible to use VLC to view video from a DCS-930L?
Post by: kmurray 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.