🏗️Command Line (CLI)
Gyroflow has a CLI interface for usage in scripts and automating workflows.
You can also use Gyroflow as a command line program, in order to automate some tasks in scripts.
Most common usage will be to provide a video file and render the stabilized video. You can simply call Gyroflow.exe YOUR_FILE.mp4 to do that in case of sync-less files, or also add --preset YOUR_PRESET.gyroflow to apply any settings and/or lens profile you want.
CLI can also render from a project file.
One of more interesting CLI features is a watch folder, which can be used to automatically stabilize all new footage copied to that specified folder. You can simply run Gyroflow.exe --watch C:\MY_FOOTAGE\ and it automatically stabilize any new video files that appear in that folder. Since Gyroflow 1.7.0, files that are still being copied are processed only when they're complete, and one bad file no longer stops the queue.
The output settings are passed with -p. Run Gyroflow.exe --help to see all the keys and their values. For example, to export AV1 and keep the original audio: -p "{ 'codec': 'AV1', 'audio_codec': 'Copy' }".
Optical correction
Since Gyroflow 1.7.0, the CLI can also measure the camera motion from the video before rendering, like Optical correction in the app:
--optical-correction 50- corrects the motion data with the motion measured from the video, with this strength in %. Files without motion data get all of their motion measured from the video.--ignore-file-motion- ignores the motion data in the files, and measures all of the motion from the video.--optical-per-frame- corrects the motion data once per frame instead of per band of rows, e.g. for a global shutter camera, or when the rolling shutter time is unknown.--optical-tracking dis- uses the DIS dense optical flow instead of KLT (the default), for low texture like sky or water. It's slower.
The last three options enable --optical-correction as well.
Exit codes
Since Gyroflow 1.7.0, the CLI returns an exit code you can check in your scripts:
0- success1- render failure2- invalid arguments
All options
Last updated