SK-Hardwired / xavc_rtmd2srt

Extract real time meta-data and GPS tracks from Sony XAVC video
38 stars 7 forks source link
camera-settings dashboard dsc export extract fdr gps gps-data gpx ilce metadata parser per-frame realtime sony sony-xavc-video srt-subtitles video xavc xavc-s

XAVC S video real-time meta-data parser and GPS data extractor

Extract realtime meta-data (i.e. per-frame) from Sony XAVC video and render to srt subtitle file.

Extract GPS data (if video shot on GPS or Bluetooth-link enabled Sony camera) and extract to GPX file.

New! Extract raw per-frame gyro/accelerometer data from video clips recorded with DSC-RX100M7 and DSC-RX0M2 cameras

alt text

Besides of non-realtime metadata which MediaInfo or Exiftool can see, Sony cameras record many other real-time meta-data for every frame such as it's ISO, F number, shutter speed, AE mode and even focus distance in special Acquisition Meta-data section.

Looks like this feature partially inherited by XAVC S from professional Sony XAVC codec and MXF container.

This tool tries to extract this meta-data from XAVC S (MP4) file and create SRT subtitle file near the video file. When opened in VLC or whatever, it can be viewed and you can see the settings of camera for every frame of video in real time.

alt text

If video file has embedded GPS data (for example, Sony Action Cam record with built-in GPS or ILCE/RX with Bluetooth GPS link option used) you can extract GPS track to GPX. You may use it with GPS visualization apps/services to see your travel or with dashboard-overlay video editors to have nice gauges in your videos.

Meta-data supported:

Meta-data not supported (as no any existing consumer camera models record it):

Windows x64 executable available (see zip file in files list). Usage: as any console app, accepts 1 required argument (full video file path or just file name if in the same folder) Example: rtmd2srt.exe D:\Video\C0035.MP4

Optional arguments:

Note: Works well with Sony ILCE-9/7RM3/7M3, DSC-RX10M4, FDR-AX700, ILCE-6000, ILCE-5100 videos. GPS export works well with DashWare editor

Written in: Python 3.7 Required modules:

Reference: EBU - Tech 3349 EBU Acquisition Technical Metadata Set

Appendix (pg.70) of Sony CineAlta F65 manual