Skip to content

Camera Support

ffmpegkit-maintained edited this page Jun 23, 2026 · 1 revision

Camera Support

The built-in camera is accessible via FFmpeg's android_camera input device, requiring API level 24+ (our minSdk is already 24 — see Compatibility — so this works out of the box).

Devices with a deprecated camera HAL 1.0 implementation (LEGACY hardware level) aren't supported by the Android NDK Native API this depends on, and therefore aren't supported here either.

List available input devices

FFmpegKitConfig.getSupportedCameraIds(this);

Record the video stream

Audio capture is not supported through this device.

-f android_camera -i 0:0 -r 30 -pixel_format bgr0 -t 00:00:05 <record file path>

See the android_camera input device documentation for the full set of options.

Clone this wiki locally