Go to advanced search

by Andy Armstrong
Fri Oct 18, 2013 11:45 am
Forum: Camera board
Topic: Imprecise camera fps
Replies: 12
Views: 3090

Re: Imprecise camera fps

As pelrun says this is a fairly common problem. In fact if Pi ran everything on the same clock it would be rather unusual - the normal case is that you're dealing with audio and video signals that each have their own, slightly different, timebases. I believe ffmpeg supports resampling the audio to m...
by Andy Armstrong
Tue Jun 11, 2013 4:31 pm
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

That looks excellent, thanks! I'll have a go at it tonight or tomorrow.

Thank you!
by Andy Armstrong
Tue Jun 11, 2013 10:40 am
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

It's an X650-V4 frame from Cool Components . I've got most of the bits here - just waiting for some wire and connectors. The initial setup will involve an Ardupilot with GPS to control it and some kind of home brewed (probably) gimbal. It has plenty of payload to carry another Pi to handle higher le...
by Andy Armstrong
Tue Jun 11, 2013 10:30 am
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

Thanks! :)

Here's a sneak preview of one of the places mine might end up:

Image

Image

Image
by Andy Armstrong
Tue Jun 11, 2013 10:24 am
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

If you compile nginx with the rtmp-module you don't need to use the psips.I did that and will publish a guide shortly on the entire setup and walkthrough. It works very well if you are going to use it for 1 or 2 users max. the nginx rtmp module also has built in native (does not need ffmpeg) HLS re...
by Andy Armstrong
Tue Jun 11, 2013 10:23 am
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

Thanks, Andy, for your work on this and sharing the psips filter. I've got everything setup almost exactly as you (raspivid > psips > ffmpeg > nginx > safari) and it's all working hunky dory on my local network. I've noticed your cam in the link you've provided seems to be on permanently, but my se...
by Andy Armstrong
Fri Jun 07, 2013 7:36 pm
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

Oh, that's lovely!

Beats downtown Clapham Junction every time :)
by Andy Armstrong
Fri Jun 07, 2013 10:28 am
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

Nice! When do we get ducks? :P
by Andy Armstrong
Fri Jun 07, 2013 9:27 am
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

:o :o :o :o I love mornings and fresh cup of coffee. :shock: Sleep is for winners :) I compiled it from source on the Ubuntu server using this article The configuration file is inside the .lau file - that is different than the packed up version. When I run it I get a nice colorful console and reali...
by Andy Armstrong
Thu Jun 06, 2013 9:51 pm
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

Oh dear...

Don't know I'm afraid. Unfortunately I've got some other stuff I need to do now - so you're probably on your own for the rest of the evening. Feel free to keep trying to connect to ernie if it's useful.
by Andy Armstrong
Thu Jun 06, 2013 9:23 pm
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

I can see - Unable to read data And something about adobe accept type not recognised. Although they both look serious I don't think they're the problem. "This agent is not on the list of allowed encoders" is actually just a warning (although my version doesn't do it) and I think "Unable to read dat...
by Andy Armstrong
Thu Jun 06, 2013 9:21 pm
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

Comparing your log with one of mine I notice that the source line numbers that are reported for various messages differ: Yours: 1370552249:3:/build/buildd/crtmpserver-0.0~dfsg+svn611.1/crtmpserver/src/crtmpserver.cpp:235:Run:GO! GO! GO! (20874) Mine: 1369948139:3:/build/crtmpserver-cg4puE/crtmpserve...
by Andy Armstrong
Thu Jun 06, 2013 8:48 pm
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

Strictly speaking I can connect - but then I'm getting kicked out. Here's what's on the wire: http://hexten.net/misc/wireshark-rtmp.png (full size) That means that crtmpserver doesn't like the stream name - not sure why. It's not specific to that name; I also tried rtmp://178.32.221.35/live/c920 and...
by Andy Armstrong
Thu Jun 06, 2013 8:32 pm
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

Oh, to answer your question about config changes: I don't think so. I'm running the stock crtmpserver distribution for Debian Wheezy.

Just in case, here's the config I'm running:

crtmpserver-config-stock-debian.tar.gz
by Andy Armstrong
Thu Jun 06, 2013 8:24 pm
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

Not sure. I can connect to your server on 1935 from here. Want me to try streaming something to it?
by Andy Armstrong
Thu Jun 06, 2013 7:59 pm
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

If the server's listening on localhost:1935 but you can't connect externally you could experiment with an ssh tunnel - just to see if the rest of your setup is working. On the Pi do $ ssh -L 1935:localhost:1935 {remote server} and then have your streaming script send to localhost:1935 instead of {re...
by Andy Armstrong
Thu Jun 06, 2013 7:55 pm
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

Yup, you could try to telnet to the box on port 1935 $ telnet host 1935 If that connects the port is open and something is listening. If that doesn't connect you could check on the server to find out whether anything has 1935 open. You should ssh to the server and then $ nmap -p 1935 localhost or us...
by Andy Armstrong
Thu Jun 06, 2013 4:07 pm
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

And bugs have come and gone over time that have had different effects on option parsing :)

As a result, as you see, I try to keep individual ffmpeg invocations as simple possible and string them together with pipes.
by Andy Armstrong
Thu Jun 06, 2013 3:37 pm
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

I guess I did know that... :)

The business of using tee (and the pipe for that matter) is probably cargo culted from problems I've had with various ffmpeg versions in the past.

But, yeah, what he said :)
by Andy Armstrong
Thu Jun 06, 2013 3:24 pm
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

Excellent! Here are a couple more things you might like to try: You're currently doing unicast streaming. You can make it work in multicast mode (so that ffmpeg will broadcast to a number of computers running VLC) pretty easily. Essentially just use a multicast address instead of the address of your...
by Andy Armstrong
Thu Jun 06, 2013 1:33 pm
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

I did suspect... :) I've dumped a few useful files here: http://hexten.net/picaster/ ffmpeg-rapi.tar.gz (58M) A recent build of ffmpeg. To use it install the Raspbian ffmpeg (to get any dependencies I haven't included), unpack the tarball below /opt/ffmpeg and (optional) add /opt/ffmpeg/bin to your ...
by Andy Armstrong
Thu Jun 06, 2013 12:54 am
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

Oh, that started to work on UDP (i saw the buffer fill but video blank) so I checked the log and it is dumping a million messages saying ketizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiting for SPS/PPS packetizer_h264 warning: waiti...
by Andy Armstrong
Wed Jun 05, 2013 10:08 pm
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

It looks like your VLC is expecting an RTSP stream. I've just tried it here and it works for me. Starting with flv-low.sh I changed the ffmpeg invocation to this: ffmpeg -y \ -f h264 \ -i "$fifo" \ -c:v copy \ -map 0:0 \ -f mpegts udp:kumina.local:1234 My laptop is called kumina. On the laptop I gav...
by Andy Armstrong
Wed Jun 05, 2013 9:21 pm
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

Yes. mjpeg is just a bunch of jpegs that get pulled by the client by JavaScript, Java or some native implementation(but that is old school). As you say the Pi has build in hardware JPEG encoding so its just down to the implementation of it. I wish I could do it but I am not that clued up with what'...
by Andy Armstrong
Wed Jun 05, 2013 8:42 pm
Forum: Graphics, sound and multimedia
Topic: Live streaming from PiCam
Replies: 110
Views: 49428

Re: Live streaming from PiCam

Oh - I forgot to say that I am being anal and want to watch it via browser; My options... a- Initially I thought dumping the h264 via http to a browser will work fine.. obviously not (yet):( b- mjpg has support for almost any browser and most of devices. So I tried that but I got crushed with bottl...

Go to advanced search