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. John On Sat, Mar 21, 2015 at 7:57 AM, John Ellenberger <[email protected]> wrote: > 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 _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user
