LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   VLC and Wireless Webcam connection (https://www.linuxquestions.org/questions/fedora-35/vlc-and-wireless-webcam-connection-765150/)

mickeyboa 10-28-2009 06:44 PM

VLC and Wireless Webcam connection
 
FC11, Linksys WVC210 Wireless webcam

This Webcam works perfect through Firefox but I can't get it to work in VLC.

I goto /Media/Open Network Stream/RTSP 172.16.1.35:12345 , but I get the error message below.

Where is the VLC log files, I check through out /var


Error;

Your input can't be opened:
VLC is unable to open the MRL 'rtsp://172.16.1.35:12345'. Check the log for details.

Does the port 12345 need to be open in Firewall ? I have it open.

fang0654 10-28-2009 06:51 PM

Try from the shell:

Code:

vlc http://172.16.1.35:12345
Given that you can access it from firefox it may be an http stream instead of an rtsp stream.

mickeyboa 10-28-2009 07:07 PM

I tried it with both and got this.



$ vlc http://172.16.1.35:12345
VLC media player 1.0.2 Goldeneye
[0xd53098] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
*** Unable to locate valid config! Falling back to auto-detection...
*** Unable to locate PAC! Falling back to direct...
[0x7fc8b4001478] main access error: connection failed: Connection refused
[0x7fc8b4001478] access_http access error: cannot connect to 172.16.1.35:12345
[0x7fc8b4001478] main access error: connection failed: Connection refused
[0x7fc8b4001478] access_mms access error: cannot connect to 172.16.1.35:12345
[0x7fc8d0000c98] main input error: open of `http://172.16.1.35:12345' failed: (null)


$ vlc rtsp://172.16.1.35:12345
VLC media player 1.0.2 Goldeneye
[0x964098] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x7f05bc001478] live555 demux error: Failed to connect with rtsp://172.16.1.35:12345
[0x7f05bc006988] main access error: connection failed: Connection refused
[0x7f05bc006988] access_realrtsp access error: cannot connect to 172.16.1.35:12345
[0x7f05d8000c98] main input error: open of `rtsp://172.16.1.35:12345' failed: (null)

fang0654 10-28-2009 07:20 PM

You sure the port is 12345? Connection refused means that the port is closed, and actively being rejected. Try this:

Code:

nmap 172.16.1.35

mickeyboa 10-28-2009 07:44 PM

This is nmap results I tried other ports and the last one where I did a
http://172.16.1.35:80 and I didn't get any Errors as I did with the others. But I didn't get any video.

It is showing the MAC Address of the Webcam. (Cisco-Linksys)



# nmap 172.16.1.35

Starting Nmap 5.00 ( http://nmap.org ) at 2009-10-28 20:30 EDT
Interesting ports on WVC210 (172.16.1.35):
Not shown: 997 closed ports
PORT STATE SERVICE
80/tcp open http
554/tcp open rtsp
6789/tcp open ibm-db2-admin
MAC Address: 00:22:6B:E0:01:1A (Cisco-Linksys)

Nmap done: 1 IP address (1 host up) scanned in 3.96 seconds



vlc rtsp://172.16.1.35:554
VLC media player 1.0.2 Goldeneye
[0x16f2098] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x7f13e4001498] live555 demux error: Failed to connect with rtsp://172.16.1.35:554
[0x7f1404000c98] main input error: open of `rtsp://172.16.1.35:554' failed: (null)
^C[0x16f25c8] signals interface error: Caught Interrupt signal, exiting...





[mickey@biggie ~]$ vlc rtsp://172.16.1.35:6789
VLC media player 1.0.2 Goldeneye
[0x1329098] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x7f36f4001498] live555 demux error: Failed to connect with rtsp://172.16.1.35:6789
[0x7f3710000c98] main input error: open of `rtsp://172.16.1.35:6789' failed: (null)
^C[0x13295c8] signals interface error: Caught Interrupt signal, exiting...




[mickey@biggie ~]$ vlc rtsp://172.16.1.35:80
VLC media player 1.0.2 Goldeneye
[0xdba098] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x7ff6d8001498] live555 demux error: Failed to connect with rtsp://172.16.1.35:80
[0x7ff6f8000c98] main input error: open of `rtsp://172.16.1.35:80' failed: (null)
^C[0xdba5c8] signals interface error: Caught Interrupt signal, exiting...




[mickey@biggie ~]$ vlc http://172.16.1.35:80
VLC media player 1.0.2 Goldeneye
[0x2071098] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
*** Unable to locate valid config! Falling back to auto-detection...
*** Unable to locate PAC! Falling back to direct...
[0x7ff474004588] ts demux error: cannot peek

fang0654 10-28-2009 08:03 PM

Try this:

Code:

vlc http://172.16.1.35/img/video.mjpeg
or


Code:

vlc rtsp://172.16.1.35/img/video.mjpeg

mickeyboa 10-28-2009 08:46 PM

This did the trick.
But there is a 1-2 second delay in movement of video.



$ vlc http://172.16.1.35/img/video.mjpeg
VLC media player 1.0.2 Goldeneye
[0xbcc098] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
*** Unable to locate valid config! Falling back to auto-detection...
*** Unable to locate PAC! Falling back to direct...
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::setClipRegion: Painter not active
QPainter::setClipping: Painter not active, state will be reset by begin
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::setClipRegion: Painter not active
QPainter::setClipping: Painter not active, state will be reset by begin
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::setClipRegion: Painter not active
QPainter::setClipping: Painter not active, state will be reset by begin
QPainter::begin: Paint device returned engine == 0, type: 1

fang0654 10-28-2009 08:52 PM

I think the delay is more of a VLC thing than anything else. You can try tweaking the different buffers to get it less, but I don't think you'll get down to real time.

I tried to build a video conferencing app around VLC a couple years back, and that delay was the biggest trouble we ran into.

mickeyboa 10-28-2009 08:53 PM

How and where do I put that in VLC to play.

http://172.16.1.35/img/video.mjpeg

Thank you very much for the help.

mickeyboa 10-28-2009 09:03 PM

The Delay could be in the network signal from camera to computer.

Thanks again for your help, I have been trying off-on for about six months to get it to work in VLC.

fang0654 10-28-2009 09:26 PM

Not a problem. In VLC, Go to File -> Open Network Stream
Protocol: HTTP
Address: 172.16.1.35/img/video.mjpeg
Port: 80

Then with the "More options" you can tweak the Caching.

mickeyboa 10-29-2009 12:01 PM

A setting of 275ms is the best i could get, that was a fraction of a second delay.If you would move slowly, you wouldn't notice the delay,only if you move fast, the delay was slightly noticed.

default is 1200.

Thanks Again


All times are GMT -5. The time now is 10:17 PM.