I would now like to stream video to ustream.tv. Ustream accepts RTMP streams so I am trying to work out how to use ffmpeg/avconv to produce a correctly encoded stream.
I found (this blog post) which appeared to cover exactly my use case. However, when I run ffmpeg/avconv I get an error which I don't understand and which Google isn't shedding much light on:
Code: Select all
raspberrypi ~ $ avconv -f video4linux2 -s 320x240 -r 1 -i /dev/video0 -metadata title="title" -f flv rtmp://ustream.video.url/
avconv version 0.8.5-6:0.8.5-1+rpi1, Copyright (c) 2000-2012 the Libav developers
built on Jan 24 2013 08:41:09 with gcc 4.6.3
[video4linux2 @ 0xf67840] Cannot find a proper format for codec_id 0, pix_fmt -1.
/dev/video0: Input/output errorCode: Select all
raspberrypi ~ $ avconv -an -f mjpeg -s 320x240 -r 1 -i /dev/video0 -metadata title="title" -f flv rtmp://ustream.video.url/
avconv version 0.8.5-6:0.8.5-1+rpi1, Copyright (c) 2000-2012 the Libav developers
built on Jan 24 2013 08:41:09 with gcc 4.6.3
Option video_size not found.