Author Topic: Lightroom plugin cr2hdr v3.0 DEV (WIP)  (Read 392825 times)

kichetof

  • Senior
  • ****
  • Posts: 452
  • Take a beer and enjoy it!
Re: Lightroom plugin cr2hdr v3.0 DEV (WIP)
« Reply #1225 on: March 16, 2017, 09:58:13 PM »
New version

Download cr2hdr.3.0-170316-02-MLV-DEV
  • Fixed a bug
  • Added subfolder option with video infos (frames, fps)

Let me know!

DeafEyeJedi

  • Hero Member
  • *****
  • Posts: 3031
  • 5D3 / M1 / 7D / 70D / SL1
Lightroom plugin cr2hdr v3.0 DEV (WIP)
« Reply #1226 on: March 17, 2017, 12:42:36 AM »
@DeafEyeJedi I need to catch this error. Could you explain me what did you do ? (in details)

To use the plugin, go in Library Module, select a Folder inside your tree (a folder that contains MLV files) and then go to Library Menu -> Plug-in Extras -> Import MLV file

Actually learned that this bug I encountered earlier may have something to do with not having additional files other than MLV's. Decided to include another file (be it CR2 or .mov) to enable out the selected library in order for LR & your plugin to respond properly together. Here's a screenflow and you will see in the first minute or so which shows me adding a random .mov file into the folder (full of MLV's) which then worked with the plugin afterwards. Not with just MLV's alone within the Folder for whatever reason.

https://vimeo.com/208752099

FYI I ran this with the latest cr2hdr.3.0-170316-02-MLV-DEV and as always Thanks for the quick updates @kichetof!
5D3.113 • 5D3.123 • EOSM.203 • 7D.203 • 70D.112 • 100D.101

Danne

  • Hero Member
  • *****
  • Posts: 3387
Re: Lightroom plugin cr2hdr v3.0 DEV (WIP)
« Reply #1227 on: March 17, 2017, 07:31:36 AM »
About HDR and even exporting highres ProRes and even proxy it should be doable since we now have folders with dng files to work with from within lightroom. Not sure if that is something you thought about but let me know if interested and I can post some piping commands which works with dcraw and ffmpeg.

NoCp_Albert

  • New to the forum
  • *
  • Posts: 33
  • Albert Stoecker
Re: Lightroom plugin cr2hdr v3.0 DEV (WIP)
« Reply #1228 on: March 17, 2017, 09:32:19 AM »
@kichetof

I try the new version also in WIN 10 with the additional Video Info’s, works very nice. Thanks for your work, @kichetof
If you can realize some of the Proposal’s from @Danne" together with him will be also very interesting and make workflows easier
EOS 5D3 -113,-123, EOS 7D2, EOS 400, Lens EF16-35 f4 L, EF35 f2 IS, EF85 f1.8, EF 24-105 f4 L, EF 100-400 L II, EF 600 f4 L, Samyang 14mm f2.8, Canon Tc 1,4III, Kenko Tc 1,4 DGC

kichetof

  • Senior
  • ****
  • Posts: 452
  • Take a beer and enjoy it!
Re: Lightroom plugin cr2hdr v3.0 DEV (WIP)
« Reply #1229 on: March 17, 2017, 10:09:05 AM »
@DeafEyeJedi yeah great news! There are 2 bugs that I fixed yesterday :)
You could create a new folder in LR and simply copy paste your MLV files inside (without Lightroom importation context). The only mandatory thing is that the folder is in the LR database (it's why you need to use an existing or a new one created by LR)

@Danne & @NoCp_Albert it could be a good idea!
Could you list me all features that you would like in the plugin ? Now I'm little bit confused with new features requested.

And need to be cross platform compatible.



Before to add new features, I'll merge MLV to final version and DEV status will be finished.
Could you confirm me that everything works well with DNG and MLV for you ?

After that, I'll move cr2hdr conversion to Library Plug-in Extras to be able to chain it with MLV and I'll add new features :) I think it's the good way!

NoCp_Albert

  • New to the forum
  • *
  • Posts: 33
  • Albert Stoecker
Re: Lightroom plugin cr2hdr v3.0 DEV (WIP)
« Reply #1230 on: March 17, 2017, 10:53:01 AM »
@kichetof

for me works ok in Windows 10.

If you ask for some more, I always use Auto ETTR with link to dual-ISO function. In other words, the Camera decides depending on the lighting conditions whether dual ISO with different ISO settings works. Is there a way when importing files to the MLV distinguish between normal and dual-ISO shots and these in separate folder to import? So we can move forword with the "Normal" MLV Files and start the Dual ISO conversion separated.
EOS 5D3 -113,-123, EOS 7D2, EOS 400, Lens EF16-35 f4 L, EF35 f2 IS, EF85 f1.8, EF 24-105 f4 L, EF 100-400 L II, EF 600 f4 L, Samyang 14mm f2.8, Canon Tc 1,4III, Kenko Tc 1,4 DGC

Danne

  • Hero Member
  • *****
  • Posts: 3387
Re: Lightroom plugin cr2hdr v3.0 DEV (WIP)
« Reply #1231 on: March 17, 2017, 10:57:01 AM »
Here we go. Piping fiesta. Should work in windows as well but the pipe command looks different. HDR piping at the bottom. These options should maybe be put into the MLV menu?

ProRes4444
Code: [Select]
find . -maxdepth 1 -iname '*.dng' -print0 | xargs -0 dcraw +M -c -6 -W -q 3 $H $a  | ffmpeg $wav -f image2pipe -vcodec ppm -r "$fps" -i pipe:0 $sd -vcodec prores_ks -pix_fmt yuv444p10 -n -r "$fps" "name".mov

ProRes proxy
Code: [Select]
find . -maxdepth 1 -iname '*.dng' -print0 | xargs -0 dcraw +M -c -6 -W -q 3 $H $a  | ffmpeg $wav -f image2pipe -vcodec ppm -r "$fps" -i pipe:0 $sd -vcodec prores -profile:v 1 -n -r "$fps" "name".mov
About dcraw variables $H $a they should be selectable. It,s auto white balance and highlight recovery.
-a=dcraw auto white balance
-H 2=dcraw highlight recovery

ffmpeg audio should be set only if a wav file exists or else it won,t process the files.
$wav=-i *.wav
$sd=-c:v copy -c:a aac
$fps=add fps from dng metadata

I do this
Code: [Select]
if ls *.wav
then
wav=$(printf "%s\n" -i *.wav)
sd=$(printf "%s\n" -c:v copy -c:a aac)
fi



About HDR there is a great filter for averaging consecutive frames, tblend filter.

Recommended to film 50 or 60fps. Output will be also the same fps as original clip
Code: [Select]
find . -maxdepth 1 -iname '*.dng' -print0 | xargs -0 dcraw +M -c -6 -W -q 3 $H $a | ffmpeg $wav -f image2pipe -vcodec ppm -r "$fps" -i pipe:0 $sd -vcodec prores_ks -pix_fmt yuv444p10 -n -r "$fps" –vf "tblend=all_mode=average" "name".mov
Possible to halfen frames per second with more piping. 50fps becomes 25fps etc.
Code: [Select]
find . -maxdepth 1 -iname '*.dng' -print0 | xargs -0 dcraw +M -c -6 -W -q 3 $H $a | ffmpeg $wav -f image2pipe -vcodec ppm -r "$fps" -i pipe:0 $sd -vcodec prores_ks -pix_fmt yuv444p10 -n -r "$fps" –vf "tblend=all_mode=average"  -f matroska - | ffmpeg -i - -vcodec prores_ks -pix_fmt yuv444p10 -r $(echo $fps / 2 | bc -l)  "name".mov

kichetof

  • Senior
  • ****
  • Posts: 452
  • Take a beer and enjoy it!
