Skip to content
davewalker5Public

About

A Python desktop app for enhancing, stabilising, converting and preparing underwater action-camera footage using FFmpeg

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

Repository files navigation

GitHub issues Releases License Language GitHub code size in bytes

Overview

ReefFrame is a Python desktop application for preparing, enhancing and processing underwater action-camera footage using FFmpeg.

Background

ReefFrame grew out of a collection of Bash scripts developed to process GoPro footage recorded while snorkelling in the Maldives. Underwater filming presents some particular challenges: reduced contrast, muted colours, suspended particles, changing light conditions and camera movement can all affect the quality of the resulting footage.

The original scripts were developed to address some of these problems, as well as to handle more routine tasks such as format conversion, file-size reduction and extracting still images from video.

As the collection of scripts grew, so did the need for a more convenient and consistent way to use them. ReefFrame brings these operations together in a graphical desktop application, with configurable processing parameters, reusable presets and support for processing individual files or entire folders.

Although developed around GoPro snorkelling footage, ReefFrame is not tied to any particular camera and may be useful for other underwater video recordings.

What ReefFrame Does

ReefFrame provides a graphical interface for several common video-processing operations:

Operation Description
Enhancement Pipeline Select and combine stabilisation, dehazing, colour correction, gamma and shadow adjustments, contrast enhancement and file-size reduction in a configurable workflow
Convert MOV to MP4 Convert MOV recordings to MP4
Dehaze Adjust contrast and brightness to improve the appearance of underwater footage
Colour Correction Adjust red, green and blue channel gains to reduce unwanted colour casts
Gamma Correction and Shadow Uplift Adjust midtones and selectively brighten darker regions while limiting changes to highlights
Contrast Enhancement Adjust video contrast independently of the enhancement pipeline
Stabilise Reduce unwanted camera movement using FFmpeg's two-pass video stabilisation filters
Reduce Size Compress MP4 recordings to reduce file size
Extract a Frame as a Still Image Capture individual frames from video recordings as PNG images
Convert to Animated GIF Convert short video clips into animated GIFs

The enhancement pipeline allows users to choose which processing stages to apply and configure their settings in one dialog. Selected stages run in a fixed order, with a single final video encode rather than separate encoded files for each stage. When stabilisation is selected, a separate motion-analysis pass is also required.

Processing parameters can be adjusted through per-operation settings dialogs and saved as reusable JSON presets. ReefFrame also remembers the last-selected pipeline stages, pipeline settings and standalone operation settings between sessions, as well as the last directory used for loading or saving presets.

Operations can be applied to individual recordings or batches of files, with progress reporting and error handling. Manual MP4 output filenames are given a .mp4 extension when needed.

The application uses FFmpeg as its processing engine, including the additional stabilisation capabilities provided by builds incorporating libvidstab.

What ReefFrame Doesn't Do

ReefFrame is not intended to be a general-purpose video editor. It does not provide a timeline, clip sequencing, transitions, audio editing or the other facilities normally associated with a full video-editing application.

Nor does it attempt to perform sophisticated underwater image restoration. Its dehazing, colour correction and tonal enhancement operations use conventional image adjustments rather than algorithms that physically model and reverse the effects of light absorption and scattering underwater. They can improve the appearance of footage, but cannot recover detail that was never captured.

Similarly, stabilisation can reduce unwanted movement, but cannot eliminate every camera shake or compensate for severe motion blur.

ReefFrame does not include facilities for publishing videos to social media or other online services. It concentrates on preparing and improving footage, leaving subsequent editing, presentation and publication to other tools.

Design Philosophy

ReefFrame is deliberately focused on doing a relatively small number of useful things well.

It provides a convenient, repeatable way to process underwater recordings without requiring users to construct FFmpeg commands themselves, while retaining control over the processing parameters.

Getting Started

Please see the Wiki for the user guide, controls and further details.

Authors

  • Dave Walker - Initial work

Feedback

To report an issue or suggest an improvement, please use the project's GitHub Issues page.

License

This project is licensed under the MIT License — see the LICENSE file for details.

About

A Python desktop app for enhancing, stabilising, converting and preparing underwater action-camera footage using FFmpeg

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages