Author Topic: Dual ISO - massive dynamic range improvement (dual_iso.mo)  (Read 2049124 times)

kichetof

  • Contributor
  • Senior
  • *****
  • Posts: 469
  • Take a beer and enjoy it!
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2075 on: May 08, 2014, 09:27:39 PM »
and drag n drop works for you?
I can only use command line, and i dont know how and if command line works with folders or multiple files..

/usr/bin is a private folder, you need to copy with root privileges.

Before copy, make a backup of your actual version
Code: [Select]
sudo mv /usr/bin/dcraw /usr/bin/dcraw.9.20  #<-- I like to put the version of the file I backup, to know your version simply run dcraw into terminal
Code: [Select]
cd /folder/where/you/downloaded/dcraw
sudo cp dcraw /usr/bin/

DavidSh

  • Member
  • ***
  • Posts: 141
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2076 on: May 08, 2014, 11:05:36 PM »
/usr/bin is a private folder, you need to copy with root privileges.

Before copy, make a backup of your actual version
Code: [Select]
sudo mv /usr/bin/dcraw /usr/bin/dcraw.9.20  #<-- I like to put the version of the file I backup, to know your version simply run dcraw into terminal
Code: [Select]
cd /folder/where/you/downloaded/dcraw
sudo cp dcraw /usr/bin/
Kichetof,
Thank you for your kind a detailed answer, much appreciate.

But i wrote about me not able to use cr2hdr as a gui with drag n drop dual iso files.
I had no problems to copy the dcraw to usr/bin with command line.

Best
David 
600D | 5D3 | macOS Sierra | http://www.GentleDogMovie.com

kichetof

  • Contributor
  • Senior
  • *****
  • Posts: 469
  • Take a beer and enjoy it!
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2077 on: May 08, 2014, 11:31:59 PM »
Oh sorry ! hum I doesn't try. I only use in terminal or LR ;)

DavidSh

  • Member
  • ***
  • Posts: 141
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2078 on: May 08, 2014, 11:35:20 PM »
Oh sorry ! hum I doesn't try. I only use in terminal or LR ;)
Never mind man, you already helped a lot ! :)
is there a way to use terminal command line on a folder instead of one file? i looked at the option and didnt find any...
600D | 5D3 | macOS Sierra | http://www.GentleDogMovie.com

kichetof

  • Contributor
  • Senior
  • *****
  • Posts: 469
  • Take a beer and enjoy it!
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2079 on: May 08, 2014, 11:48:19 PM »
yes you can but I doesn't try it (just write now)

Code: [Select]
#!/bin/bash
for i in *.cr2
do
cr2hdr $f
done

Or if you use lightroom, use my plugin :)

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2080 on: May 08, 2014, 11:51:34 PM »
cr2hdr *.CR2

kichetof

  • Contributor
  • Senior
  • *****
  • Posts: 469
  • Take a beer and enjoy it!
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2081 on: May 08, 2014, 11:57:16 PM »
 8) its too late for my brain!

So simple! Thanks a1ex

DavidSh

  • Member
  • ***
  • Posts: 141
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2082 on: May 09, 2014, 12:21:20 AM »
cr2hdr *.CR2

omg too late for my brain too :)
600D | 5D3 | macOS Sierra | http://www.GentleDogMovie.com

dubzeebass

  • Senior
  • ****
  • Posts: 360
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2083 on: May 09, 2014, 04:36:36 PM »
Got flicker free Dualiso video working yesterday with the 20 bit cr2hdr on Mac, thanks again! I had to run a command the set the same whitelevel for all of them and then zero flickering. Great job guys!

szDE

  • New to the forum
  • *
  • Posts: 12
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2084 on: May 09, 2014, 10:54:50 PM »
Did anyone experience strange artifacts happening on long exposures? I did a 60 second shot at 100/400 and it contains an awful lot of colorful triangles.

See example.

