Author Topic: MLV App 1.14 - All in one MLV Video Post Processing App [Windows, Mac and Linux]  (Read 1090503 times)

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7396
Tested the deflicker algo in mlvfs applied through program "Switch" boy, long time since I used that one. Damn you Mlv app! ;). Anyway. Flicker seems too subtle here so it wasn´t removed.
So, next up I tweaked Switch to use tblend filter which usually neglects this filter if not a HDR file in Switch and the result was much better. Check file here:
https://bitbucket.org/Dannephoto/magic-lantern/downloads/M24-1055.mov

Then I tested running the tblend filter on the above file once more and result seems almost perfect:
https://bitbucket.org/Dannephoto/magic-lantern/downloads/M24-1055b.mov

So, a script with a double pass run of tblend averaging should be a good compromise. Of course averaging frames has its downsides so pick your poison wisely ;).

Sidenote: aah, how nicely dcraw handles highlights in this case(-H 2 I think).

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7396
Actually, there´s a deflicker solution in Mlv App. Set export options "Smooth aliasing" to 3 pass. Works really nice too:
https://bitbucket.org/Dannephoto/magic-lantern/downloads/M24-1055c.mov

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 2011
Not bad, not bad. The flicker is gone at the cost of some ghosting.
5D3.113 | EOSM.202

Veerle

  • Member
  • ***
  • Posts: 113

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7396
It could work. I tested this with mlvfs set to around 5000, can't remember exactly. Tested to even out hdr files so that was a pretty strong contrasty test file. No idea how above file will work. Maybe @dmilligan (author) still around?
dmilligan

But, perhaps deflicker is not what’s needed. Really liking the look of Danne’s version b (double pass run of tblend). Is there a way this could be implemented in the app? Smooth aliasing is quite good too, but, like masc said, creates some ghosting.

Or alternatively, (similar to mentioned before) create an in app feature that runs a script calculating the exposure difference between frames, then set the desired target expo amount until pleased. I’m sure one of you geniuses could figure this out...

But ok... I don’t desperately need this/a perfect fix right now, I can probably work around it. But I do think it’ll be a neat feature to add to the app.
Ghosting is present in both solutions. Smooth aliasing is probably the better one.
Deflicker programs exists for timelapse use. Google around maybe you´ll find something useful.

Solving your issue is easy. Record with normal shutter speeds, use nd filter etc. There´s a reason why shutters are slow for filming.

Veerle

  • Member
  • ***
  • Posts: 113

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7396
This leads me to another question though (though perhaps not entirely the right topic):
Even though Canon's native video has many faults (which is why we use Magic Lantern), it does manage to prevent/ fix certain problems in-camera. There is no black sun, light flickering or much aliasing, color fringing or chromatic aberration no matter what settings you use. Makes me wonder, how do they do it...?
Whole basket of misconceptions right there...

Check out search button or google raw video/magic lantern and you´ll probably find a lot of answers right away.

Quentin

  • Member
  • ***
  • Posts: 150
How do you manage Dual Tone ?
I mean, how to tint shadows and highlights with color ?
With HSV ?

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 2011
Even though Canon's native video has many faults (which is why we use Magic Lantern), it does manage to prevent/ fix certain problems in-camera. There is no black sun, light flickering or much aliasing, color fringing or chromatic aberration no matter what settings you use. Makes me wonder, how do they do it...?
Really? Do you have a different EOS M than I have? I get also in H.264 a black sun, much more aliasing than in RAW, CA's are still there, etc. ...

How do you manage Dual Tone ?
I mean, how to tint shadows and highlights with color ?
With HSV ?
I don't know what you mean with dual tone. But if you like to setup colors in dependency to brightness you could use the gradation curve tool.
5D3.113 | EOSM.202

Quentin

  • Member
  • ***
  • Posts: 150
In native Adobe Camera RAW Filter, you can tint highlights with a color, you can tint shadows with a color and adjust the balance between the two.
If you double click on any adjustment it goes to default value.
Its more practical than Curves adjustment and very easy to change your mind, rathen than changing curves.
Personal taste here.

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 2011
We don't have this in MLVApp. We just have an overall tint filter, which works more or less like a optical color filter in front of a lens.
5D3.113 | EOSM.202

Quentin

  • Member
  • ***
  • Posts: 150
Thanks for your reply. I am already excited with this App. :)


Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7396
Cool @ricardopt
Please share your workflow.

ricardopt

  • Member
  • ***
  • Posts: 142
Hi Danne, nothing new, it's a widely known solution,

