Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/shh
- # Streams Desktop to Twitch/Justin.tv
- INRES="1600x900"
- OUTRES="1280x720"
- FPS="30"
- QUAL="medium"
- BITRATE="256k"
- STREAM_KEY="live_40412197_hV3SclTOv5M23rZ7GuOKuNnDCSkXsL"
- ffmpeg \
- -f x11grab \
- -s "$INRES" \
- -r "$FPS" \
- -i :0.0+0,299 \
- -itsoffset -00:00:01 \
- -f alsa \
- -i hw:0,0 \
- -af aresample \
- -vcodec libx264 \
- -preset "$BITR" \
- -s "$OUTRES" \
- -acodec libmp3lame \
- -ar 44100 \
- -threads 4 \
- -b:a "$BITRATE" \
- -pix_fmt yuv420p \
- -f flv "rtmp://live.justin.tv/app/$STREAM_KEY"
Add Comment
Please, Sign In to add comment