Skip to content

Instantly share code, notes, and snippets.

View markreidvfx's full-sized avatar

Mark Reid markreidvfx

View GitHub Profile
@vicnaum
vicnaum / mxf.py
Last active April 1, 2017 04:25
Extracts lens Focal Length metadata from Canon C300 MXF files. Put the search dir in "rootdir" variable, where the MXF files are located (can be in subdirs also). Outputs "output.txt" with ShotName / FocalLength range tabulated values on each line.
import sys
import struct
import os
rootdir = "D:/MXF_Day1_Shots"
# MXF Keys
MXF_KEYS = {
'\x06\x0E\x2B\x34\x02\x43\x01\x01\x0D\x01\x03\x01\x04\x01\x02\x02' : 'FRAME'
}