Created
September 14, 2011 04:24
-
-
Save master-q/1215853 to your computer and use it in GitHub Desktop.
ffmpeg for justin.tv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
VIDEO_SIZE="320x240" | |
FPS="15" | |
STREAM_KEY="live_XXXXXXXX_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" | |
STREAM_URL="rtmp://live.justin.tv/app/$STREAM_KEY" | |
date | |
padsp ffmpeg -f video4linux2 -pix_fmt bgra -s "$VIDEO_SIZE" -r "$FPS" \ | |
-i /dev/video1 \ | |
-f alsa -ac 1 -ar 11025 -i pulse \ | |
-vcodec libx264 -vpre baseline \ | |
-acodec libmp3lame -ab 32k \ | |
-threads 0 \ | |
-f flv "$STREAM_URL" | |
notify-send "ffmpeg disconnected..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment