Visitors

myspace visitor tracker

Support WS4GL

Broadcasts‎ > ‎

FME Broadcasts

If you want to use the Flash Media Encoder for broadcasting, there is a neat way to do it using FFMPEG (stock version on Ubuntu 11.04)

  1. Make sure that you have installed ffmpeg (sudo apt-get install ffmpeg)
  2. Start WebcamStudio, select in the output menu a resolution of 640x480, framerate 15, pixel format UYVY
  3. Identify the video device used for webcamstudio (/dev/video1 in most cases)
  4. Retrieve your magic key from your broadcast service.  Generally you'll have to download a XML file to use with the FMLE software.  For Justin.tv, look here http://fr.justin.tv/broadcast/adv_other )
  5. You find a key looking like live_1234567_1E1GFDetUFDtNL5o9JxQsAwlp9sRtGf
  6. create a small bash script to automate the launching, for example ffjusting.tv.sh
  7. Here is the content:
ffmpeg -f video4linux2 -s 640x480 -r 15 -i /dev/video1 -f alsa -i pulse  -ac 1 -ab 64kb -ar 22050 -r 15 -b 400kb  -f flv "rtmp://live.justin.tv/app/live_1234567_1E1GFDetUFDtNL5o9JxQsAwlp9sRtGf flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"


Make sure to put your video device for WebcamStudio and your own magic key in the script...  This one will work with Justin.tv...  Here's an example for UStream...

ffmpeg -f video4linux2 -s 640x480 -r 15 -i /dev/video1 -f alsa -i pulse  -ac 1 -ab 64kb -ar 22050 -r 15 -b 400kb  -f flv "rtmp://1.395474.fme.ustream.tv/ustreamVideo/395474/1E1GFDetUFDtNL5o9JxQsAwlp9sRtGf flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"


Note that the key in the XML file ends with "offair"...  remove it to get online as soon as you are broadcasting...

This is a basic setup that should work without any glitch.  Feel free to improve the script on the FFMPEG parameters like changing the bitrates, output size, etc...  For now, FFMPEG seems to only be able to support YUV webcam, RGB does not seems to work for now.    On my laptop, I was able to broadcast at 10 fps, maybe recompiling FFMPEG could improve that...

Surely it will work with other provider like Bambuser, or any other supporting FME broadcast...  Have fun!

Some tips:

  • Have a good CPU
  • Lower the video bitrate is your upload bandwidth is not good enough

Sign in  |  Recent Site Activity  |  Terms  |  Report Abuse  |  Print page  |  Powered by Google Sites