Page 1 of 1

Stationary balloon with RPi, webcam and 3g module

Posted: Mon Jul 30, 2012 1:01 am
by arbuz
Hi.
I'm planing to stream image from webcam attached to RPi which will be connected to the Internet with 3g module. Everything will be mounted on a bunch of balloons flying 50 meters above ground level. I'm going to describe everything on my blog (http://sudoxanthippe.wordpress.com/) to help anyone who would like to do something like that in future. This isn't actually complicated project but will be helpful for me (and maybe to else) to learn basics about RPi. I would like to draw on your experience guys, anyone did something similar?

Greetings!
arbuz

Re: Stationary balloon with RPi, webcam and 3g module

Posted: Sat Aug 04, 2012 7:20 pm
by pfqueiros
Hello!

This is exactly what I've been thinking in doing :-) I'm starting with the basics (for me at least, I haven't figured out the flying part yet!), and I've got my Pi using Raspbian with WiFi and 3G working nicely.

The hardest part seems to be getting the Pi to stream the webcam video. How did you accomplish that? I saw in your blog that you've been successful in doing so.
I've tried every tutorial I found: ffserver/ffmpeg, VLC, motion, streamer ... no deal. Only thing I managed to do is take a picture using streamer and getting motion to do the same (I haven't explored motion a lot, cause I don't think it does what I want - video streaming).

I'm currently using a Logitech C270 webcam.

Hope anyone can point me in the right direction, I feel like I tried everything in the last couple of days. Thank you for your time!

Re: Stationary balloon with RPi, webcam and 3g module

Posted: Sun Aug 05, 2012 12:46 am
by WPsites
Motion will stream video over a http port. I think that's even the default setup. When you type in the motion command to get it running it should tell you the location of the webcam stream.

Re: Stationary balloon with RPi, webcam and 3g module

Posted: Sun Aug 05, 2012 3:05 am
by pfqueiros
WPsites wrote:Motion will stream video over a http port. I think that's even the default setup. When you type in the motion command to get it running it should tell you the location of the webcam stream.
Yes, I tried that too. Failed miserably (although I had the impression it would stream only in the sense of taking several pics and refreshing the page with the newest picture).

Re: Stationary balloon with RPi, webcam and 3g module

Posted: Sun Aug 05, 2012 4:31 pm
by arbuz
Hi again!
Motion should work out of box so after doing apt-get install motion and then typing motion in console, you should be able to connect to it on ports: 8080 and 8081 (first is for managing it) but only from a localhost. To check if motion is working you can simply type wget 127.0.0.1:8081 on second console screen. To be able to connect from another host you still need to change its configuration file which is stored there: /etc/motion/motion.conf. Look for:

Code: Select all

webcam_localhost on
and change it to

Code: Select all

webcam_localhost off
That's all.
Later I'll describe the whole procedure with details on my blog.

Greetings!