Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- twitch() {
- STREAM_KEY="xxxxxxxxx"
- INRES=1920x1080 # input resolution
- OUTRES=1280x720
- FPS=20 # target FPS
- QUAL="superfast" # one of the many FFMPEG preset
- ffmpeg -f x11grab -s $INRES -r $FPS -i :0.0+0,0 \
- -f alsa -ac 2 -i pulse -vcodec libx264 -preset:v $QUAL -s $OUTRES \
- -acodec libmp3lame -ab 96k -ar 44100 -threads 0 \
- -f flv rtmp://live.justin.tv/app/$STREAM_KEY
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement