# Linux - extract metadata from Original Camera Files (OCF)

**URL:** https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283
**Category:** Tools and Tech
**Tags:** python, metadata, ocf, cli
**Created:** [February 19, 2025, 1:35am UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283 "2025-02-19T01:35:06Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)
#### Post date: [February 19, 2025, 1:35am UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/1 "2025-02-19T01:35:06Z")

</div>

Anyone knows if there is Linux equivalent to Sony Raw Viewer CLI to extract metadata from Venice2 footage?  
Sony Raw Viewer seems only avail for mac and windows

> **[Software: RAW Viewer V5.0 | Sony USA](https://www.sony.com/electronics/support/software/00339639)**

Also, what would you use to read from Arri (ari mxf lib?) and Red (redline CLI?)

---

<div class="post-metadata">

### Author: ![milanesa](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@milanesa](https://forum.logik.tv/u/milanesa)
#### Post date: [February 19, 2025, 9:26am UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/2 "2025-02-19T09:26:03Z")

</div>

Resolve?

---

<div class="post-metadata">

### Author: ![finnjaeger](https://avatars.discourse-cdn.com/v4/letter/f/e99b99/32.png) [@finnjaeger](https://forum.logik.tv/u/finnjaeger)
#### Post date: [February 19, 2025, 11:43am UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/3 "2025-02-19T11:43:18Z")

</div>

resolve is the way, they can extract pretty much all metadata just fine.

---

<div class="post-metadata">

### Author: ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)
#### Post date: [February 19, 2025, 6:12pm UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/4 "2025-02-19T18:12:09Z")

</div>

Sorry I should have given more details.  
I need something either CLI (triggered with python) or python. I need to Extract the metadata data and inject it somewhere else, (database, .exr transcodes …)

---

<div class="post-metadata">

### Author: ![milanesa](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@milanesa](https://forum.logik.tv/u/milanesa)
#### Post date: [February 19, 2025, 7:28pm UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/5 "2025-02-19T19:28:40Z")

</div>

I dont know of any (non propietary) CLI tool, but you can probably still use Resolve for it. You could add each clip as a job to create EXRs with all metadata. From there you can parse the EXR metadata in a variety of ways.  
You could even try using the post render script option in the Job properties to trigger whatever actions you need, so everything is contained within Resolve. And distribute it all in a Resolve farm.

In theory could just stay in the media pool and extract metadata with the API, but not sure if all Metadata Keys are exposed.

---

<div class="post-metadata">

### Author: ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)
#### Post date: [February 19, 2025, 10:43pm UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/6 "2025-02-19T22:43:25Z")

</div>

Thanks @milanesa, sounds interesting as an alternative workflow.  
As it is now, I need a script that works from Flame.

Are ARRI, RED (etc.) SDKs part of the Flame install? If yes, I wish they were exposed to the Flame API. Who knows, maybe the Arri mxf lib is already there somewhere?

---

<div class="post-metadata">

### Author: ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)
#### Post date: [February 19, 2025, 10:58pm UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/7 "2025-02-19T22:58:29Z")

</div>

I just compared what metadata we see between Arri Reference Tool and Resolve, seems close, but the shutter angle is wrong in resolve with some off Arri’s sample footage (A\_0001C026\_220824\_064815\_a12SQ.mxf) (shows 0 instead of 172.8)

---

<div class="post-metadata">

### Author: ![milanesa](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@milanesa](https://forum.logik.tv/u/milanesa)
#### Post date: [February 19, 2025, 11:11pm UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/8 "2025-02-19T23:11:56Z")

</div>

You could also try Nuke, if you have it available. Not sure if Pybox will be able to help here.

---

<div class="post-metadata">

### Author: ![philm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/philm/32/9286_2.png) [@philm](https://forum.logik.tv/u/philm)
#### Post date: [February 20, 2025, 12:14am UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/9 "2025-02-20T00:14:07Z")

</div>

Thanks @Stefan for the wednesday rabbit hole.

I downloaded:

[ARRI Reference Tool 0.3.0 (CMD) for Red Hat Enterprise Linux 8](https://www.arri.com/resource/blob/390194/7cc3c8519caff912ef37380d72b8ba21/arrireferencetool-cmd-rhel8-gcc85-x64-tar-data.gz)

and

[ARRI\_Helen\_John\_ALEXA\_35\_ARRIRAW.mxf](https://f.io/EM4ytAGj)

```auto
$ ./art-cmd export \
  --input ARRI_Helen_John_ALEXA_35_ARRIRAW.mxf \
  --output ARRI_Helen_John_ALEXA_35_ARRIRAW.art-cmd_metadata.json

```

This created 2.8MB of json - the correct quantity to crash most basic text editors.

I also tried ffprobe which is part of ffmpeg

```auto
$ sudo dnf install -y ffmpeg
$ ffprobe \
  -show_format \
  -show_streams \
  ARRI_Helen_John_ALEXA_35_ARRIRAW.mxf > \
  ARRI_Helen_John_ALEXA_35_ARRIRAW.ffprobe_metadata.txt

```

This amounts to only a few lines.

I think ffprobe will work on any Material Exchange Format but I haven’t worked out how to mine the same quantity of metadata as the ART tool.

I’ll try harder.

And it was great to see you last week.

---

<div class="post-metadata">

### Author: ![philm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/philm/32/9286_2.png) [@philm](https://forum.logik.tv/u/philm)
#### Post date: [February 20, 2025, 12:45am UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/10 "2025-02-20T00:45:23Z")

</div>

ohhhhh - the ARRI json is a thing of beauty - incredibly well documented and formatted - the large payload was the 3d LUT.

I stripped it out and pulled just the metadataset names and URIs (yep they document how the metadata should be processed and formatted).

Here’s the relevant information so that you can go hunt down their various schema, and discover how to filter the extracted metadata for exactly what you want.

[ARRI\_metadata\_sets.zip](https://forum.logik.tv/uploads/short-url/5clkD4xurPy53bOlPOhDgJ1lQFQ.zip) (730 Bytes)

fueled by this discovery i’ll look a bit deeper into ffprobe and see if I can extract any of the same level of detail (most likely not)

---

<div class="post-metadata">

### Author: ![philm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/philm/32/9286_2.png) [@philm](https://forum.logik.tv/u/philm)
#### Post date: [February 20, 2025, 2:26am UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/11 "2025-02-20T02:26:38Z")

</div>

here is a shell script to download the various schema for analysis and inclusion in other programs.

you can use these schema to isolate the kind of data that you might want to extract and process - e.g. add gps and position data into an openEXR file.

[download\_ARRI\_json\_schema.zip](https://forum.logik.tv/uploads/short-url/cdsJoZfnQWqQq98SJQg6pXoRfoU.zip) (1.8 KB)

---

<div class="post-metadata">

### Author: ![philm](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/philm/32/9286_2.png) [@philm](https://forum.logik.tv/u/philm)
#### Post date: [February 20, 2025, 2:44am UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/12 "2025-02-20T02:44:13Z")

</div>

ooof - [the sony site](https://scs.custhelp.com/app/answers/detail/a_id/5215/kw/Announcement) reports:

**Announcement**  
**Published 02/29/2024 12:34 AM | Updated 03/28/2024 05:25 AM**  
**NOTICE**

_Thank you very much for your continued support and patronage of Sony products._  
_We would like to inform you that the download page for the following software utilities on the Sony Creative Software website has been discontinued as of March 31, 2024._

_-Content Manager_  
_-Optical Disc Archive Software_  
_-Optical Disc Archive File Manager2_  
_-RAW Viewer_  
_-AXSM Drive Utility_  
_-SRMemory Drive Software_  
_-SxS Device Driver_  
_-SxS UDF Driver_  
_-Memory Media Utility_  
_-XDCAM Drive Software_  
_-Wireless Studio_

---

<div class="post-metadata">

### Author: ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)
#### Post date: [February 20, 2025, 7:04am UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/13 "2025-02-20T07:04:17Z")

</div>

@philm, you’re very welcome my friend, always happy to keep you busy!  
Good time last week for sure my friend!  
Simple tools like ffmpeg or exiftool would be great if we could get all the VFX pipelines relevant data, like complete sensor, cam settings, lenses, roll and pitch (maybe depth … etc.) info … not giving this on basic tries though.  
Nice find with the ART cmd json stuff! I’ll look into it in the morning. I might call you if that’s ok …  
to be continued …

---

<div class="post-metadata">

### Author: ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)
#### Post date: [February 20, 2025, 7:06am UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/14 "2025-02-20T07:06:40Z")

</div>

and then same thing goes for Red, Sony, Pana …

---

<div class="post-metadata">

### Author: ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)
#### Post date: [February 20, 2025, 7:19am UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/15 "2025-02-20T07:19:19Z")

</div>

> [@milanesa](#):
>
> You could also try Nuke, if you have it available. Not sure if Pybox will be able to help here.

@milanesa good idea, I’ll have a look tomorrow to compare what nuke’s tools give, but not planing on using nuke as a processing intermediate on this one.

---

<div class="post-metadata">

### Author: ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)
#### Post date: [February 20, 2025, 7:24am UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/16 "2025-02-20T07:24:34Z")

</div>

> [@philm](#):
>
> …tadataset names and URIs (yep they document how the metadata should be processed and formatted).Here’s the relevant information so that you can go hunt down their various schema, and discover how to filter the extracted metadata for exactly what you want. (730 Bytes)fueled by this discovery i’ll look a bit deeper into ffprobe and see if I can extract any of the same level of detail (most likely not)

Thanks for this too. iI’s gonna be a busy Thursday …

---

<div class="post-metadata">

### Author: ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)
#### Post date: [February 20, 2025, 7:42am UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/17 "2025-02-20T07:42:13Z")

</div>

> [@philm](#):
>
> here is a shell script to download the various schema for analysis and inclusion in other programs.
> 
> you can use these schema to isolate the kind of data that you might want to extract and process - e.g. add gps and position data into an openEXR file.
> 
> (1.8 KB)

sound very interesting, will look tomorrow, ty

---

<div class="post-metadata">

### Author: ![Stefan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/stefan/32/631_2.png) [@Stefan](https://forum.logik.tv/u/Stefan)
#### Post date: [February 20, 2025, 7:43am UTC](https://forum.logik.tv/t/linux-extract-metadata-from-original-camera-files-ocf/12283/18 "2025-02-20T07:43:42Z")

</div>

> [@philm](#):
>
> …oducts.We would like to inform you that the download page for the following software utilities on the Sony Creative Software website has been discontinued as of March 31, 2024.-Content Manager-Optical Disc Archive Software-Optical Disc Archive File Manager2-RAW Viewer-AXSM Drive Utility-SRMemory Drive Software-SxS Device Driver-SxS UDF Driver-Memory Media Utility-XDCAM Drive Software-Wireless Studio

ouch, hope it’s replaced by better stuff.
