Skip to content

Instantly share code, notes, and snippets.

@MarkusH
Created May 9, 2021 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MarkusH/7735d09a45d3722595e69871887cfb99 to your computer and use it in GitHub Desktop.
Save MarkusH/7735d09a45d3722595e69871887cfb99 to your computer and use it in GitHub Desktop.
Talk recording
#!/usr/bin/bash
ffmpeg \
-f alsa -sample_rate 44100 -thread_queue_size 1024 -itsoffset -0.5 -i hw:0 \
-f x11grab -r 30 -thread_queue_size 1024 -i :0.0 \
-f v4l2 -r 30 -video_size 320x180 -thread_queue_size 1024 -i /dev/video0 \
-filter_complex "
[1:v]scale=1920x1080[slides];
[slides][2:v]overlay=x=1580:y=20
" \
-preset ultrafast \
output.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment