A MATLAB-based application for viewing and recording video from a Basler camera, using ffmpeg for video compression.
- Real-time video preview with zoom functionality (mouse scroll).
- Recording and compression using
ffmpeg. - Adjustable camera settings (frame rate, exposure time).
- Reference lines for better alignment.
This application relies on:
- MATLAB Image Acquisition Toolbox
- FfmpegVideoWriter by Rotem (2021)
- ffmpeg.exe for video compression
Before running the application, you must provide a .conf file specifying user settings. The file should contain:
- Path to
ffmpeg.exe(e.g.,C:\FFmpeg\bin\ffmpeg.exe) – No quotation marks required. - Bitrate for video compression (default:
20). - (Optional) Custom ffmpeg command – Refer to ffmpeg documentation for details.
Defines the paths and compression settings required for the application.
- Implements the core functionality of video acquisition.
- Supports zooming (mouse scroll), reference lines, and camera adjustments (frame rate, exposure time).
- Demonstrates how to use
GUIRecordwith a Basler camera.
- Install
ffmpegand ensureffmpeg.exeis accessible. - Create a
.conffile with the required settings. - Run
BaslerApp_code.min MATLAB.
This project is licensed under the MIT License.