Re: Lightroom plugin cr2hdr v3.0 DEV (WIP)
« Reply #1232 on: March 17, 2017, 11:06:07 AM »
@NoCp_Albert the only way to determine if a file is a Dual ISO --> cr2hdr, so you need to import MLV and after that run cr2hdr.

When cr2hdr will be ready to chain it, I'll add an option in MLV import to run cr2hdr and try only the first picture if it's a Dual ISO.

@Danne wow thanks a lot !!  8)
Now I need to explode all your pipes for windows...  :'(

What do you think about an Export plugin for these settings ?
Export to ProRes4444, ProRes proxy, HDR

And... it's always cr2hdr plugin ? or Magic Lantern plugin ?

Danne

  • Hero Member
  • *****
  • Posts: 3387
Re: Lightroom plugin cr2hdr v3.0 DEV (WIP)
« Reply #1233 on: March 17, 2017, 11:07:53 AM »
Yeah, I feel your pain ;). Maybe ask the MLVP guy, he got my tips for his windows app about HDR and ported it.

Export plugin sounds nice.

My menu looks like this. You could skip most of it but only to give some ideas.


kichetof

  • Senior
  • ****
  • Posts: 452
  • Take a beer and enjoy it!
Re: Lightroom plugin cr2hdr v3.0 DEV (WIP)
« Reply #1234 on: March 17, 2017, 11:29:16 AM »
Thanks @Danne for the ideas !

Actually I'm a little bit perplex to add it in cr2hdr. I think a new plugin, Magic Lantern, could be a good idea to add every feature about it.
I'll ask @a1ex and @g3gg0 :)

Danne

  • Hero Member
  • *****
  • Posts: 3387
Re: Lightroom plugin cr2hdr v3.0 DEV (WIP)
« Reply #1235 on: March 17, 2017, 12:30:49 PM »
Maybe a separare plugin. You can then beef it up with other functions  8)

kichetof

  • Senior
  • ****
  • Posts: 452
  • Take a beer and enjoy it!
Re: Lightroom plugin cr2hdr v3.0 DEV (WIP)
« Reply #1236 on: March 17, 2017, 01:25:02 PM »
Maybe a new one, with everything inside!! Who can do more can do less  8)

robhunter

  • Just arrived
  • *
  • Posts: 1
Re: Lightroom plugin cr2hdr v3.0 DEV (WIP)
« Reply #1237 on: April 26, 2017, 10:49:01 PM »
So I am having a lot of troubles with Lightroom and I don't know why...

I'm using latest version https://bitbucket.org/kichetof/lr_cr2hdr/downloads/cr2hdr.3.0-170305-02-SLP-DEV.zip
Tried every setting, but it does also happen with default ones.

Original CR2
https://mega.nz/#!5ck0GYgL!sNqAR6RwHjCtw4bnH_ak4vyEZEXsMPwMknwh1zPcYHA
This is the DNG file viewed in MLRawViewer

This is the exact same DNG viewed in Lightroom

No tweaks in any tool, just opened file and boom... Lightroom is overexposing EVERY dng, it is not only this file in particular, every DNG I Open is overexposed in LR...

Using EOS 70D + Mac.

Any help? I have about 1200 pictures I want to process and this is getting me nuts...

Danne

  • Hero Member
  • *****
  • Posts: 3387
Re: Lightroom plugin cr2hdr v3.0 DEV (WIP)
« Reply #1238 on: April 27, 2017, 12:07:30 AM »
Try without adobe dng converter creatng lossless compression. You might also get lycky with this tool which will be very fast for big batches of CR2 files.
https://bitbucket.org/Dannephoto/cr2hdr/overview


kichetof

  • Senior
  • ****
  • Posts: 452
  • Take a beer and enjoy it!
Re: Lightroom plugin cr2hdr v3.0 DEV (WIP)
« Reply #1240 on: Yesterday at 10:20:40 PM »
First attempt with Lightroom Classic CC (v7), everything works as expected :)