Skip to content

Instantly share code, notes, and snippets.

@m13253
Last active August 29, 2015 14:20
Show Gist options
  • Save m13253/6c34c0c1b929d0e80ffe to your computer and use it in GitHub Desktop.
Save m13253/6c34c0c1b929d0e80ffe to your computer and use it in GitHub Desktop.
My screencast live stream configuration
# Personal reminder
# Do not use it unless you know what it means!
parec --rate=48000 --format=float32le -d alsa_output.pci-0000_00_1b.0.analog-stereo.monitor | \
ffmpeg -f x11grab -video_size 1366x768 -framerate 25 -i :0 \
-f f32le -ar 48k -ac 2 -i - \
-vf setpts='(RTCTIME-RTCSTART)/(TB*1000000)' \
-b:v 512k -c:v libx264 -profile:v main -pix_fmt yuv420p -level:v 4.1 -tune:v zerolatency -preset:v ultrafast -g:v 25 \
-b:a 96k -c:a libfdk_aac -profile:a aac_he \
-f flv -vsync passthrough rtmp://localhost/live
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment