RSS Android Developers Blog

High-Speed Capture and Slow-Motion Video with CameraX 1.5

This post introduces the new CameraX 1.5 high-speed API for capturing action clearly, simplifying the creation of high-frame-rate and slow-motion videos. The core principle of slow-motion involves capturing at a higher frame rate than playback. CameraX offers two output options: player-handled high-frame-rate videos and ready-to-play slow-motion videos. The new API utilizes `Recorder#getHighSpeedVideoCapabilities` to check device support and `HighSpeedVideoSessionConfig` for configuration. Setting up involves checking capabilities, creating use cases, and choosing the desired output type. Option A creates a high-frame-rate video, while option B creates a ready-to-play slow-motion video using `setSlowMotionEnabled`. The recording process is similar to standard video capture, utilizing `VideoCapture`. The resulting slow-motion videos are compatible with standard players and Google Photos, which offers editing tools. Device support relies on CamcorderProfiles, and developers should use `Recorder.getHighSpeedVideoCapabilities()` to ensure compatibility. If profiles are missing, the API will fail.
favicon
android-developers.googleblog.com
android-developers.googleblog.com
Create attached notes ...