

(The man page stay -A but it did not work.) screencapture -v -g out.mov Use -g to also record audio using the default input. There is no stop button at the the menu bar. Record your main screen until you hit Ctrl+C in Terminal. The options listed in the man page may be incorrect. See the help page ( screencapture -help) for a description of all options. Note: This answer doesn’t use libav but this question comes up first when searching for “mac screen record command line” in Google.Īs of macOS Catalina, you can now record screen from your command line using the screencapture tool with -v flag.

You'll need to use a third party tool to get exact pixel measurements of your screen. The current setting is cropped to 1280 width 720 height, offsetting 1 pixel to the left and 65 pixels from the top. vf is very useful for cropping and offsetting. Unfortunately you aren't able to control the audio levels now.if someone knows a solution to this please let me know. Select this new Multi-Output device in your sound outputs and there ya go, you can now hear the audio and have it captured. You'll notice that once you select it as an output device that you can no longer hear the audio yourself through your speakers or headphones.Ī quick fix is opening Audio MIDI Setup, create a Multi-Output Device and adding iShowU Audio Capture and your normal output device. To get that to work, you'll need to press Option + F11, select iShowU Audio Capture as an input device and as an output device. If you want to capture audio playing on your computer, you'll need something like iShowU Audio Capture. You may or may not get asked to specify -pix_fmt when this option is not included it might be worth trying other formats to see if you get better performance.Īs explained in the details link, -i selects both video and audio input. Here is an example command-line: ffmpeg -f avfoundation -pix_fmt yuyv422 -i "1:1" -t 10 -vf crop=1280:720:1:65 -r 30 output.mkv You're able to record with ffmpeg using an input device called avfoundation.

I found a solution that works really well.
