BRAW Player for Win

Do you have questions about Desktop Video, Converters, Routers and Monitoring?
  • Author
  • Message
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

BRAW Player for Win

PostTue Jun 04, 2019 9:12 am

After some downtime I discovered I don't have that much time to improve my little braw player project right now so I put up current version for everyone to try. Maybe it is useful for someone, if not for something else then for quick viewing of braw files and their metadata.

Find the install folder .zip here: http://www.kalderafx.com/vfx/brawplayer/

There is a small readme.txt file too, read it to get an overview of what works and what not. If you find a bug (that is not already in readme) or it doesn't work at all, post problem description here.

A bit old video (UI has changed a bit) but shows basic usage of player:


PS. In case someone wants to chat privately about the app or feels like buying me a beer in Paypal, my email is hendrik [at] kalderafx.com
I do stuff.
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostTue Jun 04, 2019 10:11 am

Some more information about it (also in readme).

Current version is built against BRAW SDK version 1.3, meaning it should be able to decode newer files also. Currently only CPU decode works, but player automatically changes decoding resolution behind the scenes if viewer size is smaller, so to get faster playback just resize the window. It is also possible to manually set decode resolution using combobox in UI.

INSTALLATION
Just run the application executable. For loading files, File->Open or drag-drop to application window.

USAGE
Play the file and fiddle with settings. If knob is active, values can be changed by scrolling mouse button. To reset a setting, right click on slider.

Press M for metadata overlay, it displays all meta read from file, including dynamically changing meta.
Press D for debug data, it doesn't show much useful though.
Press G for gamut plot. Not useful, also wrong with any other gamut-gamma than linear XYZ.
Press V to toggle through viewer modes: full data, minimal player, video only. Has some layout issues.
Press T to show timecode in playhead TC knob. Might be wrong, check metadata, there is correct tc for frame.

Use mouse scroll button for zooming and left button for panning the viewer. Double-click left button to reset view.

Viewer gain and gamma affect the final decoded image. Decoding precision affects decoder output data format, it is clear that decoder outputs unclipped data in float mode and clipped data in int mode. Viewer LUT combo is just a test, doesn't do anything right.

WHAT WORKS
It opens and plays braw files :D Most of development settings should work, also dynamic data from sidecar files (change "Update from sidecar" to "on every frame" for dynamic data). Dynamic data means that exposure, iso etc (not all, but some properties) can be animated in sidecar. There is little documentation about this feature, bang on BMD-s door for better docs.

WHAT DOES NOT WORK
No audio. No GPU decode (settings are there in decoder device combo but not effective). Might crash randomly. Might do something else wrong. Export of trimmed braw or sidecar do not work yet.

KNOWN BUGS
Drag-drop something else than .braw will crash.
Timecode value shown in knob is sometimes wrong.
Gamut plot is incorrect for anything but linear XYZ.
GPU decode not working.

OTHER STUFF
For customization of UI appearance, fiddle with stylesheet.txt file in application dir.
I do stuff.
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostTue Jun 04, 2019 10:23 am

Example of how to use dynamically changing development settings in sidecar file. To get it update in player, set "Update from sidecar" combo (in player settings group) to "On every frame":
Code: Select all
{
    "tone_curve_contrast": 1.500000,
   "tone_curve_saturation": 1.600000,
   "tone_curve_midpoint": 0.300000,
   "tone_curve_highlights": 0.650000,
   "tone_curve_shadows": 2.000000,
    "tone_curve_video_black_level": 1,
   "viewing_gamma": "Blackmagic Design Custom",
   "viewing_gamut": "Blackmagic Design",
   "viewing_bmdgen": 4,
   "exposure": {
        "12:01:40:04": 0.400000,
        "12:01:41:04": 0.600000,
        "12:01:42:04": 0.800000,
        "12:01:43:04": 1.000000,
        "12:01:44:04": 1.200000
   },
   "white_balance_kelvin": {
      "12:01:40:04": 4000,
        "12:01:41:04": 4500,
        "12:01:42:04": 5000,
        "12:01:43:04": 5500
   },
   "white_balance_tint": {
      "12:01:40:04": -20
   },
   "iso": {
      "12:01:40:04": 800
   }
}
I do stuff.
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostWed Jun 19, 2019 5:50 pm

I just found out that there might be some additional metadata in braw file that is retrievable on frame level. I'll try to make new version soon and add that also.
I do stuff.
Offline

Cameron Porter

  • Posts: 45
  • Joined: Tue Jun 02, 2015 9:00 pm

Re: BRAW Player for Win

PostMon Jun 24, 2019 8:17 pm

This is a LIFESAVER. Thank you so much!
Offline

Cameron Porter

  • Posts: 45
  • Joined: Tue Jun 02, 2015 9:00 pm

Re: BRAW Player for Win

PostMon Jun 24, 2019 9:33 pm

One of our machines has an AMD graphics card, and when we try to launch we get an error that says nvcuda.dll is missing and it won't launch. We tried just dropping in the dll into the sys32 folder, but now it just says it failed to launch.

Anything obvious I'm missing? Thanks!
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostTue Jun 25, 2019 12:01 pm

Cameron Porter wrote:One of our machines has an AMD graphics card, and when we try to launch we get an error that says nvcuda.dll is missing and it won't launch. We tried just dropping in the dll into the sys32 folder, but now it just says it failed to launch.

Anything obvious I'm missing? Thanks!

I put up new version (find it from same link in first post), try that, hopefully it fixes the error. Some rudimentary GPU compute probing that was happening might have triggered the message.

Whats new in current version:
- Fixed direct .braw file opening bug, now player can be set as default application for loading .braw files;
- Frame level metadata now available;
- Fragment and vertex shaders fully exposed for viewer OpenGL widget, see shaders/ subdir;
- Removed some cuda probing code that might trigger missing cuda lib error with AMD cards (not tested if works though)

Simple path messup bug prevented opening files directly through os by setting player as default application. Fixed the loading and also problems with stylesheet and icons. It should now work as expected.

Frame level metadata exposes some stuff not visible on clip level, mainly frame-processing attributes and also some lens and cam information (aperture, internal_nd, distance, shutter_value etc).

Regarding shaders, as viewer surface is drawn with opengl, user can now use fragment shader to do any image processing one wishes, for example apply custom color transforms and whatnot. Just code them in fragment shader and fire away!
I do stuff.
Offline

Cameron Porter

  • Posts: 45
  • Joined: Tue Jun 02, 2015 9:00 pm

Re: BRAW Player for Win

PostTue Jun 25, 2019 11:35 pm

Thanks again, sir! We'll test it and report the results.
Offline

Cameron Porter

  • Posts: 45
  • Joined: Tue Jun 02, 2015 9:00 pm

Re: BRAW Player for Win

PostTue Jun 25, 2019 11:58 pm

Working great! Thanks again!
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostWed Jun 26, 2019 6:24 am

Cameron Porter wrote:Working great! Thanks again!

It works on that machine with AMD card also? Strange that it didn't work before though, I used sdk methods from example code for detecting if cuda pipeline processing is possible, this shouldn't need to use cuda itself...
I do stuff.
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostThu Jun 27, 2019 1:44 pm

Fiddled a bit with viewer shader stuff and made a few new frag shader examples. New version is uploaded and can be found under link in first post (download the latest updated from ftp folder).

And I also made a small demo video where I outline basic functionality and also some more obscure stuff like dynamic metadata in sidecar file and viewer opengl fragment shaders:
I do stuff.
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostFri Jun 28, 2019 9:47 am

In case someone is wondering what custom viewer shaders could be useful for, here is a small example. In about ten minutes I wrote a shader for displaying rgb parade overlay:
CropperCapture[306].jpg
CropperCapture[306].jpg (438.23 KiB) Viewed 32037 times


And shader code for anyone interested to try. It contains new uniform value "decoderesolution" which is available in new version uploaded today.
Code: Select all
#version 150 core
uniform sampler2D tex;
uniform vec2 resolution;
uniform vec2 decoderesolution;
uniform float exposure;
uniform float gamma;
uniform int bitdepth;
uniform int lut;
uniform float lutweight;
in vec2 fragTexCoord;

vec4 applyViewerGrade(vec4 basecolor)
{
    vec4 color = basecolor;
   
    // General exposure and gamma adjustments
    color = color * pow(2, exposure);
    color.r = pow(color.r, gamma);
    color.g = pow(color.g, gamma);
    color.b = pow(color.b, gamma);
   
    return color;
}

void main(void)
{
    vec4 color = texture2D(tex, fragTexCoord);
    vec4 finalcolor = color;
   
    float numSteps = decoderesolution.y;
    float stepSize = 1.0 / numSteps;
    for (int y = 0; y < numSteps; y++)
    {
        vec2 uv = vec2(fragTexCoord.x, stepSize * y);
        vec4 sc = texture2D(tex, uv);
        float box = floor((1.0 - fragTexCoord.y) * numSteps) / numSteps;
        if ((floor(sc.r * numSteps) / numSteps) == box)
            finalcolor.r = 1.0;
        if ((floor(sc.g * numSteps) / numSteps) == box)
            finalcolor.g = 1.0;
        if ((floor(sc.b * numSteps) / numSteps) == box)
            finalcolor.b = 1.0;
    }

    // Apply weighting and viewer grade
    gl_FragColor = mix(applyViewerGrade(color), applyViewerGrade(finalcolor), lutweight);
};
I do stuff.
Offline

deezid

  • Posts: 392
  • Joined: Wed Sep 19, 2018 10:38 am
  • Real Name: Dennis Schmitz

Re: BRAW Player for Win

PostFri Jun 28, 2019 3:24 pm

Works perfectly fine on Linux too, using Cuda!
Even in fullscreen.

Set it as default player for Braw, Drag and Drop works as well.

Great work!


Edit:
Is .cube LUT support possible?

Edit2: With the parade turned on it stutters on my machine. Seems to have a strong level of detail - maybe too much :D
Download my 55M Advanced Luts for the Pocket 4K and 6K and UMP12K here:
https://55media.net/55mluts/
Offline

Li Chenghan

  • Posts: 107
  • Joined: Mon Apr 23, 2018 11:47 am
  • Real Name: Li Chenghan

Re: BRAW Player for Win

PostFri Jun 28, 2019 4:46 pm

I don't see the preview and sound on my computer
12-Core AMD Ryzen Threadripper 1920X, 3700 MHz (37 x 100)
Asus ROG Strix X399-E Gaming
GeForce RTX 2070 GAMING Z 8G
G.SKILL DDR4-3200 CL16 32G
Microsoft Windows 10 Pro 1909
Blackmagic Pocket Cinema Camera 4K/BRAW 3:1 5:1
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostSat Jun 29, 2019 6:32 am

deezid wrote:Works perfectly fine on Linux too, using Cuda!
Even in fullscreen.

Set it as default player for Braw, Drag and Drop works as well.

Great work!

Edit:
Is .cube LUT support possible?

Edit2: With the parade turned on it stutters on my machine. Seems to have a strong level of detail - maybe too much :D

I wonder how you run win executable on linux? Cuda decode does nothing, it falls back to cpu.
.cube luts not currently supported, it takes a bit of fiddling to get them working
You can change the parade quantization in shader, see the line where 'decoderesolution' uniform is used and change that value. Something like 100 will give you an idea what it does:
Code: Select all
float numSteps = 100.0;


Li Chenghan wrote:I don't see the preview and sound on my computer

There is no audio decode. What do you mean by preview?
I do stuff.
Offline

deezid

  • Posts: 392
  • Joined: Wed Sep 19, 2018 10:38 am
  • Real Name: Dennis Schmitz

Re: BRAW Player for Win

PostSun Jun 30, 2019 3:43 pm

[quote="Hendrik Proosa]
I wonder how you run win executable on linux? Cuda decode does nothing, it falls back to cpu.
.cube luts not currently supported, it takes a bit of fiddling to get them working
You can change the parade quantization in shader, see the line where 'decoderesolution' uniform is used and change that value. Something like 100 will give you an idea what it does:
Code: Select all
float numSteps = 100.0;
[/quote]

Noticed that Cuda didn't do anything, same speed with CPU and Cuda set.
Running the exe file with Wine and there are no problems to report. It's really fast as well.

The shader code works. Less resolution means faster speeds ;)
Download my 55M Advanced Luts for the Pocket 4K and 6K and UMP12K here:
https://55media.net/55mluts/
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostSun Jun 30, 2019 4:56 pm

Nice to hear it can also play in Linux!

