Author Topic: Switch for macOS Catalina/Linux (former cr2hdr.app)  (Read 101355 times)

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6458
Re: cr2hdr for macOS Sierra
« Reply #75 on: April 04, 2017, 11:23:41 AM »
Are you shooting compressed material? I use a1ex compressed_raw code mlv_dump in there but can you test with a version with mlv_dump directly as well?
https://bitbucket.org/Dannephoto/cr2hdr/downloads/mlv_dump

Run
mlv_dump --dng INPUT.mlv
Same result?

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6458
Re: cr2hdr for macOS Sierra
« Reply #76 on: April 05, 2017, 08:31:54 PM »
Download in first post.
To honor a1ex great lossless compression_raw work I put in his version of mlv_dump in cr2hdr.app together with the older one. I havn,t found out how to differ compressed raw material with metadata so the trick is to develop one dng file and if it turns out to be a compressed file cold pixel fix will totally max out showing 200000 found pixels. THis make scr2hdr.app choose the mlv_dump4k version instead. Otherwise cr2hdr.app will process mlv files as usual.
Don,t expect all mlv_dump functions to work here. compressed_raw still wip experimental
Don,t expect the 4k mlv_dump version to work exactly like the version of mlv_dump in cr2hdr.app going through the menu system since I,m using a slightlu modified version of mlv_dump.

Code: [Select]
if grep '200000' <<< "$(mlv_dump -m -f 1 --dng -o /tmp 2>/dev/null "$FILE" | awk '/cold pixels/ { print $6;}')" 
then
#frame extraction in mlv_dump4k makes multihtreading possible. Thanks to so-rose for highlighting this possibility
    frct=$(mlv_dump4k -f 0-1 --dng $mlv -o "$O2""${BASE}_1_$date"_ "$FILE" | awk '/Processed/ { print $2; }')
    mlv_dump4k -f 2-$(($frct/4)) --dng $mlv -o "$O2""${BASE}_1_$date"_ "$FILE" &
    mlv_dump4k -f $(($frct/4+1))-$(($frct/4+1+$frct/4)) --dng $mlv -o "$O2""${BASE}_1_$date"_ "$FILE" &
    mlv_dump4k -f $(($frct/4+1+$frct/4+1))-$(($frct/4+1+$frct/4+1+$frct/4)) --dng $mlv -o "$O2""${BASE}_1_$date"_ "$FILE" &
    mlv_dump4k -f $(($frct/4+1+$frct/4+1+$frct/4+1))-$frct --dng $mlv -o "$O2""${BASE}_1_$date"_ "$FILE"
else
#frame extraction in mlv_dump makes multihtreading possible. Thanks to so-rose for highlighting this possibility
    frct=$(mlv_dump -f 0-1 --dng $mlv -o "$O2""${BASE}_1_$date"_ "$FILE" | awk '/Processed/ { print $2; }')
    mlv_dump -f 2-$(($frct/4)) --dng $mlv -o "$O2""${BASE}_1_$date"_ "$FILE" &
    mlv_dump -f $(($frct/4+1))-$(($frct/4+1+$frct/4)) --dng $mlv -o "$O2""${BASE}_1_$date"_ "$FILE" &
    mlv_dump -f $(($frct/4+1+$frct/4+1))-$(($frct/4+1+$frct/4+1+$frct/4)) --dng $mlv -o "$O2""${BASE}_1_$date"_ "$FILE" &
    mlv_dump -f $(($frct/4+1+$frct/4+1+$frct/4+1))-$frct --dng $mlv -o "$O2""${BASE}_1_$date"_ "$FILE"
fi

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12390
  • Quarantined
Re: cr2hdr for macOS Sierra
« Reply #77 on: April 05, 2017, 08:40:55 PM »
Any issues using the new mlv_dump for regular footage?

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6458
Re: cr2hdr for macOS Sierra
« Reply #78 on: April 05, 2017, 08:54:51 PM »
Maybe not but I,m using a specific branch which adds white balance correction(mlvfs style) and also some extra code from Bouncyball which works with externa pixel map files. There are more stuff. All changes are ported by Bouncyball and coming from mainly mlvfs code or Bouncyball himself.
https://bitbucket.org/Dannephoto/magic-lantern/branch/ml-dng-unified_6_RAWC_rec_trigger-latest

Havn,t really tested this at all but now we can test run compressed_raw material easily and check what works and not. Deafeyejedi did some short testing. Maybe he can put up his findings here.
Wish I had more time for this stuff  8)


Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6458
Re: cr2hdr for macOS Sierra
« Reply #79 on: April 08, 2017, 10:57:13 PM »
New download.
Adjusted cold pixel fix number to 100000 or more since some files does not hit the maximum roof and falsely thinks it,s uncompressed footage. Thanks deafeyejedi for samples. Hopefully it will differ from compressed and non compressed files better now. If not, please report.

DeafEyeJedi

  • Hero Member
  • *****
  • Posts: 3369
  • 5D3 | M1 | 7D | 70D | SL1 | M2 | 50D
Re: cr2hdr for macOS Sierra
« Reply #80 on: April 09, 2017, 12:28:19 AM »
Thanks so much for the quick fixes. At first I thought it had something to do with the 2017-04-06 experimental build for 5D3.123 but doesn't seem to be.

I wanted to give ImageJ a go within your app and this is what I'm getting (even after placing the PointPicker inside the Plugin Folder).



Also I noticed with the latest cr2hdr.app I wasn't able to get it to respond to 14-bit lossless MLV's in HDR 100/1600 from 5D3.

Here are some short samples in case you want to try on your end: https://mega.nz/#!D1lHhAbL!X_QKk046acE_oWG1k8UVc9Yqo1eOqQTjCd9s3bvv-eU
5D3.113 | 5D3.123 | EOSM.203 | 7D.203 | 70D.112 | 100D.101 | EOSM2.* | 50D.109

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6458
Re: cr2hdr for macOS Sierra
« Reply #81 on: April 09, 2017, 02:38:45 AM »
Reworked mlv_dump compressed raw detecting so hopefully even better finding out what is what now. Check with latest.
About your ImageJ issue I can,t see what,s going on. See to it that you have ImageJ in applications folder and so on.

togg

  • Senior
  • ****
  • Posts: 413
Re: cr2hdr for macOS Sierra
« Reply #82 on: April 11, 2017, 10:09:42 PM »
Why when processing there's not the real time log in the same window of the options but the strange percentage thing in the menu bar? It feels really weird to me!

Also a small thing, when files are relocated on the A_ORIGINALS folder when converting RAW to MLV the R00 files etc are not moved, only the RAW one.

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6458
Re: cr2hdr for macOS Sierra
« Reply #83 on: April 12, 2017, 07:04:32 AM »
Time log in the same window?  Could you elaborate?
The automator wheel you are referring to isn't telling more than that the application is running. It's not possible for automator to know how long processing will take from the included scripts. I guess that estimation could be done and put into an indicator but it won't be exact.
I'll check into also moving the R00 and so on to the originals folder. Thanks.

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6458
Re: cr2hdr for macOS Sierra
« Reply #84 on: April 12, 2017, 07:43:36 AM »
Quote
Also a small thing, when files are relocated on the A_ORIGINALS folder when converting RAW to MLV the R00 files etc are not moved, only the RAW one.
Fixed!
By the way. Thanks to Bouncyball for the RAW to MLV conversion function.

DeafEyeJedi

  • Hero Member
  • *****
  • Posts: 3369
  • 5D3 | M1 | 7D | 70D | SL1 | M2 | 50D
cr2hdr for macOS Sierra
« Reply #85 on: April 12, 2017, 09:12:05 AM »
Fixed!
By the way. Thanks to Bouncyball for the RAW to MLV conversion function.

Excellent catch @togg! Thanks for the reminder @Danne for us to have the ability to go through old RAW files from back in the days of early ML to convert them into MLV's and none of this could have been possible without @Bouncyball's work.
5D3.113 | 5D3.123 | EOSM.203 | 7D.203 | 70D.112 | 100D.101 | EOSM2.* | 50D.109

togg

  • Senior
  • ****
  • Posts: 413
Re: cr2hdr for macOS Sierra
« Reply #86 on: April 12, 2017, 11:39:44 AM »
That was a fast fix, thanks!

@Danne I mean, it's strange that the app window disappear, I don't care that much about the estimation (although it would be usefull) but not seeing what the software is doing is strange.

@DeafEyeJedi Oh yes a big thank to Bouncyball! I've just discovered this feature thanks to Danne, I think a lot of people would like to know that something like this is possible. MLV Lite is a recent development so there are a lot of files from 5D2 owners out there.


I'm now converting 1.5 TB of files. I had to copy them from a 3TB drive that was full in order to do the conversion. Would it be difficult to throw in a destination folder option for the conversion from RAW to MLV? It would also avoid the fact that now the drive is reading and writing at the same time at half speed. For a big amount of files this basically mean one extra day of work for each of the two non necessary steps, more possible errors as well.

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6458
Re: cr2hdr for macOS Sierra
« Reply #87 on: April 12, 2017, 12:56:52 PM »
Thanks for feedback togg.

Quote
@Danne I mean, it's strange that the app window disappear, I don't care that much about the estimation (although it would be usefull) but not seeing what the software is doing is strange.
I thought of this a while ago. I guess I could let a small terminal window put in a corner tell exactly what processing is going on while it´s running. I already do some apple script notfication messaging when user selects (a) full auto from the main menu.

Quote
Would it be difficult to throw in a destination folder option for the conversion from RAW to MLV?
I`ll have to check into this. Might be working.

*Update
Could not find a way to specify MLV output however you can trick raw2dng to think it,s processing file in another location by creating symbolic links to the output location and then you,ll end up with the MLV files wherever you set output. I see if I can create something useful here.

togg

  • Senior
  • ****
  • Posts: 413
Re: cr2hdr for macOS Sierra
« Reply #88 on: April 12, 2017, 01:10:41 PM »
Thanks to you.

Yes exactly, the same terminal window. You already have the log file updated in real time anyway.

A small thing, the version number doesn't change right? I only see 1.2 in the finder informations.


@Danne Don't rush up the destination folder thing for me, I'm already on my path here anyway. I've already moved the files and the conversion is progressing, it would be usefull for other people.

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6458
Re: cr2hdr for macOS Sierra
« Reply #89 on: April 12, 2017, 01:54:49 PM »
Version history is always the same.
Would be good if you could test the specified output loction once it,s ready just to confirm working or not.
Thanks again for ideas and feedback.

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6458
Re: cr2hdr for macOS Sierra
« Reply #90 on: April 12, 2017, 02:32:20 PM »
Here we go. New version up. Specify output location for where to put MLV files when converting from RAW to MLV. Simply choose (2) to choose or create a new output folder. Works through symlinking.
Commit: https://bitbucket.org/Dannephoto/cr2hdr/commits/884bbada0050493a77aba013db7289d33d18617b


togg

  • Senior
  • ****
  • Posts: 413
Re: cr2hdr for macOS Sierra
« Reply #91 on: April 12, 2017, 02:48:54 PM »
Niiice. If I stop the conversion now (I'm doing the second batch, I've divided in 3) will it keep the files already converted or it will revert everything?

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6458
Re: cr2hdr for macOS Sierra
« Reply #92 on: April 12, 2017, 03:07:34 PM »
Files converted will stay converted.

Before stopping I would simply move all RAW files into A_ORIGINALS. By doing this cr2hdr.app will probably break or you can stop it by pressing the automator wheel if it doesn,t stop.

I posted yet another version just now which handles erasing symlinks after processing a little differently.
Havn,t had time to test with .R00 .R01 etc yet but should work.

*Update. Tested working with spanned file R00 assigned to alternate location.

togg

  • Senior
  • ****
  • Posts: 413
Re: cr2hdr for macOS Sierra
« Reply #93 on: April 12, 2017, 04:06:05 PM »
Yey double speed as expected! I was so sad of treating my hard drive roughly  :'(

It works with both single and spawned files. But there's a little bug. It creates aliasing of the RAW on the destination while converting, it deletes them when is a single file but doesn't when is a spawned one. Just a minor thing.

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6458
Re: cr2hdr for macOS Sierra
« Reply #94 on: April 12, 2017, 04:08:08 PM »
hehe, just fixed that quirk. Noticed it myself.
New version uploaded.

Nice that it works.

beauchampy

  • Senior
  • ****
  • Posts: 302
Re: cr2hdr for macOS Sierra
« Reply #95 on: April 12, 2017, 08:36:08 PM »
Love this app!  :D

DeafEyeJedi

  • Hero Member
  • *****
  • Posts: 3369
  • 5D3 | M1 | 7D | 70D | SL1 | M2 | 50D
Re: cr2hdr for macOS Sierra
« Reply #96 on: April 12, 2017, 08:41:10 PM »
So fuckin' HAPPY that more users are digging this app. Been trying to publicize this for years. Going back from Pre-cr2hdr-r to MLP to present has been a great journey and I am honored to continue to ride on this wave of yours that just never ends...

Thanks @Danne for sticking with us through thick and THIN!  8)
5D3.113 | 5D3.123 | EOSM.203 | 7D.203 | 70D.112 | 100D.101 | EOSM2.* | 50D.109

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6458
Re: cr2hdr for macOS Sierra
« Reply #97 on: April 12, 2017, 09:24:49 PM »
Thanks guys. Appreciated. Happy times  :D

togg

  • Senior
  • ****
  • Posts: 413
Re: cr2hdr for macOS Sierra
« Reply #98 on: April 13, 2017, 01:36:12 AM »
the aliases were not deleted! I mean it really takes a couple of click to get them out but I wanted to let you know.

Danne

  • Contributor
  • Hero Member
  • *****
  • Posts: 6458
Re: cr2hdr for macOS Sierra
« Reply #99 on: April 13, 2017, 01:45:38 AM »
Thanks. Thought I fixed it. Sure you downloaded latest?
Could you upload your version of cr2hdr.app so I can check it? Lots of versions floating now :).