Created
September 23, 2012 03:37
-
-
Save Wollw/3768754 to your computer and use it in GitHub Desktop.
LiveStream with FFMPEG
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
CHANNEL="YOURCHANNEL" | |
USER="YOURUSERNAME" | |
PASSWD="YOURPASSWORD" | |
W_RATIO=16 | |
H_RATIO=9 | |
AUDIO="-f mp3 -i http://localhost:8000" | |
ffmpeg \ | |
$AUDIO \ | |
-f x11grab -r 24 -s 1920x1080 -i :0.0 \ | |
-c:v libx264 -s 768x432 -b:v $1k -bufsize 128k\ | |
-f flv "rtmp://publish.livestream.com/mogulus/$CHANNEL/username=$USER/password=$PASSWD/isAutoLive=true/autoVOD=true/autoRecord=true/autoPilot=true/aspectWidth=$W_RATIO/aspectHeight=$H_RATIO app=mogulus/$CHANNEL/username=$USER/password=$PASSWD/isAutoLive=true/autoVOD=true/autoRecord=true/autoPilot=true/aspectWidth=$W_RATIO/aspectHeight=$H_RATIO tcurl=rtmp://publish.livestream.com/mogulus/$CHANNEL/username=$USER/password=$PASSWD/isAutoLive=true/autoVOD=true/autoRecord=true/autoPilot=true/aspectWidth=$W_RATIO/aspectHeight=$H_RATIO swfUrl=rtmp://publish.livestream.com/mogulus/$CHANNEL/username=$USER/password=$PASSWD/isAutoLive=true/autoVOD=true/autoRecord=true/autoPilot=true/aspectWidth=$W_RATIO/aspectHeight=$H_RATIO flashver=FFMPEG live=true" | |
# -f alsa -ac 2 -ar 44100 -i hw:0,0\ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment