Skip to content

Instantly share code, notes, and snippets.

@aikar
Created August 2, 2012 03:33
Show Gist options
  • Save aikar/3233082 to your computer and use it in GitHub Desktop.
Save aikar/3233082 to your computer and use it in GitHub Desktop.
ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0+0,0 \
-f alsa -i pulse \
-f alsa -i hw:0 \
-map 0:0 -map 2.0:1.0 \
-vcodec libx264 -vpre "$QUAL" -s "$OUTRES" \
-ac 1 -acodec libmp3lame -ar 44100 -threads 0 \
-pix_fmt yuv420p -f flv "rtmp://live.twitch.tv/app/$STREAM_KEY" \
2>&1 | grep -v "live.twitch.tv"
Metadata:
encoder : Lavf53.21.0
Stream #0.0: Video: libx264, yuv420p, 1024x576, q=-1--1, 1k tbn, 23 tbc
Stream #0.1: Audio: libmp3lame, 44100 Hz, 1 channels, s16, 200 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #2.0 -> #0.1 [sync #1.0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment