[FFmpeg-user] avconv stream to ustream dies after 2 hours

John Ellenberger johne at jellenberger.org
Mon Mar 23 11:22:44 CET 2015

As a follow-up...

I took the advice and built ffmpeg from source (which takes several hours
on the Raspberry Pi).   I then used the native camera command to pipe
through ffmpeg as follows:

raspivid -t 0 -w 960 -h 540 -fps 25 -b 500000 -o - | /usr/local/bin/ffmpeg
-i - -vcodec copy -an -metadata title="Streaming from raspberry pi camera"
-f flv [ustream-url]/[ustream-key]

This has been running for 24 hours.  The key is the -t 0 which tells the pi
camera command to stream forever.


On Sat, Mar 21, 2015 at 7:57 AM, John Ellenberger <johne at jellenberger.org>

> I am streaming from a Raspberry Pi camera to ustream using the following
> command:
> avconv -f h264 -r 25 -i fifo.264 -metadata title="Raspberry Pi Camera
> Module (LIVE)" -f flv  rtmp://1.18079948.fme.ustream.tv/morestuff
> Initially I get a warning:
> [h264 @ 0x2f5680] Estimating duration from bitrate, this may be inaccurate
> But it runs for a few hours and then dies with:
> Failed to update header with correct duration.me=6962.20 bitrate=
> 203.6kbits/s
> [flv @ 0x2fe120] Failed to update header with correct filesize.
> I don't see an option to set duration to "forever" as the -t option takes
> a non-zero argument.
> Any way to force the duration or am I doing something else wrong?
> --
> John Ellenberger
> Groton, MA

John Ellenberger
Groton, MA

More information about the ffmpeg-user mailing list