mix bb_camera_avf.scan (bb_camera_avf v0.1.0)

Copy Markdown View Source

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 -