A Python-based command-line tool for converting single or batch video files (DJI D-Log-M or general formats) to Rec.709 or other color spaces using 3D LUTs (.cube).
- Interactive CLI menu
- Converts DJI Osmo Pocket 3 D-Log-M footage to Rec.709
- Supports custom LUTs for general videos
- Batch and single-file conversion
- LUT is only downloaded once and reused
- Preserves original FPS (uses
ffprobeto detect FPS) - Skips files that have already been converted
- Supports
.mp4,.mov,.mkv,.avi,.mxf,.webm - Flexible output options:
- Save with
converted_prefix in original folder - Save to a
converted/subfolder - Specify a custom output folder
- Save with
- Python 3.7+
- FFmpeg (must be accessible via system PATH)
- FFprobe (must be accessible via system PATH)
- Clone this repository:
git clone https://github.com/XDcobra/dji_osmo_batch_convert_LUT.git
cd dji_osmo_batch_convert_LUT
- Install dependencies (optional – standard library is enough):
pip install -r requirements.txt
- Ensure FFmpeg & FFprobe is installed and added to your PATH:
ffmpeg -version
ffprobe -version
Simply run the main script:
python main.py
You will be prompted with an interactive menu:
1) Convert DJI Osmo Pocket 3 D-Log-M to Rec.709
2) Batch Convert DJI Osmo Pocket 3 D-Log-M to Rec.709
3) Convert General Video (with custom LUT)
4) Batch Convert General Videos (with custom LUT)
0) Exit
Follow the prompts to select input files/folders, LUTs, and output options.
- Choose option
1 - The DJI LUT will be downloaded automatically if missing
- Select a video file
- Choose output location
- Done – FFmpeg will convert your file to Rec.709
- Drag & drop support
- GUI version (e.g. with PyQt)
- Support for
.movto.mp4conversion - Option to adjust FFmpeg parameters (e.g. CRF, codec)
MIT License
- DJI Osmo Pocket 3 LUT: DJI Official Download
- Powered by FFmpeg