BenningtonCS / Telescope-2014

4 stars 0 forks source link

Webcam #115

Open hcrowl opened 9 years ago

hcrowl commented 9 years ago

Get the webcam working on the radio telescope computer (using VLC?). If possible, figure out how to integrate the video into srtn.

edaniszewski commented 9 years ago

My 2 cents: easier to do with VLC (or something similar), for now.

The UI code for srtn is not at all modular. Its actually just inline with all the code that does things throughout a bunch of the files ( #16 )

hcrowl commented 9 years ago

Agreed. Integration into srtn is probably #dreamland for now.

VLC (or whatever) should be the first priority.

hcrowl commented 9 years ago

Agreed. Integration into srtn is probably #dreamland for now.

VLC (or whatever) should be the first priority.

edaniszewski commented 9 years ago

Spent some time looking at the best frameworks for creating a more modern (e.g. can actually run on more than just CentOS and Ubuntu). Haven't come to any clear decision yet, but wxWidgets looks neat. It is written in C++, but has bindings in Python. One particularly neat feature relevant to this issue: http://larryo.org/work/information/wxopencv/index.html

theDarkLard commented 9 years ago

Came up with minimal results during my search today. I have a feeling that either we're using the wrong port, the port isn't open, or that a firewall (?) is blocking the connection to the camera.

hcrowl commented 9 years ago

Everything seems to work on the camera end. I'm able to reach it on my Mac laptop using VLC.

theDarkLard commented 9 years ago

Hmm. Yeah then it might be a firewall thing...that was the other main reason people had difficulty getting a stream going. Or it's something else entirely which would not surprise me..ha!

On Jun 29, 2015, at 4:27 PM, hcrowl notifications@github.com wrote:

Everything seems to work on the camera end. I'm able to reach it on my Mac laptop using VLC.

― Reply to this email directly or view it on GitHub.

theDarkLard commented 9 years ago

enabled port 554 (rtsp port for H.264 cameras) in the firewall settings but still getting the same live555/can't connect to mrl error :(

theDarkLard commented 9 years ago

@hcrowl , when you were setting up the camera the last time, how did you install the browser plug-in that enables you to set up a username and password for your camera? The extension provided by foscam is in an .exe format, while firefox add-ons are in a .xpi format, and chrome add-ons are in a .crx format. Saving the .exe file as either .xpi or .crx corrupts the file.

theDarkLard commented 9 years ago

And there are converters but all the ones I can find are .crx or .xpi to .exe, not the other way around.

hcrowl commented 9 years ago

I don't think you can view the video stream in a browser (or, at least, I could never get that running), but you should be able to get it running in VLC on one of the Physics lab macs.

theDarkLard commented 9 years ago

RIght right but this is before that step, this is simply to configure the camera itself and assign to it a username and password. Part of "Step 3: Access the Camera" in the set up manual if that rings a distant bell. You need a browser plug-in to sign in to this window: screen shot 2015-07-29 at 2 26 12 pm

theDarkLard commented 9 years ago

There is a foscam support page that lists how to force-install the plug-in for all the different browsers, but when you input the url they for each add on, it brings you back to the support page with no file downloaded. This is the page:

http://foscam.us/forum/the-how-to-install-browser-plugins-all-h-264-cameras-t7272.html

hcrowl commented 9 years ago

That's weird. Maybe try another browser? I think it worked on either Firefox or Chrome without a plugin.

theDarkLard commented 9 years ago

Yeah I've tried it on both firefox and chrome and both require the plug-in to let you set up your camera. Safari as well. It seems foscam only makes the add-on in a .exe format, or at least that's the only version I can find. Like I said earlier, the instructions to get the other versions of the plug-ins don't bring you to where they are supposed to. Shall I email foscam?

edaniszewski commented 9 years ago

http://www.foscam.com/Cooperate/FAQinfo/id/45.html

dunno if thats helpful or not

theDarkLard commented 9 years ago

Works on every linux machine BUT the radio telescope one. I'm not totally sure why or how...I've told the firewall to leave the appropriate ports alone and I've installed the newest version of VLC but still to no avail..but rtsp streaming does in fact work with the webcam.

edaniszewski commented 9 years ago

While CentOS and Ubuntu are both Linux based, Ubuntu seems to be more widely-supported than CentOS since it is more popular. Perhaps this is a CentOS specific problem? Try searching for RSTP streaming issues specific to CentOS. Perhaps that may provide some enlightenment?

On Thu, Jul 30, 2015 at 11:22 AM, theDarkLard notifications@github.com wrote:

Works on every linux machine BUT the radio telescope one. I'm not totally sure why or how...I've told the firewall to leave the appropriate ports alone and I've installed the newest version of VLC but still to no avail..but rtsp streaming does in fact work with the webcam.

— Reply to this email directly or view it on GitHub https://github.com/BenningtonCS/Telescope-2014/issues/115#issuecomment-126369106 .

edaniszewski commented 9 years ago

perhaps a centos issue: http://w3facility.org/question/centososx-vlc-rtsp-url-does-not-work-on-centos-but-on-osx/

some other things to try: http://xmodulo.com/live-stream-video-webcam-linux.html http://www.videolan.org/doc/streaming-howto/en/ch04.html#id311704

On Thu, Jul 30, 2015 at 12:09 PM, Erick Daniszewski edaniszewski@gmail.com wrote:

While CentOS and Ubuntu are both Linux based, Ubuntu seems to be more widely-supported than CentOS since it is more popular. Perhaps this is a CentOS specific problem? Try searching for RSTP streaming issues specific to CentOS. Perhaps that may provide some enlightenment?

On Thu, Jul 30, 2015 at 11:22 AM, theDarkLard notifications@github.com wrote:

Works on every linux machine BUT the radio telescope one. I'm not totally sure why or how...I've told the firewall to leave the appropriate ports alone and I've installed the newest version of VLC but still to no avail..but rtsp streaming does in fact work with the webcam.

— Reply to this email directly or view it on GitHub https://github.com/BenningtonCS/Telescope-2014/issues/115#issuecomment-126369106 .