MLV - Wrong black level - Pink/Magenta/Green casts in raw videos

Started by Audionut, April 29, 2014, 11:00:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Audionut

The black level fix has been merged with unified.  If you're still having issues make sure you're using an updated build.



Quote from: Original PostSince this is a kludge fix that requires extra post processing for all recorded video, you may want to help the developers fix it properly.





There are some issues in the raw backend, that may cause some issues with the black level in recorded video.
The black level is a function of the camera, and needs to be set correctly, otherwise issues such as pink casts on the footage may result.

On 5D3, 7D and others, the black level should be 2048.
On 5D2, the black level may be 1024, or around 1750.

If you notice issues with your footage from MLV, there are 2 options to fixing the footage.

With mlv_dump, you would use the --black-fix command option.

mlv_dump --black-fix=2048 -o out.mlv in.mlv

Here, you would adjust the value for --black-fix, suitable for your camera, until the footage looks correct.  From my quick testing, if you have the black level to low, there will be pink casts, and if you have the black level to high, there will be green casts.

If you have already outputted DNGs, then you can use exiftool to fix the issue.

exiftool -BlackLevel=2048 input.dng
Adjusting the -BlackLevel value.
You can substitute the input name for a wildcard (*), to batch process large amounts of DNG files.


User ultimatemale has created a tutorial with Mac.  Most of the things can be followed even if you're a Windows/Linux user.

Quote from: ultimatemale on June 06, 2014, 01:20:30 AM
This is a video tutorial to show you how i fixed the corrupt ML files that comes out looking black and green
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



Jared

Hello
Is there any way to correct this error with RAWVideo?
Today I did some tests with the build "magiclantern-Nightly.2014Apr29.5D3113"
Used Camera: 5D Mark III
DNG FILE: https://www.dropbox.com/s/10k6tf2mec16bmq/M28-0517-000000.dng
SCREENSHOOT:
Photographer, Videographer, RawVideo Lover.
Canon 7D / Canon 5DMKIII

Audionut


g3gg0

Quote from: Audionut on April 29, 2014, 11:00:27 AM
The latest MLV module has some issues with black level that may need fixing on your footage.

just a note - its neither mlv_rec nor raw_rec but ML core (raw backend) and this bug is not in the latest ML version, but is there for a long time.
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

Jared

Quote from: Audionut on April 30, 2014, 12:08:19 PM
Did you bother to read my post at all?

Of course I read your post friend, but we wonder if there is an option that works, (exiftool did not work with my dng damaged) in the case of mlv if it works ... but unfortunately this record it in RAW.

as you can see I try as you're explaining in the post.

sorry friend, you're upset by my question, but this way does not work for me

Photographer, Videographer, RawVideo Lover.
Canon 7D / Canon 5DMKIII

g3gg0

a) never use directories with spaces -> try somewhere else
b) use a obviously wrong value like 1024 to check if it has any effect
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

Jared

Quote from: g3gg0 on April 30, 2014, 03:11:12 PM
a) never use directories with spaces -> try somewhere else
b) use a obviously wrong value like 1024 to check if it has any effect

trying again this way
not working
: (

http://i57.tinypic.com/2mpeayo.jpg


// Please use valid image sizes, as per the Forum Rules.  Audionut.
Photographer, Videographer, RawVideo Lover.
Canon 7D / Canon 5DMKIII

g3gg0

you are sure that this is a .dng generated from raw2dng or mlv_dump?
or was it made with some other tool?

if not -> use raw2dng / mlv_dump
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

Jared

Quote from: g3gg0 on April 30, 2014, 04:03:12 PM
you are sure that this is a .dng generated from raw2dng or mlv_dump?
or was it made with some other tool?

if not -> use raw2dng / mlv_dump

first use to generate dng RAWanizer
then use raw2dng.exe
without solving the problem in *.raw files
Photographer, Videographer, RawVideo Lover.
Canon 7D / Canon 5DMKIII

g3gg0

Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

Jared

Quote from: g3gg0 on April 30, 2014, 08:31:23 PM
well...   

Thanx G3gg0 !!!!!!!!!  :) :) :)

can be repaired using the exiftool that comes with the installation of RawDigger
Photographer, Videographer, RawVideo Lover.
Canon 7D / Canon 5DMKIII

jippalippa

Thank you so much for this message! It's a true relief to know i can fix this issue!
I thought my camera was broken.
I have a 5D Mark II and i solved by disabling the "Force Black Level to 2048" (that was causing the magenta cast).
The problem was probably the fact that my camera has a lower native black level value, and so, by forcing a higher one, it introduces color casts...
So everything ok, from now on.
But i still have the problem of the old clips i shot with this option enabled (infact they are all pink)
If i use the exif tool (or the mlv dump) method and input a 2048 black level i don't think i'm going to solve the issue (2048 is the same level i used in those pink pictures).
What level should i input to get a neutral result? (On my 5D Mark II)?
Thanks a lot

Audionut

Quote from: Audionut on April 29, 2014, 11:00:27 AM
On 5D2, the black level may be 1024, or around 1750.




mlv_dump --black-fix=2048 -o out.mlv in.mlv

Here, you would adjust the value for --black-fix, suitable for your camera, until the footage looks correct.




exiftool -BlackLevel=2048 input.dng
Adjusting the -BlackLevel value.

ultimatemale

I opened terminal after installing exiftool and got this-



Can someone please tell me what to do now.


I know nothing about coding but if you can tell me what to type in there and where to type to help fix the dng files it would really really make my day
i desperately need to save these footages

Audionut

Did you try following this?

Quote from: Audionut on April 29, 2014, 11:00:27 AM
exiftool -BlackLevel=2048 input.dng
Adjusting the -BlackLevel value.
You can substitute the input name for a wildcard (*), to batch process large amounts of DNG files.

ultimatemale

Quote from: Audionut on May 18, 2014, 10:25:58 AM
Did you try following this?

I want to follow it but i dont know where specifically to type that in. Where in the screen grab below do i put it?

Really really sorry for sounding so dumb but i have never used exiftool ever and no really little about computers.



ayshih

Canon EOS 50D | 17–40mm f/4L & 70–300mm f/4.5–5.6 DO IS | Lexar 1066x

gregmaustin

is there something I can change on my camera so that I dont have to do this every time? Where's it at ?

Audionut

You can try toggling the black fix option.



IIRC, the "Memory hack" and/or "Extra Hacks", can have some effect also.  If you try these and find a problem one, please let me know and I can add relevant information to the OP.

g3gg0

Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

FBongcam


budafilms

How to reduce noise in dark areas using MLV?
I compare the black levels with h264 and I had less noise in blacks in the compressed format.


tom2

Hi

I shoot .MLV clips with magiclantern-Nightly.2014May31.5D3113 on my 5D Mark III. I convert them to DNG with MLRAWviewer 1.1.6 on my Macbook Pro, to make color timing in Da Vinci Resolve Lite.
Last week, suddenly some of my clips had randomly the « green cast » issue. But thanks to this forum I could save my clips by using the "mlv_dump --black-fix=2048 »  method. It worked fine!

Unfortunatly since yesterday this method is useless!

Yesterday I've been shooting two types of clip:
- in 1920 25P mode: the mlv clips are fine, no green cast problem
- in 1280 50i mode (to get a slow motion effect) in 1928x606: the .mlv files seem to be ok when I read them in the FILE MANAGER or in MLRAWviewer, but the DNG files have the green cast problem in Resolve (and Resolve starts to bug). Unfortunalty the "mlv_dump --black-fix=2048 » doesn't fix the problem, and neither does the "exiftool -BlackLevel=2048 input.dng » method.

What can I do to save my corrupted clips? I really need to make color timing in Resolve, which is much better that the MLRAWviewer APPLE PRoRes conversion.
How can I avoid this issue in the future?
(I have to specify that in order to avoid this issue, yesterday i switched ON  Memory hack, Extra hacks and Fix black level.)

Maybe it's not a « black level" problem, but another metadata issue specific to the "1280 50i" mode?

thanks for your help!

tom