D-Link Forums
Software => D-ViewCam => Topic started 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
-
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 ........
-
I want to view live/streaming video in VLC. Is that possible?
-
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>
-
That's awesome! I think that might work perfectly for me. I'll try it and let you know.
John
-
Thank you very much! This is working very well for me!
John
-
Glad to be of assistance...
-
Please note I had to enter aplug.class instead of xplug.class to get this to work.
-
Please note I had to enter aplug.class instead of xplug.class to get this to work.
Depends all on the camera used...
-
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
-
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.
-
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
-
Can you share the code?
The code was included in an earlier post (if you scroll down further):
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>
-
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.
??? ??? ???
-
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.
-
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
-
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'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 :)
-
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.
-
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 ::)
-
Thanks. I also would like to get this working, but can't see the technical solution off the top of my head.
-
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... ;)
-
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?
-
All 920's
-
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.
-
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.
-
Thanks again. . . Another project for me to put in the queue.
-
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.
-
Here's the modified code I used, where "X" is swapped out for values specific to my IP address and DCS-932L serial number:
<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>
-
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.