Skip to content

Instantly share code, notes, and snippets.

@dialupnoises
Created February 16, 2014 05:24
Show Gist options
  • Save dialupnoises/9029716 to your computer and use it in GitHub Desktop.
Save dialupnoises/9029716 to your computer and use it in GitHub Desktop.
###
# stream.sh
# FFMPEG -> Livestream.com
# Usage: ./stream.sh <file>
###
CHANNEL="channel"
USER="username"
PASSWD="password"
W_RATIO=16
H_RATIO=9
ffmpeg -re -i $1 -bufsize 32k -b:v 400 -minrate 300 -maxrate 500 -c copy -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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment