convmlv icon indicating copy to clipboard operation
convmlv copied to clipboard

.DNG extension throwing error

Open thennicke opened this issue 8 years ago • 2 comments

Line 1997 of convmlv.sh: mv "${3}/${name%.*}.DNG" "${3}/${name%.*}.dng" #Rename *.DNG to *.dng. has no condition on it, so throws an error if there are no .DNG files. I have tested this program with normal and dual_iso MLV files, and only the dual_iso ones seem to trigger this error. (Would fix it myself but I'm not yet very familiar with Bash)

thennicke avatar Feb 22 '17 12:02 thennicke

Thanks for the bug report!

That line is triggered when developing dual ISO DNGs (the inc_iso function). It runs, for each orig.dng in the sequence:

  • cr2hdr on orig.dng
  • this generates orig.DNG
  • moves away orig.dng
  • renames orig.DNG to orig.dng

The explanation seems to be that, for whatever reason, cr2hdr doesn't generate orig.DNG. It could be that mlv_dump failed, or that cr2hdr failed - usually because of the options passed in. I doubt mlv_dump is the problem, though, but cr2hdr is probably the option.

As such, adding a conditional on it probably wouldn't help if cr2hdr is failing. It's not pretty code :) thats what the modularize branch is for!

But. Could you perhaps post the convmlv command and/or config file that you used?

so-rose avatar Feb 22 '17 15:02 so-rose

Oh, I see. Thanks for the explanation. The command I'm using is ./convmlv.sh --config ~/Projects/convmlv/configs/global.conf -k -r 1-10 -u -m ~/Videos/MLRAW/Samples/dual_iso_25fps1080.MLV And my global.conf is global.txt (changed file extension so I could upload it here) I'm using a custom LUT but otherwise that should work.

thennicke avatar Feb 22 '17 21:02 thennicke