About that parade, as is apparent from shader code, it samples a number of pixels in the same column as output pixel is and that line changed the step size of sampling. In original code it was every decoded line, when it is set lower loop runs faster thus making shader faster. But downside is that not all pixels are sampled anymore. In current code sampling and value binning were also tied, so with lower values, parade columns also got more "boxy".
I do stuff.
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostThu Jul 04, 2019 2:00 pm

WHATS NEW in v0.3.0 (released 190704)
Rudimentary audio playback. There are buffering issues which must be sorted (audio is choppy and cracking) but speech is audible and thus somewhat usable. Audio plays during scrubbing too and conforms to framerate changes (plays slower or faster).

Removed notification about BMD Custom and development settings, it messed up the layout.

---------------------------------------------------------------------------

Other plans:
I want to add RGBA channel toggles but I must use internal draw buffer for this to run another pass through additional viewer shader and it will take some fiddling.

Viewer should ideally zoom to mouse cursor position (currently zoom is from center of image which is annoying), takes some math gymnastics but should be easy to achieve.

GPU decode... been planning this for some time now, must do.
I do stuff.
Offline
User avatar

Ben Slavens

  • Posts: 42
  • Joined: Thu Jun 01, 2017 8:07 am
  • Location: Los Angeles, CA

Re: BRAW Player for Win

PostWed Sep 11, 2019 2:32 am

Hi! Great software. The player is much more feature-rich than Blackmagic's own BRaw Player for Windows. Any plans to keep developing it?
http://Chromatron.Digital
MOBO ASRock X570 Taichi
CPU AMD 3900X
RAM 4x 16GB Corsair RGB Pro 3200 CL16 DDR4
PCIe 4.0 Slot 0 - AMD Radeon VII 16GB
PSU Corsair RM1000i Gold-rated
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostThu Sep 12, 2019 8:20 am

Ben Slavens wrote:Hi! Great software. The player is much more feature-rich than Blackmagic's own BRaw Player for Windows. Any plans to keep developing it?

Thank you, nice to hear you like it!

I'm beginning a massive project and unfortunately don't have much spare time, but I'll try to squeeze a few hours in for SDK update some time between today and never 8-)
I do stuff.
Offline

Andhropa

  • Posts: 1
  • Joined: Sat Nov 02, 2019 9:40 am
  • Real Name: Stijn Norga

Re: BRAW Player for Win

PostSat Nov 02, 2019 9:53 am

Hi Hendrik,

Using your great software to watch recently shot footage. Thanks for the rudimentary audio, it is footage of a music recording, so this helps a lot in navigating through many files.

Any chances of the I/O functionality being added in the future? Running Win 7, so i can't install resolve yet :?

At least for now, i can watch and listen to the footage, thanks to you!
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostMon Nov 11, 2019 9:13 pm

Andhropa wrote:Hi Hendrik,

Using your great software to watch recently shot footage. Thanks for the rudimentary audio, it is footage of a music recording, so this helps a lot in navigating through many files.

Any chances of the I/O functionality being added in the future? Running Win 7, so i can't install resolve yet :?

At least for now, i can watch and listen to the footage, thanks to you!

Thank you for kind words, nice to hear you find it useful. Can you describe what you mean by I/O functionality? Transcoding to some other format?
I do stuff.
Offline
User avatar

antoine

  • Posts: 497
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

Re: BRAW Player for Win

PostMon Nov 11, 2019 10:52 pm

Congratulations on your BRAW Player Hendrik and thanks for your work !
BRAW Studio FREE and Premium for Adobe Premiere Pro and After Effects, with a brand new Desktop .BRAW Player and Color Grader, as well as an automatic White Balance Color Picker tool
Offline

Michael Kropfberger

  • Posts: 282
  • Joined: Fri Jan 12, 2018 8:27 pm

Re: BRAW Player for Win

PostMon Nov 18, 2019 4:47 pm

would be great to try out brawplayer_v190604, but fails with "nvcuda.dll"
I have the BRAW SDK 1.5.2 installed, using a Radeon VII GPU.
Intel i9-12900ks, 64GB DDR4 RAM, 1TB M2 SSD (system), 2TB EVO860 SSD (media), 1TB EVO850 SSD (cache), RTX 4090, Win 10x64 latest
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostMon Nov 18, 2019 5:50 pm

Version format is YYMMDD so last version currently is 190704.
I do stuff.
Offline

Michael Kropfberger

  • Posts: 282
  • Joined: Fri Jan 12, 2018 8:27 pm

Re: BRAW Player for Win

PostMon Nov 18, 2019 6:02 pm

me = stupid


works, great!
Intel i9-12900ks, 64GB DDR4 RAM, 1TB M2 SSD (system), 2TB EVO860 SSD (media), 1TB EVO850 SSD (cache), RTX 4090, Win 10x64 latest
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostWed Jun 17, 2020 3:17 pm

First update to BRAW SDK version 1.7 is up, I created new page for releases, which can be found here:
https://gitlab.com/hendrikproosa/braw-player-public/-/releases

Current version for Windows only, as before, but I'll see if I can produce one for Linux too.

This is the base upgrade version, with some features not working (audio, was crappy before anyway) and might crash. Upside is that up do date SDK should be able to decode all .braw files.
I do stuff.
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostThu Jun 18, 2020 1:20 pm

Got into small vibe again, since timeline IO marking is there, braw trimming is imminent 8-)
brawplayer_timelineIO.jpg
brawplayer_timelineIO.jpg (31.51 KiB) Viewed 23268 times


Next version will also have restored (but still crappy) audio, zoom to mouse cursor and other convenience functions.
I do stuff.
Offline

jd_becker

  • Posts: 8
  • Joined: Tue Jun 23, 2020 1:45 pm
  • Location: Germany
  • Real Name: Jan Becker

Re: BRAW Player for Win

PostTue Jun 23, 2020 2:41 pm

Very promising project. With improved stability and performance i would love to use it in the future :).
Some stuff I noticed: I don't get the correct playback speed with my 29.97 material. When I set the FPS to 50 it looks and sounds about right. Also, the 'Edit' 'View' and 'Help' don't do anything. Also, when I press escape the viewer and the controls disappear and the program crashes as I try to load a new file. What is supposed to happen here?

Some stuff I would love to see in the future:
  • Possibility to listen to the different embedded audio channels (a feature desperately missing from the Resolve Media Page as well).
  • Resolve style keyboard commands, especially JKL for playback (why don't more/all media players have this?) and Z to zoom viewer to fit.
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostWed Jun 24, 2020 4:55 pm

Hi, thanks for feedback. The playback engine is currently a bit bonkers and doesn't play as it should (I have issues with timer and asynchronous decode mechanism), I must rewrite some stuff there. Menus are placeholders, there is nothing there yet. Pressing esc shouldn't actually do anything, crash is a bug reminescent from some faulty code, I will remove the key binding.

Resolve keyboard commands is a good idea, I'll add it. Z for fit also, but you can currently do fit by double-clicking with left mouse button too.
I do stuff.
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostFri Jul 10, 2020 10:28 am

A quick overview of new version I'm prepping and will upload soon, these things are already added and working:
- braw trimming, both from UI and from command line 8-)
- frame caching to RAM for faster playback;
- zoom to mouse cursor location in viewer;
- improvements to keyboard shortcuts;

GPU decode and audio are again lingering, this stuff makes my head hurt a bit, but RAM caching should remedy playback speed problems.

Some simpler stuff in waiting list or in progress:
- zoom timeline ruler (to best see the stuff when frame range is long);
- export sidecar file with current processing settings;
- selectable-copyable metadata viewer;
- export metadata to file;
- viewer shaders mechanism overhaul.
I do stuff.
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostWed Jul 15, 2020 10:48 am

Bells and whistles! New version v0.5.0 is up and can be found from Releases page in Braw Player public repository: https://gitlab.com/hendrikproosa/braw-player-public

WHATS NEW in v0.5.0
--------------------------------
  • Support for Braw SDK v1.8, so supports braw files from the newest cameras and sources.
  • Braw trimming, mark IO points in timeline and export or trim directly from command line job.
  • Command line arguments! Launch player from command line with specified file and IO points or trim new braw file straight from terminal. See COMMAND LINE section in readme for information.
  • Overhaul of decoding engine, including caching mechanism (still in progress though), braw trimming and other improvements. No GPU decode still. Audio engine currently disabled, I will work on it again soon.
  • Metadata viewer now allows copying values, in case one wants to save them as text.
  • Keymap got some modifications (JKL keys etc), see keymap help (press H in viewer).

As usual, if it breaks you get to keep the pieces. If something is broken, feel free to write problem description here.

