~2012

Justin.tv ffmpeg streaming

Just a simple reminder again. This script streams the webcam directly to Justin.tv. Plain simple

#!/bin/bash
API_KEY="live_**********"
FPS="15"

INRES='640x480'
OUTRES='640x480'

ffmpeg -f video4linux2 -s "$INRES" -r "$FPS" -i /dev/video0 \
    1.f alsa -i pulse -vcodec libx264  -s "$OUTRES"  \
    2.acodec libmp3lame -ab 64k -ar 22050 -threads 0 \
    3.f flv "rtmp://live.justin.tv/app/$API_KEY"