I have been trying to run a webcam/audio stream from usb devices on my rpi.
I have run the following commands:
avconv -f video4linux2 -i /dev/video0 –s 640×360 r 10 –b 350k –f flv rtmp://x.xxxxxxxx.fme.ustream.tv/ustreamVideo/xxxxxxxx/streamkey
avconv -f video4linux2 -i /dev/video0 -vcodec mpeg2video -r 25 -pix_fmt yuv420p -me_method epzs -b 2600k -bt 256k -f flv rtmp://x.xxxxxxxx.fme.ustream.tv/ustreamVideo/xxxxxxxx/streamkey
"this command as per this source"
both return error:
[video4linux2 @ 0xa3e720] Cannot find a proper format for codec_id 0, pix_fmt -1.
/dev/video0: Input/output error
This only occurs on rpi, as my ubuntu laptop can run
avconv -f video4linux2 -i /dev/video0 perfectly using default values.
is v4l2 broken? or am I doing something wrong here.
p.s. the audio hasn't been a problem at all, so I didn't include much info on it.