Skip to content

Instantly share code, notes, and snippets.

@ephesus
Created March 6, 2018 01:49
Show Gist options
  • Save ephesus/fbd28ab7f4d123954c36209bfebd7d54 to your computer and use it in GitHub Desktop.
Save ephesus/fbd28ab7f4d123954c36209bfebd7d54 to your computer and use it in GitHub Desktop.
Record video on macbook pro/air with ffmpeg
#!/bin/bash
# record video on os x
# full resolution isn't smooth, and my new macbook has a shitty (not HD?) isight camera
ffmpeg -f avfoundation -video_size 640x480 -framerate 30 -i "0:0" out-`date +%y%m%d%H%M%S`.mp4
#ffmpeg -f avfoundation -video_size 640x480 -framerate 30 -i "0:0" out-`date +%y%m%d%H%M%S`.mp4
#ffmpeg -f avfoundation -video_size 640x480 -pix_fmt yuv422p -framerate 30 -i "0:0" out-`date +%y%m%d%H%M%S`.mp4
#list devices
#ffmpeg -f avfoundation -list_devices true -i ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment