I have been working on using the Raspberry PI + USB device as an IP Web CAM - actual aim is stream over LAN to something like wirecast - however is a lot more examples of streaming to ustream around .. so going with this for know till I get the audio and video encoding side of things working first...
I was getting some crashes with the C code in the first example, so I started fresh with the example v4l_capture.c in the V4L2 sources + some of the OpenMAX examples that come with raspberry PI.
I've put together a 'raspiv4l.bin' - advantages are it detects the video resolution and frame rate from V4L interface and sets up the SW scaler and HW h264 encoder accordingly in code. So you can adjust the USB V4L parameters using v4l2-ctrl without having to constantly change hard coded values and recompile the C code
Please see attached code including example script 'stream.sh' for streaming to ustream - note you will need an ffmpeg compiled from recent GIT or snapshot source .. - see threads on using the raspberry pi and streaming for more info on this.
Next thing I am working is getting h264 video + mp3 audio streaming working - very close just not reading audio quick enough and getting crackling due to audio breakup. - I have included my attempts so far in 'stream.sh'.