Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scap

A command-line tool for recording system audio on macOS.

  • Requires macOS 15.4 or later
  • Notarized by Apple

Installation

Install Script

curl -fsSL https://github.com/skw398/scap/releases/download/1.0.2/install.sh | bash

Other Options

Download Binary Manually

Download scap.zip, extract it, and place scap anywhere on your PATH (e.g. /usr/local/bin).

Build from Source

Clone the repository and run the build command. A Swift 6.3 toolchain is required.

swift build -c release

The built binary is written to ./.build/release/scap. Place it anywhere on your PATH (e.g. /usr/local/bin).

Usage

Record to File

scap

Press Ctrl+C to stop. The recording is saved to ~/Desktop by default.

Note

On the first recording attempt, macOS will show a dialog to grant system audio recording permission. If denied or disabled later, enable System Audio Recording Only for your terminal app in System Settings > Privacy & Security.

Specify an output file or directory:

scap ~/Music/scap/recording.m4a
scap .

Manage the default output directory:

scap config set output-dir ~/Music
scap config unset output-dir
scap config get output-dir

Configuration is saved to ~/.config/scap/config.json.

Write raw PCM to stdout

scap - writes raw PCM to stdout at 48kHz stereo.

For example, to pipe it into ffmpeg:

scap - | ffmpeg -f f32le -ar 48000 -ac 2 -i - output.wav

Uninstall

scap uninstall

License

MIT

About

No description, website, or topics provided.

Resources

Stars

12 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages