Skip to content
Robert Brisita edited this page Dec 20, 2021 · 12 revisions

Usage

FFmpeg is used to record and play back audio. Currently MP3 is being used but OGG and OPUS are being considered.

Targets

Architecture

  • x86
  • ARM

Bits

  • 32
  • 64

OSes

  • Darwin (OS X)
  • Linux Variants
  • Windows

Commands

Record

Darwin (OS X)

ffmpeg -hide_banner -nostats -loglevel error -f avfoundation -i <input_device> -y <output_file>

Linux

ffmpeg -hide_banner -nostats -loglevel error -f pulse -i <input_device> -y <output_file>

Windows

ffmpeg -hide_banner -nostats -loglevel error -f dshow -i audio=<input_device> -y <output_file>

Play

ffplay -hide_banner -nodisp -nostats -autoexit -ss <time_secs> <input_file>

List Devices

Darwin (OS X)

ffmpeg -hide_banner -nostats -f avfoundation -list_devices true -i ""

Linux

pactl list short sources

Windows

ffmpeg -hide_banner -nostats -f dshow -list_devices true -i dummy

Links

Compile

Configure

Linux

Arch

Raspberry Pi

Windows

Errors

Clone this wiki locally