Skip to content

Instantly share code, notes, and snippets.

@benjamine
Last active March 27, 2018 01:06
Show Gist options
  • Save benjamine/ce3fdcc4875207e655551a8dc5dab2ca to your computer and use it in GitHub Desktop.
Save benjamine/ce3fdcc4875207e655551a8dc5dab2ca to your computer and use it in GitHub Desktop.
record screen (with webcam overlay)
#!/bin/sh
# brew install ffmpeg
ffmpeg -thread_queue_size 50 \
-f avfoundation -framerate 30 -i "1" \
-thread_queue_size 50 -f avfoundation -framerate 30 -video_size 640x480 -i "0" \
-c:v libx264 -crf 18 -preset ultrafast \
-filter_complex 'overlay=main_w-overlay_w-10:main_h-overlay_h-10' -r 30 screen-capture.mkv
# see http://stackoverflow.com/a/33595841/178576
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment