ppumkin
Posts: 82
Joined: Tue May 29, 2012 10:22 pm

Re: Live streaming from PiCam

Mon Jun 17, 2013 1:55 pm

Yea I want to make sure my NAS is mounted so i save the stop motion files there; just because its got terabytes of space. But i realise now i cant do it like that. I'll run a startup script instead.

Image

Code: Select all

root@weather:/usr/local/bin# ls -la "/usr/local/bin/"
total 25324
drwxrwsr-x  2 root staff    4096 Jun 17 13:48 .
drwxrwsr-x 10 root staff    4096 Jun 10 21:15 ..
-rwxr-xr-x  1 root staff 8728864 May 25 12:50 ffmpeg
-rwxr-xr-x  1 root staff 8675904 May 25 12:50 ffprobe
-rwxr-xr-x  1 root staff 8490784 May 25 12:50 ffserver
-rwxr-xr-x  1 root staff      42 May 16 21:42 mountnas.sh
-rwxr-xr-x  1 root staff   11143 Jun  6 13:16 psips
-rwxr-xr-x  1 root staff     379 Jun 17 13:48 rtmp-nginx.sh

alexcroox
Posts: 18
Joined: Sun Jun 02, 2013 10:57 pm

Re: Live streaming from PiCam

Sun Jul 21, 2013 7:54 pm

I too am experiencing the 6 second lag with the camera module. With the exact same setup using a £5 USB webcam to the same RTMP server (crtmpserver) I get < 1s lag, however I cannot get it below 5 seconds with the camera module. Limitations of the hardware or delay in copying from raspvid to ffmpeg?

Also how do you install that patched version of raspvid?

crtmpserver
Posts: 1
Joined: Mon Jul 22, 2013 11:13 pm

Re: Live streaming from PiCam

Mon Jul 22, 2013 11:16 pm

crtmpserver is simply saying that the publish begun with a call to releaseStream on a not yet published stream. And the server replies back with that error which makes perfect sense. FMLE does the same. Whatever the encoder is, it should be prepared to get that error, not choke on it. avconv is not choking on it btw

Best regards,
Andrei

reizenikker
Posts: 1
Joined: Tue Jul 23, 2013 7:05 am

Re: Live streaming from PiCam

Tue Jul 23, 2013 7:07 am

Andy, could you provide your email address, i have a interesting offer for you.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 17880
Joined: Sat Jul 30, 2011 7:41 pm

Re: Live streaming from PiCam

Tue Jul 23, 2013 9:07 am

reizenikker wrote:Andy, could you provide your email address, i have a interesting offer for you.
You can use the PM system to get in touch with anyone registered on the forum, I'd suggest that is a better approach.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Please direct all questions to the forum, I do not do support via PM.

tomhalv
Posts: 36
Joined: Wed Apr 24, 2013 11:10 pm

Re: Live streaming from PiCam

Wed Jul 24, 2013 4:23 pm

ppumkin,
I'm a real noobie here and I'm trying to follow your tutorial on getting nginx-rtmp installed. It seems that maybe I'm missing more of the ./configure lines. The last one ended with a '\' which indicates that there are more to come, but the text block shown does not have any. Are there more options beyond the last one shown: --add-module=/usr/src/nginx-rtmp-module ??

nerdlogger
Posts: 3
Joined: Sun Nov 10, 2013 2:34 am

Re: Live streaming from PiCam

Sun Nov 10, 2013 2:56 am

Slightly different approach that works on Pi and Beaglebone Black:

http://nerdlogger.com/2013/11/09/stream ... one-black/

TTYL
Nerdlogger

ppumkin
Posts: 82
Joined: Tue May 29, 2012 10:22 pm

Re: Live streaming from PiCam

Sun Nov 10, 2013 2:32 pm

Yea crtmp-server is also very good! Nice tutorial :) Thanks for sharing

HypnoToad
Posts: 50
Joined: Thu Dec 11, 2014 6:00 pm

Re: Live streaming from PiCam

Mon Feb 09, 2015 1:19 pm

towolf wrote:Thanks, yeah you’re using the internal RTMP as well.

What I found pretty cool is the record feature in nginx-rtmp-module. So not only can it stream RTMP, it can handle HLS and dumping to another .flv file also. And you can opt to only record keyframes, which means you get a convenient timelapse as well without re-encoding the H264 stream. It just greps the keyframes out and writes them to an flv.

It’s the »eierlegende Wollmilchsau« of streaming on the RPi.
Hi, I know this is an old post, but I'm now using the same setup you as, triggering timelapse recording in the browser.

However the timelapse recordings do not playback. I've tried VLC, and while the file opens, it doesn't play and I'm unable to adjust the playback speed also.

Can I ask you what you use to playback the timelapse recordings?

Thanks

towolf
Posts: 421
Joined: Fri Jan 18, 2013 2:11 pm

Re: Live streaming from PiCam

Mon Feb 09, 2015 2:20 pm

I think Mplayer should do it. Maybe you need to override the playback FPS. I don’t know if VLC can do this.

HypnoToad
Posts: 50
Joined: Thu Dec 11, 2014 6:00 pm

Re: Live streaming from PiCam

Mon Feb 09, 2015 2:44 pm

towolf wrote:I think Mplayer should do it. Maybe you need to override the playback FPS. I don’t know if VLC can do this.
Thanks, I'll give MPlayer a go.

Also I've just found that FLV files need a little extra processing before you can seek:
Seek does not work with flv files recorded by the module.

To make the files seekable add flv metadata with external software like yamdi, flvmeta or ffmpeg.

exec_record_done yamdi -i $path -o /var/videos/$basename;
From the FAQ page on github: https://github.com/arut/nginx-rtmp-module/wiki/FAQ

I'll add the metadata and see if I can then playback or seek in a timelapse recording.

Return to “Graphics, sound and multimedia”

Who is online

Users browsing this forum: No registered users and 4 guests