Log in

View Full Version : Indexing .braw file


FranceBB
12th April 2019, 21:46
Hi,
I'm trying to index the BlackMagic Raw Codec, which basically is a lossy video codec with PCM audio muxed in ".braw".
Inside the .braw, I can see a PCM audio file and a brlt video file which is supposed to be a 4K file shot in RGB, log as color curve, 12bit, at 23.976fps.

Sample1: Link (https://downloads.blackmagicdesign.com/products/blackmagicursamini/blackmagicraw/Blackmagic_RAW_Note_Suwanchote_Wedding_Dancing.zip)
Sample2: Link (https://downloads.blackmagicdesign.com/products/blackmagicursamini/blackmagicraw/Blackmagic_RAW_Note_Suwanchote_Wedding_Portrait.zip)
Sample3: Link (https://downloads.blackmagicdesign.com/products/blackmagicursamini/blackmagicraw/Blackmagic_RAW_Note_Suwanchote_Wedding_Writing.zip)

This is what MediaInfo says:

General
Complete name : C:\Encoding\A056_08251956_C074.braw
Format : QuickTime
Format/Info : Original Apple specifications
File size : 711 MiB
Duration : 20 s 270 ms
Overall bit rate mode : Variable
Overall bit rate : 294 Mb/s
Encoded date : UTC 2018-09-13 09:28:36
Tagged date : UTC 2018-09-13 09:28:36
Writing library : Apple QuickTime
camera_type : Blackmagic URSA Mini Pro 4.6K
tone_curve_video_black_level : Unknown kind of value!
viewing_bmdgen : Unknown kind of value!
viewing_gamma : Blackmagic Design Extended Video
viewing_gamut : Blackmagic Design
crop_origin : Unknown kind of value!
crop_size : Unknown kind of value!
braw_compression_ratio : 12:1
manufacturer : Blackmagic Design
camera_id : 7860b0bc-64aa-416b-919a-fdef19fb483c
lut_name : ForEVERHook.cube
aspect_ratio : 2.35:1
firmware_version : 6.0
clip_number : A056_08251956_C074
reel_name : 56
scene : 1
take : 99
good_take : false
environment : interior
day_night : day
camera_number : A
FileExtension_Invalid : mov qt

Video
ID : 1
Format : brlt
Codec ID : brlt
Duration : 20 s 270 ms
Bit rate mode : Variable
Bit rate : 291 Mb/s
Width : 4 608 pixels
Height : 4 608 pixels
Display aspect ratio : 1.000
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Bits/(Pixel*Frame) : 0.572
Stream size : 704 MiB (99%)
Language : English

Audio
ID : 2
Format : PCM
Format settings : Little / Signed
Codec ID : in24
Duration : 20 s 270 ms
Bit rate mode : Constant
Bit rate : 2 304 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Bit depth : 24 bits
Stream size : 5.57 MiB (1%)
Language : English

Other
ID : 3
Type : Time code
Format : QuickTime TC
Duration : 20 s 270 ms
Time code of first frame : 19:56:54:05
Time code, striped : Yes
Language : English


Using MKVMerge (MKVToolnix) I managed to remux it to .mkv

https://i.imgur.com/UD6pXRE.png

however when I tried to extract the video stream only with MKVExtract it failed:

https://i.imgur.com/KYVsaOx.png

I tried to index both the remuxed mkv and the original .braw file and both ffms2 and LWLibav I tried to DirectShowSource as well, but I don't have any codec for .braw files, so it clearly failed to open it (just like MPC-HC, PotPlayer and MPV):

https://i.imgur.com/YI5BxIP.png
https://i.imgur.com/Io7HPmQ.png
https://i.imgur.com/W4YMMbl.png

I tried with ffplay.exe with the latest build ffmpeg-20190411-3e10223 but it failed:

https://i.imgur.com/8yLY6Ia.png

Of course, I could just use their proprietary player and play it and I can also import the files in Davinci Resolve and export them, but I was wondering whether there's support for Avisynth or ffmpeg.
This is their SDK, so it shouldn't be so hard to make a decoder in the future: Link (https://www.blackmagicdesign.com/uk/support/latest-download/braw-sdk/windows)

Thank you in advance,
Frank.

kolak
12th April 2019, 23:42
It's new BlackMagic RAW format. No open source tool supports it as far as I know.

FranceBB
12th July 2024, 09:50
For those that are still interested, finally there's an Avisynth indexer for Blackmagic Raw files. See here: https://forum.doom9.org/showthread.php?p=2004137

BRawSource("A004_10040638_C001.braw", bits=32)

works.

https://i.imgur.com/ZJuXobt.png