Go to advanced search

by LeoWhite
Sun May 19, 2013 6:41 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

Didn't realize ffmpeg could do video streaming. I've only ever used it for decoding video for playback or offline transcoding of video formats. FFmpeg does as much streaming as VLC. See this thread: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=38&t=44104 Hmm, looks like I need to finish buildi...
by LeoWhite
Sun May 19, 2013 6:11 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

I can't seem to get this working :( Does the (very long) raspivid command actually generate the stream as a file on the pi at /var/www/streaming/ ? Or do you need to create something there before runnig the command? Because I only have the default index.html file there generated by apache. I have a...
by LeoWhite
Sun May 19, 2013 4:38 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

poing wrote:Watching that stream my i5 3570K Ivy Bridge CPU overclocked to 4.5GHz uses around 26% :shock:
Uses about 15% here on a 2.6 GHz i7.
by LeoWhite
Sun May 19, 2013 4:36 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

Creating an HLS stream using ffmpeg is surprisingly low CPU intense. ffmpeg only uses low one digit CPU. I'm guessing VLC is doing some additional processing that isn't really required (Also Apache pulls quite a bit of CPU time when actually serving the files. If I wasn't trying this quickly I'd ha...
by LeoWhite
Sun May 19, 2013 3:13 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

Started documenting some of the methods mentioned in this this thread on my web site at http://www.mybigideas.co.uk/RPi/RPiCamera/

Currently covers RTSP, HTTP and HLS
by LeoWhite
Sun May 19, 2013 1:30 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

Hi I have managed to get the stream to VLC working but its seems to stop working after a few minutes with the log below. Anyone have any idea why this is happening and how to sustain the feed? Thanks [0x87e220] main input debug: EOF reached [0x876050] main playlist debug: finished input Looks like ...
by LeoWhite
Sun May 19, 2013 7:58 am
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

UglyMike wrote:Nice garden scene with overcast sky at LeoWhite.... Beats looking at Lego figures...
Works great on my iPad.
Well the Lego Figures came into use when it got too dark outside to see! Now its back to watching trains go by!
by LeoWhite
Sun May 19, 2013 7:57 am
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

Update: I switched to my 512 RPi and it worked instantly. Something is foul with my 256. Update 2: I switched my 5m power cable with a short 1m power cable and it now works fine on both the 512 and 256 RPi. I still have the "Packet with too strange dts ... " I ran into issues like that when getting...
by LeoWhite
Sat May 18, 2013 9:24 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

ProgDrums wrote:Thanks. RTSP is probably best for my needs in that case.
That's probably what I'll end up using myself, at least when only streaming on a local network!
by LeoWhite
Sat May 18, 2013 9:17 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

What would be the benefit, if any, of HLS? Most people were talking about it in relation to streaming to iOS devices. In theory it may allow more clients to connect and view the stream at the same time (As at that point the web server is just providing the files as normal, instead of VLC being invo...
by LeoWhite
Sat May 18, 2013 9:13 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

Hiya, After much searching I managed to get this working using raspivid -o - -t 99999 |cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264 its the ':demux=h264' that seemed to get things sorted. This now lets me stream directly from the camera, over the networ...
by LeoWhite
Sat May 18, 2013 9:10 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

I tried your revised command and when I opened up http://ipofpi:8090 in a web browser (safari on a mac) it just tried to endlessly download the stream like it was a file. tried it in firefox as well to no effect. What am I doing wrong here? Sorry missed this earlier. Currently you need to view the ...
by LeoWhite
Sat May 18, 2013 9:05 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

Well I've now gotten HLS working! So my new stream is at http://109.145.254.207:8091/streaming/stream.m3u8 and I launched it using raspivid -o - -w 920 -h 540 -t 9999999 | vlc -v -I "dummy" stream:///dev/stdin :sout="#std{access=livehttp{seglen=10,delsegs=true,numsegs=5, index=/var/www/streaming/str...
by LeoWhite
Sat May 18, 2013 8:41 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

I can't seem to get any streaming to work from my RPi. NC fills the buffer then bombs out. VLC says its casting over HTTP but I can't see the streams. I can however see the streams listed above. Maybe a dumb question, when my RPi is on the same network as my PC do I use the Public IP of my Internet...
by LeoWhite
Sat May 18, 2013 7:56 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

recantha2 wrote:Ahhhh, mine's over wifi. Probably why I'm getting a few problems!
That might introduce some issues! I've got my RPi connected via Ethernet at the moment, haven't tried wireless yet.
by LeoWhite
Sat May 18, 2013 7:29 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

recantha2 wrote:My stream is now online at
http://86.136.128.196:8080
Think I managed to get one or two frames before it locked up!

I notice my stream seems to be around 3 Mb/s so could be a little heavy on the network connection!
by LeoWhite
Sat May 18, 2013 7:12 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

The rtsp version works better than the http version. There's still a fair amount of distortion but it's a good 'other' way of getting streaming working. Yes I found the rtsp version a bit better, unfortunately I can't get it through my firewall without exposing all the other ports on the RPi! So ru...
by LeoWhite
Sat May 18, 2013 7:06 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

ProgDrums wrote:Working perfectly now. Thanks again.

Is there a way to stop the feed timing out?
I think the only way is to increase the timeout. So put a few 9s in the timeout value (I'm using -t 9999999 at the moment)
by LeoWhite
Sat May 18, 2013 6:47 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

ProgDrums wrote:D'oh! Thanks. I'm new to all of this.
Not a problem! hope that sorts it for you.
by LeoWhite
Sat May 18, 2013 6:41 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

Hiya, After much searching I managed to get this working using raspivid -o - -t 99999 |cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264 its the ':demux=h264' that seemed to get things sorted. I've just tried that but get the error -bash: cvlc: command not f...
by LeoWhite
Sat May 18, 2013 6:23 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

recantha2 wrote:Hey look at that! A train just went past :-)
Heh, that's about all that does! Trains, birds and the occasional fox.
by LeoWhite
Sat May 18, 2013 6:05 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

Hope it works for you!

I've got a stream running at http://109.145.254.207:8091/streaming/stream.m3u8 at the moment that can be watched via VLC.

See how long the RPi can stay up for if multiple people connect!

Leo
by LeoWhite
Sat May 18, 2013 4:47 pm
Forum: Camera board
Topic: Getting Streaming working to a PC
Replies: 35
Views: 12129

Re: Getting Streaming working to a PC

I've finally managed to get streaming workign using vlc and rtp. Seems a little more stable than using http (and I never got netcat/mplayer working under Window! Running raspivid -o - -t 99999 |cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264 Lets me then play the stream us...
by LeoWhite
Sat May 18, 2013 4:43 pm
Forum: Camera board
Topic: Using VLC to stream from the camera - Help needed
Replies: 166
Views: 172945

Re: Using VLC to stream from the camera - Help needed

Hiya, After much searching I managed to get this working using raspivid -o - -t 99999 |cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264 its the ':demux=h264' that seemed to get things sorted. This now lets me stream directly from the camera, over the network...
by LeoWhite
Wed Apr 24, 2013 3:11 pm
Forum: Automation, sensing and robotics
Topic: PWM outputs
Replies: 20
Views: 59480

Re: PWM outputs

I've used the WiringPi library (https://projects.drogon.net/raspberry-pi/wiringpi/) to create a couple of software PWM outputs to drive some motors. (Actually I've used the WiringPi python wrapper https://github.com/wiringPi). I've had my eye on the Adafruit 12 channel PWM driver (http://www.adafrui...

Go to advanced search