Should also run in Linux just fine with wine64, tried myself in Centos 7.7

brawplayer_v0.5.0_gui_eyecandy.jpg
brawplayer_v0.5.0_gui_eyecandy.jpg (655.16 KiB) Viewed 22695 times
I do stuff.
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostWed Jul 15, 2020 2:23 pm

Caching mechanism seems to be a bit buggy. If you get a bad allocation error printed in console, try running from command line like this:
brawplayer.exe -cache 1

If it shows an image after launching player like this, please report your system RAM amount and if possible, try to test at which cache level (increase the number, default value is 100) does it start to fail. Thanks!
I do stuff.
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostMon Aug 10, 2020 9:30 am

It lives! Braw SDK 2.0 beta for win that opens 12K Ursa files.
brawplayer_v0.6.0_gui_eyecandy.jpg
brawplayer_v0.6.0_gui_eyecandy.jpg (609.22 KiB) Viewed 22316 times
I do stuff.
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostThu Aug 27, 2020 12:39 pm

New version v.0.6.0 can be found from release section in public repo:
https://gitlab.com/hendrikproosa/braw-p ... -/releases

Main feature is support for Braw SDK v2.0 beta 2, which enables 12K braw file playback.
Also added timeline zooming, which by itself isn't much but lays some foundation for more playback controls like play within zoomed range etc. Also makes it easier to see what range is selected etc.

Messed quite some time with overhauling viewer process so that view shader would be separated from user shaders but didn't get it working properly yet, so disabled it. Goal is to add possibility to view separate RGB channels and change viewer exposure and gain independent of what user shader is doing.

NOTE about 12K braw
If it crashes with allocation errors, run from command line with cache argument, like this, to force down ram caching: brawplayer.exe -cache 1

When running player in Linux with wine64 it crashes with 12K files, not sure yet why because same files work under Win.
Last edited by Hendrik Proosa on Fri Sep 04, 2020 8:59 am, edited 2 times in total.
I do stuff.

JackJones1337

Re: BRAW Player for Win

PostThu Aug 27, 2020 6:10 pm

Terrific, it seems the author is a real pro! I always liked creative works like these.

https://fixthephoto.com/online-photoshop-editor.html
Last edited by JackJones1337 on Thu Sep 03, 2020 4:25 pm, edited 1 time in total.
Offline
User avatar

Joshua_G

  • Posts: 227
  • Joined: Thu Jun 14, 2018 8:12 pm
  • Location: Israel
  • Real Name: Joshua Gomeh

Re: BRAW Player for Win

PostSun Aug 30, 2020 10:34 am

Is there an executable v0.6.0?
DaVinci Resolve Studio (latest stable) / Windows 10 Pro x64 / AMD 1920X / 32GB RAM / RX Vega56 8G.
BMPCC 6K + BMPCC 6K Pro.
Retired electronics technician and sound engineer, long-time amateur photographer, beginner hobbyist filmmaker for personal uses.
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostSun Aug 30, 2020 11:23 am

Joshua_G wrote:Is there an executable v0.6.0?

Download the archive from release page, it contains program directory. It is named source because gitlab packages the repo on release with this name, but public repo actually contains compiled binaries.
I do stuff.
Offline
User avatar

Joshua_G

  • Posts: 227
  • Joined: Thu Jun 14, 2018 8:12 pm
  • Location: Israel
  • Real Name: Joshua Gomeh

Re: BRAW Player for Win

PostMon Aug 31, 2020 11:06 am

Thanks.
DaVinci Resolve Studio (latest stable) / Windows 10 Pro x64 / AMD 1920X / 32GB RAM / RX Vega56 8G.
BMPCC 6K + BMPCC 6K Pro.
Retired electronics technician and sound engineer, long-time amateur photographer, beginner hobbyist filmmaker for personal uses.
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostMon Aug 31, 2020 11:14 am

Joshua_G wrote:Thanks.

No problem ;) let me know how it works (or if it doesn’t), I try to improve it over time.
I do stuff.
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostSun Sep 20, 2020 8:18 am

Thanks to other curious people in the software development subforum and Captain Hook’s code examples and help I think I finally understood how exactly the GPU decode and OpenGL interop works, so will start adding gpu decoding path finally 8-) Memory management needs an overhaul because 12K files seem to kick my players butt.

Sound is still on the back seat because it made my head hurt bad. I think I have to use some other library for sound playback, OpenAL has crossed my mind, and also do some kind of audio buffering to prevent the crackling.

Current fixlist (things that suck):
- caching resilience for high res files (12K);
- braw trimming based on timecode values, not just frames;
- audio
- shading mechanism, separation of viewer and processing shaders
- play in to out

Some more ideas I have:
- metadata export to text files, both single frame and sequence;
- keyable parameters and sidecar export to capture the changes (raw parameter keying);
- playlist with possible edl import;
- multi-trim (select multiple ranges in timeline and trim all to separate files);
- naming tokens for trimming and saving (metadata keys and other variables as file and folder nime elements), basically trim templates.
I do stuff.
Offline
User avatar

Ben Slavens

  • Posts: 42
  • Joined: Thu Jun 01, 2017 8:07 am
  • Location: Los Angeles, CA

Re: BRAW Player for Win

PostMon Oct 26, 2020 9:08 pm

I love your braw player! I hope you keep on updating it when you have time, because it seems like Blackmagic is not interested in giving their player and functionality whatsoever beyond simple playback...One note, I am working with 3K Anamorphic (2x) footage I shot recently, and it seems that there is no way to desqueeze the footage in your player. I could just go into Resolve and do it there, but it would be nice just have the option to desqieeze the view for 2x, 1.5x, and 1.33x Anamorphic lenses shot in the 3K Ana mode when just looking to quickly reference footage.

Thanks for all your time and awesome contributions!
http://Chromatron.Digital
MOBO ASRock X570 Taichi
CPU AMD 3900X
RAM 4x 16GB Corsair RGB Pro 3200 CL16 DDR4
PCIe 4.0 Slot 0 - AMD Radeon VII 16GB
PSU Corsair RM1000i Gold-rated
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostMon Oct 26, 2020 10:17 pm

Thanks for feedback! Glad you find it useful!

Scaling for this kind of situations has crossed my mind, but in the meantime one workaround could be a shader that desqueezes the image. I’ll try to give an example tomorrow when back at desk.
I do stuff.
Offline
User avatar

antoine

  • Posts: 497
  • Joined: Sat Nov 24, 2018 2:20 am
  • Real Name: Antoine Dornstetter

Re: BRAW Player for Win

PostTue Oct 27, 2020 11:37 am

Ben Slavens wrote:I love your braw player! I hope you keep on updating it when you have time, because it seems like Blackmagic is not interested in giving their player and functionality whatsoever beyond simple playback...One note, I am working with 3K Anamorphic (2x) footage I shot recently, and it seems that there is no way to desqueeze the footage in your player. I could just go into Resolve and do it there, but it would be nice just have the option to desqieeze the view for 2x, 1.5x, and 1.33x Anamorphic lenses shot in the 3K Ana mode when just looking to quickly reference footage.

Hi Ben,
Could you share with us such a file ? Thanks
BRAW Studio FREE and Premium for Adobe Premiere Pro and After Effects, with a brand new Desktop .BRAW Player and Color Grader, as well as an automatic White Balance Color Picker tool
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostTue Oct 27, 2020 6:08 pm

Hi, try this shader as a workaround for viewing anamorphic files. Save it into a file with .frag extension and place it into /shaders folder under application main folder (there are all the other shaders located too, so you can modify any of them). Change the scalingRatio variable value according to necessary scaling. Value 1.0 applies no scaling, value 2.0 squeezes image vertically 2x. It isn't technically correct, should actually stretch horizontally but for player it makes a bit more sense visually.

Shader is reloaded when selecting it from combobox so you can modify it in text editor and simply change to some other shader and back in player to see the change when trying different scaling values.

Code: Select all
#version 150 core
uniform sampler2D tex;
uniform vec2 resolution;
uniform float exposure;
uniform float gamma;
uniform int bitdepth;
uniform int lut;
uniform float lutweight;
in vec2 fragTexCoord;

vec4 applyViewerGrade(vec4 basecolor)
{
    vec4 color = basecolor;

    // General exposure and gamma adjustments
    color = color * pow(2, exposure);
    color.r = pow(color.r, gamma);
    color.g = pow(color.g, gamma);
    color.b = pow(color.b, gamma);

    return color;
}

void main(void)
{
    // Sample from base coords
    vec4 color = texture2D(tex, fragTexCoord);


    // *****************************************************
    // Change this value to set different scaling ratio. If 1.0, no scaling is applied
    // *****************************************************
    float scalingRatio = 2.0;


    float newHeight = 1.0 / scalingRatio;
    float newBlanking = (1.0 - newHeight) * 0.5;

    // Sample from modified uv coords
    vec2 newuv = vec2(fragTexCoord.x, fragTexCoord.y * scalingRatio - scalingRatio * newBlanking);
    vec4 finalcolor = texture2D(tex, newuv);


    // Blank outside image to mask the wraparound
    if (fragTexCoord.y < newBlanking)
        finalcolor = vec4(0.0);

    if (newuv.y > 1.0)
        finalcolor = vec4(0.0);


    // Apply weighting and viewer grade
    gl_FragColor = mix(applyViewerGrade(color), applyViewerGrade(finalcolor), lutweight);
};


This is how the Rabbit ear clones test clip looks like with desqueeze view LUT and 1.5 scaling factor:
braw_player_desqueeze.png
braw_player_desqueeze.png (811.26 KiB) Viewed 20527 times

Not sure what the actual squeezing factor should be for it, file metadata tells it is supposed to have 2.40 aspect but original clip aspect isn't really related to that value. I think one option would be to calculate current aspect from width/height, compare it with metadata and apply the remaining as additional desqueeze scaling. And I also discovered that I should force-add original width and height to metadata because some clips don't have it in braw metadata so meta view doesn't show them.
I do stuff.
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostFri Mar 19, 2021 10:11 am

Quite some time has passed now but I try to get back to improving the player some more.

What I have in mind:
- update BRAW SDK to latest version (2.1 beta 3 as of now)
- GPU decode (CUDA first, then I'll see if OpenCL comes along)
- better audio playback (will switch to OpenAL, should make it easier)
- better trimming (make it more useful, including multi-selects from gui)
- sidecar file saving, with dynamically changing parameters (yes, this means animation curves)
- shader system overhaul, separation of effects from gamma/gain shader
- maybe try DCTL effects too...
- possibly multi-clip playlist/timeline, I'd like to look into OTIO
- playback engine rework, I'd like to get it a bit more performant

So new version might drop somewhere between now and never 8-)
I do stuff.
Offline

Michael Kropfberger

  • Posts: 282
  • Joined: Fri Jan 12, 2018 8:27 pm

Re: BRAW Player for Win

PostFri Mar 19, 2021 10:28 am

never say never :)
thanks for your effort!

IO like your priorization, allthough I think, BRAW SDK is top, but then audio...
GPU on single clips seems a little "over the top", imho... but what do I know from my small BMPCC 4K world :)

greets
Mike
Intel i9-12900ks, 64GB DDR4 RAM, 1TB M2 SSD (system), 2TB EVO860 SSD (media), 1TB EVO850 SSD (cache), RTX 4090, Win 10x64 latest
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostFri Mar 19, 2021 11:47 am

Thanks for your thoughts Michael! This list is not that much of a priority list as "I'd like to have this and that", so audio will probably be higher in my priorities :) I had to mess with audio a bit for a plugin I wrote recently so I have that area warmed up already. I will probably visualize audio waveforms too if I get to it.
I do stuff.
Offline

Michael Kropfberger

  • Posts: 282
  • Joined: Fri Jan 12, 2018 8:27 pm

Re: BRAW Player for Win

PostFri Mar 19, 2021 12:07 pm

havent tested yet, but what's about multi audio streams and visual (clap) audio sync to sidecar?
Intel i9-12900ks, 64GB DDR4 RAM, 1TB M2 SSD (system), 2TB EVO860 SSD (media), 1TB EVO850 SSD (cache), RTX 4090, Win 10x64 latest
Offline

Hendrik Proosa

  • Posts: 3007
  • Joined: Wed Aug 22, 2012 6:53 am
  • Location: Estonia

Re: BRAW Player for Win

PostFri Mar 19, 2021 12:32 pm

Michael Kropfberger wrote:havent tested yet, but what's about multi audio streams and visual (clap) audio sync to sidecar?

What do you mean exactly? Sidecar file has no audio related overrides as far as I know.
I do stuff.
Next

Return to Post Production

Who is online

Users browsing this forum: No registered users and 17 guests