Go to advanced search

by howroyd
Thu Nov 01, 2012 1:04 pm
Forum: C/C++
Topic: Need help with compiling C++ code for Pi
Replies: 8
Views: 3094

Re: Need help with compiling C++ code for Pi

I can recommend "cmake".

Google it, plenty of tutorials around!
by howroyd
Thu Nov 01, 2012 12:53 pm
Forum: C/C++
Topic: Webcam to SD Card in C++
Replies: 1
Views: 1225

Webcam to SD Card in C++

Hi all. I have my webcam working nicely, outputting on http://localhost:8080. I am running a cpp programme, which I would like to include some code for the webcam. I want to save the video feed to the SD card in C++. How do I create a file (mjpg??) Save the video in realtime Stop saving (then I can ...
by howroyd
Thu Nov 01, 2012 12:36 pm
Forum: Beginners
Topic: A good live webcam streaming tutorial?
Replies: 16
Views: 19259

Re: A good live webcam streaming tutorial?

That latest tutorial (bobtech) is fantastic. Thank you very much. Side note; for some reason on my html webpage: <img src="http://192.168.1.10:8080/?action=stream" /> WORKS FINE <img src="http://raspberrypi:8080/?action=stream" /> Broken link icon?? Checked /etc/hostname and "raspberrypi" is correct...
by howroyd
Mon Aug 06, 2012 12:25 pm
Forum: Beginners
Topic: Webcam Server
Replies: 12
Views: 2795

Re: Webcam Server

I am making some slow progress. The video runs very smooth for about 1sec, then pauses for about 3s while it buffers, then smooth for 1s...and so on. There doesn't seem to be any continuous streaming, just discrete large packets every 4 secs. Makes me think this is an ffserver problem rather than ff...
by howroyd
Mon Aug 06, 2012 11:04 am
Forum: Beginners
Topic: Webcam Server
Replies: 12
Views: 2795

Re: Webcam Server

Getting about a 14s delay. Any ideas how to improve? Here is my ffserver.conf: Port 8080 BindAddress 0.0.0.0 MaxClients 10 MaxBandwidth 50000 NoDaemon <Feed webcamFeed.ffm> file /tmp/webcam.ffm FileMaxSize 512k acl allow 127.0.0.1 </Feed> <Stream webcamStream.mpg> Feed webcamFeed.ffm Format mpeg Vid...
by howroyd
Mon Aug 06, 2012 7:49 am
Forum: Beginners
Topic: Webcam Server
Replies: 12
Views: 2795

Re: Webcam Server

Nice one. Going OK, getting about a 14 sec delay and its only stable at qvga. Pretty poor considering the pi can do HD for videos. I'll post my config and execute when I get to work. I browsed through the ffmpeg documentation, position of flags in the execute stream is much more important than first...
by howroyd
Fri Aug 03, 2012 5:26 pm
Forum: General discussion
Topic: Mjpg-Streamer
Replies: 46
Views: 112164

Re: Mjpg-Streamer

Network side initially but might open it up internet side; its part of an academic research project so would only be open at certain times
by howroyd
Fri Aug 03, 2012 4:25 pm
Forum: General discussion
Topic: Mjpg-Streamer
Replies: 46
Views: 112164

Re: Mjpg-Streamer

Changed ffserver.conf to the below, now works fine through VLC. Struggling receiving it in html though to embed it in my webpage, what's the best way? use img tags or iframe? Port 81 BindAddress 0.0.0.0 MaxClients 10 MaxBandwidth 50000 NoDaemon <Feed webcam.ffm> file /tmp/webcam.ffm FileMaxSize 10M ...
by howroyd
Fri Aug 03, 2012 4:06 pm
Forum: General discussion
Topic: Mjpg-Streamer
Replies: 46
Views: 112164

Re: Mjpg-Streamer

Yes it's a brilliant guide, best I've found after hours on google! Looks like and IO error, not a clue what this means with my limited knowledge! [email protected]:~$ sudo ffserver -f /etc/ffserver.conf & ffmpeg -v verbose -r 5 -s 320x240 -f video4linux2 -i /dev/video0 http://localhost:81/webcam.ffm [1...
by howroyd
Fri Aug 03, 2012 1:12 pm
Forum: General discussion
Topic: Mjpg-Streamer
Replies: 46
Views: 112164

Re: Mjpg-Streamer

No luck. Compiled as per instructions here: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=66&t=9045 All ok, no errors. Made a file /etc/ffserver.conf which contains: Port 81 BindAddress 0.0.0.0 MaxClients 10 MaxBandwidth 50000 NoDaemon file webcam.ffm FileMaxSize 10M Feed webcam.ffm Format mjpeg...
by howroyd
Fri Aug 03, 2012 8:18 am
Forum: Beginners
Topic: Webcam Server
Replies: 12
Views: 2795

Re: Webcam Server

You can turn off the output, but the programme still executes the motion code all the time...irritating.

I'm trying to build ffstream from source now (to overcome the seg fault on wheezy):
THIS:
http://www.raspberrypi.org/phpBB3/viewt ... =66&t=9045
THEN:
http://sirlagz.net/?p=357
by howroyd
Fri Aug 03, 2012 6:57 am
Forum: Beginners
Topic: Webcam Server
Replies: 12
Views: 2795

Re: Webcam Server

Thanks for the reply. Motion works fine but its unbelievably slow, using most of the bandwidth for motion detection...getting 1.5-2Hz.

I need something considerably quicker. Ive had a suggestion to use deb-multimedia ffmpeg source and use this guide? http://sirlagz.net/?p=357
by howroyd
Thu Aug 02, 2012 5:59 pm
Forum: General discussion
Topic: Mjpg-Streamer
Replies: 46
Views: 112164

Re: Mjpg-Streamer

Yep, I am also desperately trying to do this. Motion is incredibly intensive, using most of the webcam bandwidth...dismiss. ffstream is very customisable but impossible to set up (at least to me!) mjpeg-streamer is very easy but I can't get it to install on debian wheezy (videodev.h not found, think...
by howroyd
Thu Aug 02, 2012 1:50 pm
Forum: Beginners
Topic: Webcam Server
Replies: 12
Views: 2795

Webcam Server

Hi all, I'm running the latest version of Debian Wheezy, with apache2 and php5 installed. I want to put my webcam, /dev/video0, onto localhost:port. Aim: In a webpage hosted by the pi, have the video feed, <img src=localhost:port> Be able to view the webcam from any PC by typing into the browser htt...

Go to advanced search