Tuesday, November 6, 2012

Using a Raspberry pi to live stream video to Bambuser

Update: If using Raspberry pi camera module http://www.slickstreamer.info/2013/06/use-raspberrypi-csi-camera-module-to.html

This is a short tutorial how to set up a Raspberry pi to live stream to Bambuser.

We are using adafruits Occidentalis distro it should work with the regular wheezy distro.

Installing ffmpeg
  • sudo apt-get update
  • sudo apt-get install ffmpeg

alternativ use avconv
  • sudo apt-get update
  • sudo apt-get install avconv
Login to Bambuser and get your settings file. You can find it under "Standalone desktop app" and Download your authentication profile.  http://api.bambuser.com/user/fmle_profile.xml

Find the rtmp node and copy url tag and stream key

Get the url and stream id from https://bambuser.com/api/keys

ffmpeg -f video4linux2 -s 320x240 -r 30 -i /dev/video0 -metadata title="title" -f flv [url]/[id]

ffmpeg -f video4linux2 -s 320x240 -r 30 -i /dev/video0 -metadata title="my awesome video"  -f flv rtmp://1234.fme.bambuser.com/b-fme/133713371337133713371337

If using avconv it is the same parameters as for ffmpeg.

We had problem with overheating if we had the raspberry pi in an enclosure.

Marcus & Michael

Simpler way to get url and stream id. Thank you Tom and Bambuser :)