Jump to content

RidgeRun Video Stabilization Library: FAQ

From RidgeRun Developer Wiki

Follow us on: YouTube Twitter LinkedIn Email Share this page

Share This Page

Preferred Partner Logo 3 Partner Program Banner



RidgeRun Video Stabilization Library FAQ

This page answers common questions about the RidgeRun Video Stabilization Library and redirects readers to the detailed documentation for each topic.

General concepts

What is the RidgeRun Video Stabilization Library?

The RidgeRun Video Stabilization Library is a video stabilization solution based on Electronic Image Stabilization (EIS) and Digital Image Stabilization (DIS). EIS uses motion data from an Inertial Measurement Unit (IMU), while DIS estimates camera motion directly from the video stream using optical flow.

See the library overview.

What is the difference between EIS and DIS?

Electronic Image Stabilization uses measurements from accelerometers and gyroscopes to estimate camera movement. Digital Image Stabilization estimates movement from visual information in consecutive video frames using optical flow.

See the IMU-based stabilization process and the optical-flow stabilization process.

Can the library be used for live and offline video?

Yes. The library supports live video stabilization and offline processing. The appropriate integration path depends on whether the application receives synchronized video and IMU data or estimates motion from the video stream.

See What is Video Stabilization.

Where should I start learning about video stabilization?

Start with the fundamentals, then select the EIS or DIS workflow that matches the available sensor and video data.

See Basics and Foundation.

Getting started

What is the recommended getting-started workflow?

The usual workflow is to review the supported platforms and backends, evaluate the library, obtain the required code or access, install dependencies, and build the library for the target environment.

See Getting Started.

Which platforms, sensors, and backends are supported?

The supported combinations are documented in the platform, sensor, and backend compatibility page. Check that page before selecting an integration path or preparing a custom sensor adapter.

See Supported Platforms, Sensors and Backends.

How can I evaluate the library?

Use the evaluation guide to review the available evaluation paths, requirements, dependencies, and environment setup before integrating the library into a product.

See Evaluating the Library.

How do I get the library code?

The library is a RidgeRun professional product. Follow the access instructions or contact RidgeRun to request the appropriate source or evaluation access.

See Getting the Code.

How do I build the library?

The build process covers the required dependencies, Jetson and GStreamer setup, compilation, testing, and common build issues.

See Building the Library and Jetson setup.

IMU-based stabilization

What data is required for IMU-based stabilization?

The integration requires video frames and IMU measurements with timestamps that use the same time reference. Video and sensor timestamps should be expressed in microseconds. Angular-rate measurements should use radians per second.

See Preparing the Video and Preparing the IMU Measurements.

Why are timestamps important?

Timestamps allow the library to match the camera pose with the exact moment at which each frame was captured. Incorrect or missing timestamps can produce synchronization errors and reduce stabilization quality.

See Preparing the Video and Add Support for Video Timestamps.

What is the IMU integration pipeline?

The IMU workflow prepares the video and sensor payloads, integrates the measurements into orientation data, interpolates the orientation to each frame timestamp, computes the stabilization, and applies the required image correction or undistortion.

See Library Integration for IMU, Measurement Integration, Interpolation, and Computing the Stabilization.

Which algorithms are available for IMU processing?

The documented alternatives include simple integration, VQF, Madgwick, and complementary filtering. The workflow also covers spherical linear interpolation, smoothing, and Horizon Lock.

See Stabilization Algorithms with IMU and Horizon Lock guide.

How are the video and IMU streams synchronized?

The streams must share a common timestamp reference. After the sensor orientation is estimated, the orientation is interpolated to the timestamp of each video frame. Calibration can also estimate the rotational alignment and the time offset between the camera and IMU.

See Interpolation and IMU Calibration.

Where can I find an IMU integration example?

The example application shows how the video, IMU measurements, stabilization, and image correction stages are combined in an end-to-end workflow.

See IMU Example Application.

Digital image stabilization

How does DIS estimate camera motion?

DIS estimates motion directly from the video stream using optical flow. The DigitalStabilizer combines optical-flow estimation, motion smoothing, and geometric transformations into a stabilization pipeline.

See Library Integration for DIS.

What is required to prepare frames for DIS?

The input and output frames must be converted into RVS image objects compatible with the selected backend. The documented flow prepares RGBA images and converts input frames from BGR when required by the application pipeline.

See Preparing the Frames.

Which runtime parameters are configured for DIS?

The runtime configuration can include optical-flow parameters, smoothing parameters, transformation algorithms, and backend-specific settings.

See Preparing the Runtime Settings.

Where can I find a DIS example?

The DIS example application demonstrates the frame preparation and runtime configuration required to run the Digital Stabilizer.

See DIS Example Application.

API and extensions

Where can I find the API architecture?

The API reference describes the interface-adapter architecture and the main sensor, image, allocator, settings, payload, and stabilization interfaces.

See Library Architecture.

How do I add support for a new IMU sensor?

Implement the sensor interface and create the required concrete implementation or adapter. The page explains how sensor data and timestamped payloads are exposed to the library.

See Adding New Sensors and Add Support for IMU Sensors for the GStreamer path.

How do I add a new algorithm?

Use the relevant extension guide for integration, interpolation, smoothing, optical flow, or transformation algorithms. Each extension type has its own interface and registration requirements.

See Adding Algorithms, Adding Stabilization Algorithms, Adding OpticalFlow Algorithms, and Adding Transformation Algorithms.

How do I add a new backend?

The backend guide covers custom allocators, runtime settings, backend-compatible algorithms, and image-correction functionality for hardware-accelerated implementations.

See Adding Backends.

What is the difference between the DigitalStabilizer and ElectronicStabilizer classes?

The DigitalStabilizer is associated with video-based optical-flow stabilization, while the ElectronicStabilizer is associated with IMU-assisted stabilization.

See DigitalStabilizer Class and ElectronicStabilizer Class.

Where is the generated API documentation?

The API Reference links to the generated API documentation for the library interfaces and classes.

See API Documentation.

Where can I find code examples?

The Examples Guidebook and the integration example pages provide starting points for undistortion, plotting, supported sensors, IMU integration, and DIS integration.

See Examples Guidebook.

GStreamer

Does the library support GStreamer?

Yes. RidgeRun provides GStreamer elements that expose video stabilization functionality, supported sensors, hardware acceleration, and different implementations through GStreamer pipelines.

See GStreamer.

Which GStreamer elements are available?

The GStreamer documentation covers the IMU-assisted video stabilizer, the digital video stabilizer, the analyzer element, and example pipelines.

See Video Stabilizer Element, Digital Video Stabilizer Element, Analyzer Element, and Example Pipelines.

Why are video timestamps important in a GStreamer pipeline?

The video timestamp support allows timestamps from the video source driver to be carried in buffer metadata. This timestamp information is required to align video frames with the stabilization data.

See Add Support for Video Timestamps.

How can I add a custom IMU to GStreamer?

The custom-sensor integration requires adding support for the IMU and connecting its timestamped measurements to the EIS pipeline.

See Add Support for IMU Sensors.

How can I measure stabilization quality?

The analyzer element is intended to quantify stabilization performance using metrics such as T-SSIM and pixel jitter.

See Analyzer Element.

Calibration and tuning

What is the recommended calibration sequence?

The recommended sequence is pattern preparation, camera calibration, IMU orientation calibration, timestamp-offset calibration, and stabilizer tuning.

See Calibration Process.

Why is camera calibration required?

Camera calibration estimates the camera intrinsics and distortion parameters needed to map rotations into the pixel-space reference system and correct the image geometry.

See Camera Calibration.

What does IMU calibration determine?

IMU calibration determines the orientation of the IMU relative to the camera and estimates the time delay or lag between the camera and sensor streams.

See IMU Calibration.

How do I tune the stabilizer?

Tuning evaluates the trade-off between stabilization strength, crop, smoothness, latency, and motion responsiveness. The final settings should be validated with representative live or recorded video.

See Tuning.

What calibration pattern should I use?

The calibration workflow documents a checkerboard with 6x9 inner corners and 25 mm squares. The pattern should remain flat and be captured across different positions, scales, and orientations.

See Camera Calibration.

Hardware, performance, and deployment

Which hardware acceleration options are available?

The library overview identifies OpenCV, CUDA, and SIMD CPU instructions as hardware-acceleration paths. The supported-platform documentation should be checked for the target-specific combinations.

See Library overview and Supported Platforms, Sensors and Backends.

Where can I find sensor setup instructions?

Setup pages are available for the BMI160 and ICM42688 sensors.

See BMI160 Setup and ICM42688 Setup.

Where can I find performance information?

Use the performance page for the available performance-related measurements and guidance.

See Performance.

Can the library be built with Yocto?

The Useful Links section includes a Yocto build guide for integrating the library into a Yocto-based embedded Linux workflow.

See Build with Yocto.




Cookies help us deliver our services. By using our services, you agree to our use of cookies.