Magic Lantern Forum

Using Magic Lantern => Raw Video => Raw Video Postprocessing => Topic started by: dannyqt18 on April 21, 2014, 03:55:09 PM

Title: Where can i find the Black Level and White Level
Post by: dannyqt18 on April 21, 2014, 03:55:09 PM
I shot a video these past few days and unfortunatly all the frames have that pink cast. After a bit of research i now know that i have to set the black level and white level for each DNG file.
Problem is i can't find out where the correct values are.

I shot using MLV format  + MLVSound.

I converted the files in to RAW, but RAW2DNG also shows 1024 and 15000 so no luck there.

Any help would be apreciated.
Title: Re: Where can i find the Black Level and White Level
Post by: Midphase on April 21, 2014, 06:48:27 PM
Are you trying to edit the footage in Premiere Pro?
Title: Re: Where can i find the Black Level and White Level
Post by: dannyqt18 on April 21, 2014, 07:09:07 PM
right now i'm at the stage of trying to fix the PINK CAST with the accuate black and white levels, within the DNG files.


I edited the EXIF and tried to aproximate the black level and got close, was just wondering where i could get the exact numbers.
Title: Re: Where can i find the Black Level and White Level
Post by: dmilligan on April 21, 2014, 10:19:17 PM
raw_diag.mo

get it here: http://www.magiclantern.fm/forum/index.php?topic=10111.0
Title: Re: Where can i find the Black Level and White Level
Post by: g3gg0 on April 21, 2014, 10:30:34 PM
a) download latest mlv_dump (http://ml.g3gg0.de/modules/mlv_dump.zip/mlv_dump.zip) and process the files using
mlv_dump --black-fix=2048 -o out.mlv in.mlv (or 1024, 1700, 1650 depending on what looks better)

b) if you have DNGs use exiftool and set black level to 2048 (or 1024, 1700, 1650 depending on what looks better)

pick one
Title: Re: Where can i find the Black Level and White Level
Post by: lonestar on April 27, 2014, 10:50:47 AM
Quote from: g3gg0 on April 21, 2014, 10:30:34 PM
a) download latest mlv_dump (http://ml.g3gg0.de/modules/mlv_dump.zip/mlv_dump.zip) and process the files using
mlv_dump --black-fix=2048 -o out.mlv in.mlv (or 1024, depending on what looks better)

b) if you have DNGs use exiftool and set black level to 2048 (or 1024, depending on what looks better)

pick one
Thanks g3gg0, but would you explain a little more where should I apply this command line "mlv_dump --black-fix=2048 -o out.mlv in.mlv".

Title: Re: Where can i find the Black Level and White Level
Post by: chmee on April 27, 2014, 10:58:46 AM
the intention is, to rewrite the data inside the mlv. thats it. depending on your filestructure you have to use according paths to show on your mlv-files.
Title: Re: Where can i find the Black Level and White Level
Post by: lonestar on April 27, 2014, 11:32:32 AM
Quote from: chmee on April 27, 2014, 10:58:46 AM
the intention is, to rewrite the data inside the mlv. thats it. depending on your filestructure you have to use according paths to show on your mlv-files.

Hi,chmee, I'm using raw2cdng to convert my files, is there way to set black level in raw2cdng, can you provide a example or link for me to read some detail operation of this, thank you.
Title: Re: Where can i find the Black Level and White Level
Post by: chmee on April 27, 2014, 11:49:15 AM
no. my converter has no manual possibilities to change the black/whitelevel. g3gg0s hints are the best ways. i already thought about a small helper tool for reading properties, changing some and maybe fixing the footer of raw-files. but thats by now just in my mind :)

by the way: did you get the same results if you used another converters? its interesting for me indeed, because i test my software only with my 5DIII (Blacklevel 2048~). What Body do you have and did you tried the Blacklevel-fix inside the body (before recording)?
Quote..After some trial and error I figured out it was caused by the "Fix black level" set to ON...
(from other thread)
Title: Re: Where can i find the Black Level and White Level
Post by: lonestar on April 27, 2014, 12:28:59 PM
I used my friend's 5d2, black level fix in camera was on when I shot, the camera is not with me right now.
I have a lot of footages which I want to use, that's why I want to fix this issue on my footages.
I just used mlv_dump, and the command line to set the black level, the pink/magenta cast now become some green cast now. both 2048 and 1024. I  really have no idea what to do now.
Title: Re: Where can i find the Black Level and White Level
Post by: ted ramasola on April 29, 2014, 01:31:52 AM
I also had this problem and using the mlv dump via command line also produced greenish shadows in both 2048 or 1024 values.

Perhaps the black fix should be OFF by default, at least on the 5D2 that I tested. This is bound to cause problems more than its fixing.
Title: Re: Where can i find the Black Level and White Level
Post by: Audionut on April 29, 2014, 04:23:42 AM
On 5D2, the black level may be around 1700 (https://bitbucket.org/hudson/magic-lantern/commits/02c9af698af933dfea31212713d5216cb0626ff8) too.
Title: Re: Where can i find the Black Level and White Level
Post by: ted ramasola on April 29, 2014, 06:59:39 AM
Quote from: Audionut on April 29, 2014, 04:23:42 AM
On 5D2, the black level may be around 1700 (https://bitbucket.org/hudson/magic-lantern/commits/02c9af698af933dfea31212713d5216cb0626ff8) too.

Thanks Audionut,

1700 works. Its not perfect but its "fixable". I find it difficult to remove the greens in ACR but easier in Resolve.
Title: Re: Where can i find the Black Level and White Level
Post by: Audionut on April 29, 2014, 07:09:04 AM
If there is still a cast in the blacks, the black level is not correctly set.

It may be 1750, or 1650, or some other value that is close to 1700.
Title: Re: Where can i find the Black Level and White Level
Post by: ted ramasola on April 29, 2014, 07:36:47 AM
1750 and 1800 seemed to do it. An arri LUT in resolve also added to the fix.
Title: Re: Where can i find the Black Level and White Level
Post by: ultimatemale on May 17, 2014, 11:12:21 PM
Just shot a music video on ML-RAW (not MLV)
Canon 5D3 1.2.3
ML build March 17th
Converted with RAWmagic lite
I use an apple Imac

I am not a computer genius or even know anything about coding. Can someone be kind enough and take the time to give me a step by step tut on how to save these files pls



When i view the converted dng file, it shows up as this-

(https://lh5.googleusercontent.com/-oR_AW4Dm89M/U3e1gb283II/AAAAAAAAARM/RX05QaJisCk/s1600/Screen%2520Shot%25202014-05-17%2520at%252020.00.01.png)


But when i open up in Resolve, ACR of LR it shows up as this-

(https://lh4.googleusercontent.com/-5qeIDMge9SE/U3e1gVX3jeI/AAAAAAAAARI/LFNi-yq2bWg/s2235/Screen%2520Shot%25202014-05-17%2520at%252020.05.52.png)

Any advise as to how i can recover this footage?
Title: Re: Where can i find the Black Level and White Level
Post by: Audionut on May 18, 2014, 12:17:09 AM
http://www.magiclantern.fm/forum/index.php?topic=11664.0