Last active
March 27, 2018 01:06
-
-
Save benjamine/ce3fdcc4875207e655551a8dc5dab2ca to your computer and use it in GitHub Desktop.
record screen (with webcam overlay)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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