1- load your video on your NLE (hitfilm, shotcut, openshot, davinci resolve etc etc)
2- duplicate your video
3- set opacity to 100% on first video
4- set opacity to 50% on the second (duplicated) video
5- offset both videos by 1 frame (video one starts at 00.00 and video 2 (duplicated) starts at 00:01)

change opacity level on step 4 to your liking, opacity might be called "transparency" on other video editors.

In the end we can sharpen thevideo a little and do some tweaking to get rid of some of the blur.

Hope it helps.

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7396
Hehe, very nice!

Veerle

  • Member
  • ***
  • Posts: 113

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7396
Yeah, nope. No answers. Perhaps my query is wrong... Care to enlighten me or drop a link?
There's not one link to cover all the basics.  My tip is you deepen your understanding both around camera setup basics when filming and also the difference between raw and h264. Both your camera manual and the search field in here are two helping friends.

Veerle

  • Member
  • ***
  • Posts: 113

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 2011
... far less moire...
LOL... sorry... no. Theoretically impossible and practically too. Might be correct if you forget to debayer, or use the simplest and worst algorithms, else: no. But if H264 is better for you, I would not recommend to use RAW (not worth the effort then).

EOSM:
H264 readout 3x5 (heavy moiree + stretched + compression artifacts)
RAW readout 3x3 (some moiree), 1x3 (no moiree), 1x1 (no moiree)
5D3.113 | EOSM.202

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7396
Posted in wrong thread oops.

Veerle

  • Member
  • ***
  • Posts: 113

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
EOSM:
H264 readout 3x5 (heavy moiree + stretched + compression artifacts)
RAW readout 3x3 (some moiree), 1x3 (no moiree), 1x1 (no moiree)

FWIW, H.264 on EOS M (vanilla Canon firmware) is 3x3 with column binning and line skipping, unless you record at 720p50/60.

Canons native video has no black sun, flickering and far less moire...
[....]
There is even a difference between h264 with ML and h264 without (native)...

Black sun can be caused by incorrect CMOS settings. I did not check Danne's configuration, so I don't know what tweaks he applies to H.264, if any; it's just a guess. You could do the following tests:

- disable crop_rec (in the Movie menu)
- do not load crop_rec.mo at all (this module tweaks the image readout process)
- try some build from the download page (main or experimental); I don't expect this issue to be present there.

Moire: I'm unable to reproduce the issue (mlv_dump + ufraw + crop + resize to 450px, no focus pixel correction), so it must be from postprocessing. In both cases (H.264 and MLV), the readout was 3x3 with column binning / line skipping, so the aliasing should be pretty much the same.



Flicker: known issue.

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7396
Black sun can be caused by incorrect CMOS settings. I did not check Danne's configuration, so I don't know what tweaks he applies to H.264...
Interesting. I apply this to all presets in crop_rec. Could it be the culprit?:
Code: [Select]
        /* all presets */
        if (is_EOSM)
        {
            /* hot/cold pixels. Usually 0x2. 0x34 to be tested */
            cmos_new[4] = 0x34;
        }

Here is a build with above tweak disabled. If possible please test if better:
https://bitbucket.org/Dannephoto/magic-lantern/downloads/crop_rec_4k_mlv_snd_isogain_1x3_presets_2019Aug07.EOSM2_black_sun_fix.zip

By the way. Is that flicker fix good to go, I could put in crop_rec.c? THere´s talk of a bug?

EDIT: tried the flicker fix but still flickers...

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7396
Tested another thing regarding flicker in with high speed shutter. When in mcm rewired mode and 24 fps in canon menu increasing shutter to around 2500 and faster, test 1/4000 flicker is very evident. If I then set 25 fps in canon menu flicker is gone. Solution for flicker free 24 fps seems to be to select 25 fps in canon menu then change reg 6014 so we get 24 fps. What makes?

Testfiles:
https://bitbucket.org/Dannephoto/magic-lantern/downloads/canon25fpsnoflicker.MLV
https://bitbucket.org/Dannephoto/magic-lantern/downloads/canon24fpsflicker.MLV

EDIT: hehe, looking through adtg_gui I see the variying 6014 reg when canon menu is set to 24 fps. When set to 25 fps it´s only one value.


EDIT 2:
Issue fixed regarding flickering shutter for mcm rewired mode:
Commit:
https://bitbucket.org/Dannephoto/magic-lantern/commits/172284f6166b84f6996c089eb4b7b291fcb6a1b0

Build on top here:
https://www.magiclantern.fm/forum/index.php?topic=9741.msg208959#msg208959

Black sun thingy still needs attention...