一个针对GoPro5以上防抖运动相机的开源视频防抖后期处理软件：ElvinC/gyroflow: Video stabilization using IMU motion data from internal or external logs (github.com)
Gyroflow – Video stabilization using gyroscope data targeting drone footage
A program built around Python, OpenCV, and PySide2 for video stabilization using gyroscope data.
The project consists of three core parts: A utility for the generation of lens undistortion preset, a utility for stabilizing footage using gyro data, and a utility for stretching 4:3 video to 16:9 using non-linear horizontal stretching (similar to GoPro’s superview).
The main goal of creating something that can stabilize footage based on blackbox gyro data has mostly been achieved. Moving forwards, more work will be done to improve the quality of the result.
The launcher containing all the utilities is available by executing
gyroflow.py if all the dependencies are met. Otherwise a binary can be found over in releases. Also, check out the wiki where there’s some more information about the camera calibration and video stabilization process.
Run using python and Poetry:
Note: Try the dev branch for the newest features.
- Install poetry
- Clone or download the files from this repo
- Navigate to the folder using a commandline and install dependencies using
- Run the application using
poetry run python gyroflow.py
Other things to check out:
- BlackboxToGPMF by Cleric-K and Attilafustos. Tool for adding GoPro metadata and blackbox data to non-GoPro cameras for use with Reelsteady GO. Initial discussion here.
- blackbox2gpmf by Jaromeyer. Tool for adding blackbox gyro data to Hero 7 files for Reelsteady Go.
- Discord server maintained by Nicecrash for discussion about gyroflow, BlackboxToGPMF, blackbox2gpmf and other related projects.
- FPV Stabilization Tools Facebook group maintained by Attilafustos.
General recording tips
- Use the settings that give the widest possible field of view (more data to work with). For a lot of cameras, this is in the 4:3 aspect ratio.
- If using the main drone flight controller for logging, the camera should be hardmounted.
- If using a secondary logger on the camera or internal camera logging, some soft mounting is preferred to isolate vibrations.
- Videoplayer based on OpenCV and Pyside2
- Gyro integration using quaternions
- Non-linear stretch utility
- Basic video import/export
- Camera calibration utility with preset import/export
- GoPro metadata import
- Symmetrical slerp-based quaternion low-pass filter
- Blackbox data import
- Undistort and rotation perspective transform
- Semi-automatic temporal gyro/video sync.
- Blackbox orientation handling and wide interval sync.
- Stabilization UI without video player
- (Basic) gyro orientation presets for GoPro cameras
- Frame blending timelapse/hyperlapse
- Automatic determination of required crop
- Native support for insta360 gyro
- Support for high speed video
- GoPro/Insta360 as gyro logger for cinema cameras.
- Basic prores import/export through ffmpeg
- Modular/improved smoothing methods
- Support for non-square pixel aspect ratios
- Incorporate acceleration data in orientation estimation for horizon lock
- Audio handling
- .gyroflow file with synced data