# `mix bb_camera_avf.scan`
[🔗](https://github.com/beam-bots/bb_camera_avf/blob/main/lib/mix/tasks/bb_camera_avf.scan.ex#L5)

Lists the cameras ffmpeg's AVFoundation input can see, by the name to use
as `BB.Camera.AVF`'s `:device` option.

Listing opens no camera and needs no camera access. Screens, which ffmpeg
lists after the cameras, are counted but not shown.

## Usage

    mix bb_camera_avf.scan [OPTIONS]

## Options

  * `--ffmpeg` - Path to the ffmpeg executable (default: the one on `$PATH`)

## Finding a camera's sizes and rates

ffmpeg prints every mode a camera supports when asked for one it does not
have:

    ffmpeg -hide_banner -f avfoundation -framerate 1 -video_size 640x480 \
      -i "FaceTime HD Camera" -frames:v 1 -f null -

---

*Consult [api-reference.md](api-reference.md) for complete listing*