dmilligan

  • Developer
  • Hero Member
  • *****
  • Posts: 3218
  • 60Da / 1100D / EOSM
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2085 on: May 09, 2014, 11:09:50 PM »
They are stuck/hot pixels - the longer the exposure the more you are going to have. For a 60s photo that many is not unusual. (They are triangles b/c of the demosaicing algo, pixel's values are somewhat interpolated from their neighbors, so one hot pixel has an effect on several pixels around it). You really should do dark frame subtraction for exposures that long.

Also, using dual iso here I would say is completely inappropriate. If your going to have the shutter open that long anyway and your subject is completely motionless, might as well just take another, shorter exposure to add to your DR, if there really is that much DR.

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2086 on: May 10, 2014, 07:04:53 AM »
To fix this particular shot, try --really-bad-pix.

szDE

  • New to the forum
  • *
  • Posts: 12
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2087 on: May 10, 2014, 01:19:44 PM »
Unfortunately I don't have originals to try different processing parameters, but I'll do some testing on different shots, thanks a1ex!

Considering how many bad pixels arise on long exposures, it would be nice to have this parameter kick in automatically while processing. But since people have different preferences (and cameras) it may be best to implement such feature on Barracuda GUI or LR plugin as a user programmable switch.

dmilligan, I always thought that demosaicing algorithms are mostly square-based (eg 2x2). I was surprised to see triangles ;-) As for dual being inappropriate for this shot - agreed, I'm just testing different ML settings to do a usability study in order to know when some features might be helpful and when not. Regular ISO 100 shot would work well too.

ShaunWoo

  • New to the forum
  • *
  • Posts: 19
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2088 on: May 11, 2014, 09:58:21 PM »
Hey again guys, about exiftool, using it to even out the levels, i got the tool to read the levels of a reference image by:

exiftool IMG_1234.DNG -WhiteLevel -BlackLevel
White Level                     : 47752
Black Level                     : 2032

but im curious, about this:
exiftool *.DNG "-WhiteLevel<BlackLevel"
exiftool *.DNG "-WhiteLevel+=45720"

thats two lines of codes, also, how do i process the above code to a sequence file, is it done one by one? is there a way to do it for all files, as it done 1 line of code:
exiftool *.DNG "-WhiteLevel<BlackLevel"
said 1 file was processed
then the next line, same, 1 file processed




UPDATE:

i dont know why i didnt think of this sooner, i feel so silly now:

ok i finally got the solution, if youre limited to around 500 files (file path too long etc), make a folder with 1 character name in root of c drive, say 0, make each individual subfolders for everyclip extracted from your shoot, and within each folder, select all dng files, (DONT SELECT WAV), rename with one character say "1", windows will rename them in same order), this way it uses less characters, and now you will be able to process very long sequences

for running multiple instances, its best used when you have a shoot with many clips, so dont use the script, instead, run cr2hdr with same levels parameter, for every clip in the collection rather than for every frame, so this way you will still have many instances, utilizing the CPU, running for every clip rather than frame

ShaunWoo

  • New to the forum
  • *
  • Posts: 19
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2089 on: May 13, 2014, 08:06:23 PM »
So i believe i figured out how to run the exif tool same levels process, as the above method is too time consuming, HOWEVER BEFORE YOU READ ON, it seems to have made no exposure differences, and it still flickers, but the command that a1ex given me was executed and the files were reprocessed (I BELIEVE)



Heres the mini guide i wrote for myself, so you guys maybe can point out the mistakes:

so, go into windows explorer folder with the dual iso processed files with different levels that flicker, make sure exiftool.exe is in the same folder, whilst holding shift right click in the explorer window blank area > open command window here, right click at the top of the window > edit > paste:

exiftool M28-1423.000000.DNG -WhiteLevel -BlackLevel

M28-1423.000000.DNG is the variable, copy and paste the filename that has the most correct exposure of your sequence, then to insert the command in cmd, copy the command, right click on top of the cmd window > edit > paste, press enter, it will give you the white and black levels, take away the smaller number from the big one

now copy and paste this command into cmd

exiftool "-WhiteLevel+=27808" C:\0\8

the number 27808 is the first variable, which is the answer that you get when you take the small number from the large number, and the C:\0\8 is the location of the files that have different levels, processed dngs, press enter, and it will process all files making new files and renaming the original file extensions, once done you can delete the old renamed files.

seems like it didnt make any exposure changes at all, still flickering

Audionut

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3657
  • Blunt and to the point
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2090 on: May 13, 2014, 09:00:29 PM »
You probably need to use something like this.

exiftool C:\0\8\*.DNG "-WhiteLevel+=27808"

ShaunWoo

  • New to the forum
  • *
  • Posts: 19
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2091 on: May 14, 2014, 12:27:33 PM »
trying your code now, compiled in after effects, rendering, and i get an error on frame 37, with an error:

After Effects error: Photoshop file format error (-30504).

( 45 :: 35 )

deleted the processed folder with your code, tried again, exact same result, gonna render 39 frame onwards

