https://github.com/jip-hop/auto-white-balance-dng-sequences-on-macos
A MacOS Finder Workflow to Auto White Balance CinemaDNG sequences. Useful for converted Magic Lantern RAW footage (MLV).
https://github.com/jip-hop/auto-white-balance-dng-sequences-on-macos
auto-white-balance awb awb-generation canon cinema cinema-dng cinemadng davinci-resolve dng dng-files macos magic-lantern mlv raw raw-video white-balance
Last synced: 8 months ago
JSON representation
A MacOS Finder Workflow to Auto White Balance CinemaDNG sequences. Useful for converted Magic Lantern RAW footage (MLV).
- Host: GitHub
- URL: https://github.com/jip-hop/auto-white-balance-dng-sequences-on-macos
- Owner: Jip-Hop
- License: gpl-2.0
- Created: 2020-08-16T19:10:02.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-18T12:47:12.000Z (about 5 years ago)
- Last Synced: 2025-01-21T06:26:56.583Z (10 months ago)
- Topics: auto-white-balance, awb, awb-generation, canon, cinema, cinema-dng, cinemadng, davinci-resolve, dng, dng-files, macos, magic-lantern, mlv, raw, raw-video, white-balance
- Language: Shell
- Homepage:
- Size: 965 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Auto-White-Balance-DNG-Sequences-on-MacOS
A MacOS Finder Workflow to Auto White Balance CinemaDNG sequences. Useful for converted Magic Lantern RAW footage (MLV).
## Installation
Download [the repository as a zip file](https://github.com/Jip-Hop/Auto-White-Balance-DNG-Sequences-on-MacOS/archive/master.zip), unzip and install `DNG White Balance.workflow`. It will be added to the `Quick Actions` and `Services` section when right clicking a folder (or multiple Folders) in the Finder. You don't need the `awb.sh` script, it's embedded within `DNG White Balance.workflow`.
## Usage
In the Finder, select folders with CinemaDNG sequences exported from e.g. [MLV App](https://github.com/ilia3101/MLV-App). Right click and choose `DNG White Balance` in the `Quick Actions` or `Services` dropdown. Accept to install the dependencies if asked, and wait for the processing to finish.
## Why
I shoot with my EOS M, with Magic Lantern, in Auto White Balance mode. But the AWB values aren't stored in the MLV clips. Since it's RAW video, it's possible to do white balancing in post production without quality loss. But since I don't manually white balance in camera, and AWB values aren't applied, the white balance for all of my shots is way off and manual correction takes a lot of time. This workflow quickly gives me a way better starting off point and I don't need to tweak the white balance as much in DaVinci Resolve.
## How
From each DNG sequence, 8 frames are analysed with [dcraw](https://www.dechifro.org/dcraw/). These AWB values are averaged into a single estimate white balance for the entire sequence. This value is then applied to all the frames in the sequence using [exiv2](https://www.exiv2.org).
## Porting
The `awb.sh` script contains the core functionality. It expect the path to a text file, which contains the paths of folders to process on each line. It should be relatively easy to port to Linux (remove the part about installing dependencies with brew and install the dependencies manually). Probably would work under the Windows Subsystem for Linux too.
## Thanks to
[Danne](http://github.com/dannephoto) and everyone credited in the [Switch](https://www.magiclantern.fm/forum/index.php?topic=15108.0) project. They figured out how to Auto White Balance DNG sequences with Switch. It does much more too, I recommend you check it out. I ported the AWB portion of Switch into this Workflow, so anyone can apply AWB to DNG sequences, regardless of which tool or camera was used to make the DNG files.