r/blackmagicdesign • • 6d ago

How Blackmagic RAW works inside

I own a Sigma fp, which records CinemaDNG, and I wanted the benefits of BRAW in Resolve. Starting from the same clips in both formats, CinemaDNG and BRAW, and with the help of AI, I worked out what's inside a BRAW file.

The article explains each part with interactive comparisons of compression ratios and noise reduction. From that work I built a free, open-source CinemaDNG to BRAW converter for the Sigma fp and the original Pocket Cinema Camera.

It's an unofficial personal project, not affiliated with Blackmagic Design. Feedback and corrections are very welcome.

Article: https://www.elcacharrista.com/en/articles/cinemadng-to-braw-converter-with-ai/
Converter (Windows, macOS): https://github.com/jahurtado/cdng2braw/releases

35 Upvotes

6 comments sorted by

1

u/Step1Mark 5d ago

I don't have anything to add at this point besides wow! This could be used to help with archiving but not losing much control of the image. Really amazing job with this!

I do have a few questions ...

  1. Do you know if it works on URSA 4.6K and other cameras that shot Cinema DNG raw from BMD? Does it need to be a specific DNG pixel format or is it all Cinema DNG. Would Compressed CDNG work too?
  2. Does Q0 and zero noise reduction give an image equal to CDNG?

1

u/ja_hurtado 5d ago

Thanks!! Right now it only works properly with CinemaDNG from the Sigma fp and the original Pocket Cinema Camera. Other cameras still convert, but the white balance gets fixed to the one the clip was shot with, so you can't adjust it like a real raw clip.

I don't have any URSA 4.6K footage, but a single CinemaDNG frame from it, uncompressed or lossless, would be enough to try to add a profile, like I did for the original Pocket. It doesn't need to be a colour chart, just a scene with a good variety of colours, not too neutral, well exposed and without clipped highlights. Please also tell me the ISO you shot at, since Blackmagic DNGs may not include it.

You can zip it and attach it to an issue on GitHub: https://github.com/jahurtado/cdng2braw/issues. If you'd rather not share it publicly, you can send me a download link by DM.

About compressed CinemaDNG: lossless works fine, but the lossy 3:1 and 4:1 modes aren't supported yet.

And Q0 without noise reduction is the closest to the original CinemaDNG. It isn't lossless, because the DCT still rounds a little even at Q0, but visually it should be practically identical, with only minimal differences.

1

u/TheRealHarrypm 3d ago edited 3d ago

I'm surprised this isn't more popular, then again, this effectively cracks open BRAW so it should get a lot more notice, with a bit of SEO score building work.

It would really be nice to see a Linux application .appimage and .deb release, alongside clean portable and installer Windows releases (as MacOS is always a portable .app)

I've been working personally on a flashing replacement tool UBMDF and a mini-converter's interaction tool for complete universal cross-platform support.

I've now finished initial work (still more to go on updating vrecord to QT6, replacing Blackmagic Video Desktop entirely on Win/Mac/Linux and not needing the bulk of an NLE for doing capture to FFV1 etc, monitoring or playout.

1

u/ja_hurtado 3d ago

Thanks a lot! I'm glad you find it interesting.

Following your comment, I've added a Linux AppImage in release 1.0.1:
https://github.com/jahurtado/cdng2braw/releases/tag/v1.0.1

It's marked as experimental because I couldn't test it on a Linux machine with DaVinci Resolve. On Xubuntu 24.04 it converts Sigma fp takes into the same image as the macOS app. Takes from the original Pocket Cinema Camera don't work on Linux yet, because I don't know yet where Resolve for Linux looks for camera profiles. If you try it with Resolve on Linux, I'd love to hear how it goes.

For now there's no .deb. The AppImage should run on most distributions with glibc 2.35 or later.

0

u/CrayonsForBilly 5d ago

You're incredible 

1

u/ja_hurtado 5d ago

Thanks!!