nope, seems all frames onward were corrupt, both times of processing, viewed all frames in adobe bridge, it was flickering every 2 frames or so, at extreme conditions, around 2 exposure steps id say, tried opening 39th frame on wards, photoshop cannot open, corrupt, with my previous code, no corruption, all files processed, however there was flickering still

citytrader

  • New to the forum
  • *
  • Posts: 4
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2092 on: May 14, 2014, 10:10:58 PM »
Do anyone could help me why I'm getting a huge magenta cast and low contrast when opening the dng dual iso in Photomatix?...  here are the files:

Original RAW: http://www50.zippyshare.com/v/22736945/file.html
Dual iso DNG: http://www49.zippyshare.com/v/63977107/file.html

Anyone knows if there is any way to process the dng in Photomatix without this problem?

Camera: 5D MK2
For dual iso I use the last version of cr2hdr-20bit.exe

Audionut

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3657
  • Blunt and to the point
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2093 on: May 15, 2014, 02:54:23 AM »
The DNG opens fine here in Adobe.
https://dl.dropboxusercontent.com/u/34113196/ML/_MG_9565.jpg

Suggest you contact HDRsoft support:  http://www.hdrsoft.com/support/index.html

citytrader

  • New to the forum
  • *
  • Posts: 4
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2094 on: May 15, 2014, 07:41:04 AM »
Thanks Audionut, yes on photoshop works, just wandered to know why it didnt work in photomatix... I emailed them, so let see what they answer

Audionut

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3657
  • Blunt and to the point
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2095 on: May 15, 2014, 07:45:04 AM »
Generally, color casts are from an incorrectly identified black level.  This should be an easy fix for them.  :)

kgv5

  • Hero Member
  • *****
  • Posts: 643
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2096 on: May 17, 2014, 12:56:18 PM »
This was mentioned some time ago but i believe it went without attracting much attention.

I was filming real estate video lately and used dualiso video for some shots inside the building to have more dynamic range for windows. During the post it is a real huge pain to find those dualiso files among the rest (and there are houndreds of files). I could of course watch every mlv in mlvplayer (i did that, very time consuming, had to write down the numbers) and than checked those files to proceed in raw video converter. Bigger problem is when files are processed - in resolve it is very hard to guess which is processed dual iso and which is normal (especially when you loose you notes from previous step:). I am still struggling with this.
Could it be possible to make custom file prefix work with mlvs?
Devs, please :) That would be a huuuge time saver.
With cinelog profile i could get rid of most of the color fringing so dualiso video is realy usable but with this this one major quirk.
Thanks
www.pilotmovies.pl   5D Mark III, 6D, 550D

budafilms

  • Hero Member
  • *****
  • Posts: 711
  • 5D Mark a1ex
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2097 on: May 17, 2014, 08:12:24 PM »
This was mentioned some time ago but i believe it went without attracting much attention.

I was filming real estate video lately and used dualiso video for some shots inside the building to have more dynamic range for windows. During the post it is a real huge pain to find those dualiso files among the rest (and there are houndreds of files). I could of course watch every mlv in mlvplayer (i did that, very time consuming, had to write down the numbers) and than checked those files to proceed in raw video converter. Bigger problem is when files are processed - in resolve it is very hard to guess which is processed dual iso and which is normal (especially when you loose you notes from previous step:). I am still struggling with this.
Could it be possible to make custom file prefix work with mlvs?
Devs, please :) That would be a huuuge time saver.
With cinelog profile i could get rid of most of the color fringing so dualiso video is realy usable but with this this one major quirk.
Thanks

Dual Iso has different name, Have you use .MLV or .RAW?

kgv5

  • Hero Member
  • *****
  • Posts: 643
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2098 on: May 17, 2014, 11:38:00 PM »
I use MLVs, 5d3, 1.1.3. Checked newest version from 17 may, files are named like this: M17-2329.MLV and seems that there is no difference between normal and dual iso. Also checked "custom file prefix" to be sure but doesn't work for movies. 
@budafilms - what file names do you get for dual iso movies?
www.pilotmovies.pl   5D Mark III, 6D, 550D

Marsu42

  • Contributor
  • Hero Member
  • *****
  • Posts: 1557
  • 66d + flashes
Re: Dual ISO - massive dynamic range improvement (dual_iso.mo)
« Reply #2099 on: May 18, 2014, 12:18:24 AM »
I'm wondering if there's any speed vs. iq tradeoff in current cr2hdr? That's because at least on my laptop it's so slow anyway I'll let it process the files when I'm not around ... so if a "--ultra-slow-highest-quality" setting would be there I'd certainly use it :-)