G15 (1.00E) - smaller SD Bracketing value, no raw suffix - General Help and Assistance on using CHDK stable releases - CHDK Forum supplierdeeply

G15 (1.00E) - smaller SD Bracketing value, no raw suffix

  • 11 Replies
  • 555 Views
G15 (1.00E) - smaller SD Bracketing value, no raw suffix
« on: 01 / April / 2019, 20:39:01 »
Advertisements
Dear CHDK experts !

Could you please help me on my way shooting macro stacks with CHDK ?

I have two problems now:

1. Minimal step of Subject Distance bracketing is too large and even second frame is completely out of focus. In menu I have set it to minimal value (100) but it is not enough - how can I reduce it ?

2. I have tried everything to turn on RAW suffixes - nothing helps. Have someone experience to enable them on G15 ?

Thanks in advance.


Re: G15 (1.00E) - smaller SD Bracketing value, no raw suffix
« Reply #1 on: 01 / April / 2019, 22:10:26 »
1. Minimal step of Subject Distance bracketing is too large and even second frame is completely out of focus. In menu I have set it to minimal value (100) but it is not enough - how can I reduce it ?
If you are trying to do this via the built-in CHDK menu options, you might eventually find that you are better off running a script.  Here's a link to some good choices :  CHDK Wiki : User Written Scripts - Focus & DOF Stacking

Quote
2. I have tried everything to turn on RAW suffixes - nothing helps. Have someone experience to enable them on G15 ?
I'm guessing you have not really tried everything, but it's hard to tell from the limited details you've provided.  Are you trying to take RAW images (even though your G15 supports then natively)?  Or are you trying to change the file extension CHDK applies to its RAW images (possibly for download reasons)?  Exactly what steps / menu entries have you followed?

EDIT : I did not answer your original question.  Are you using the Enhanced Photo Operation -> Bracketing in Continuous Mode menu,  and trying to adjust the Subj. Dist. Bracket (mm) value ?  If so, use the zoom lever on your camera to switch the digit being adjusted - you should be able to move over and adjust in 1 mm increments.
« Last Edit: 01 / April / 2019, 22:30:22 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: G15 (1.00E) - smaller SD Bracketing value, no raw suffix
« Reply #2 on: 07 / April / 2019, 15:32:34 »
Thank you very much for detailed answer and scripts using suggestion - I was playing with them - they gives real fantastic abilities, zoom lever also works fine.

Raw suffix problem still exists. You are right - I was not tryed "everything", but:

1. Going to "Bracketing  in continuous mode / Add RAW suffix" - ON
2. Having camera with native RAW support turning RAW ON/OFF in original camera menu.
3. Turning RAW ON/OFF in CHDK menu, including ON/OFF DNG support.
4. All possible combinations of above.

While experimentig with options in CHDK "RAW (digital negative)" menu settiing I found that chaging name/extention work fine, but suffix still not exists.

This is not serious problem to me, but small piece of comfort while downloading large number of bracketed series.

Don't you have any idea why this happening ?

*

Offline reyalp

  • ******
  • 12109
Re: G15 (1.00E) - smaller SD Bracketing value, no raw suffix
« Reply #3 on: 07 / April / 2019, 16:28:37 »
1. Going to "Bracketing  in continuous mode / Add RAW suffix" - ON
2. Having camera with native RAW support turning RAW ON/OFF in original camera menu.
3. Turning RAW ON/OFF in CHDK menu, including ON/OFF DNG support.
4. All possible combinations of above.
If it did work, it would only apply to CHDK RAW/DNG (not canon raw or jpeg), when CHDK bracketing in continuous is used (not native bracketing). But I just tried it on my g7x and it doesn't seem to work, so it must have been broken somewhere along the way  :-[

Thanks for the bug report, I'll look into more in a bit. From a quick look it seems like the raw.c raw_createfile (shooting_get_drive_mode()!=1) check is backwards, but maybe there's some subtlety I'm missing.
Don't forget what the H stands for.


Re: G15 (1.00E) - smaller SD Bracketing value, no raw suffix
« Reply #4 on: 07 / April / 2019, 16:57:37 »
From a quick look it seems like the raw.c raw_createfile (shooting_get_drive_mode()!=1) check is backwards, but maybe there's some subtlety I'm missing.

If you point me to sources location I can try to fix it myself - C is my first language :)

Re: G15 (1.00E) - smaller SD Bracketing value, no raw suffix
« Reply #5 on: 07 / April / 2019, 17:37:14 »
If you point me to sources location I can try to fix it myself - C is my first language :)
Here you go : CHDK Wiki : Modifying the CHDK Sources

But I'd bet $100 @reyalp will have this sorted out a little faster than you can setup a build environment and figure out what everything does.  Although you are of course welcome to try.

Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 12109
Re: G15 (1.00E) - smaller SD Bracketing value, no raw suffix
« Reply #6 on: 07 / April / 2019, 18:10:31 »
If you point me to sources location I can try to fix it myself - C is my first language :)
Line 119 in the current trunk:
https://app.assembla.com/spaces/chdk/subversion/source/HEAD/trunk/core/raw.c#ln119

If you have a build environment set up, try swapping the != to ==

If you are on windows, https://chdk.setepontos.com/index.php?topic=12752.0 should get you a toolchain pretty quickly.

If you aren't interested hacking CHDK, I should be able to look into this later today.

IIRC this feature was problematic on cameras with very short filename max path (dryos 39) but that should not affect modern cameras like g15, and would have different symptoms (crashing or file not being saved at all)

Don't forget what the H stands for.

Re: G15 (1.00E) - smaller SD Bracketing value, no raw suffix
« Reply #7 on: 07 / April / 2019, 20:03:00 »
Thank you - I have rebuild DISKBOOT.BIN with patch you suggested (under Ubuntu 18.04 without problem) , but no result - it seams to me that DISKBOOT.BIN was not changed at all (I played with RAW_BRACKETING_FILENAME and RAW_TARGET_FILENAME trying to add some suffix manually - the same thing - nothing changed).

Is it enough to replace DISKBOOT.BIN in flash card or may be I need to do something else (clear some cache for example) ?

PS: I am _very_ interesting in CHDK hacking :)


Re: G15 (1.00E) - smaller SD Bracketing value, no raw suffix
« Reply #8 on: 07 / April / 2019, 20:51:37 »

Is it enough to replace DISKBOOT.BIN in flash card or may be I need to do something else (clear some cache for example) ?
There are also module files that need to be copied over.

 Edit : look for the  .flt extension in the A/CHDK/MODULES folder on your SD card
« Last Edit: 07 / April / 2019, 21:03:08 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 12109
Re: G15 (1.00E) - smaller SD Bracketing value, no raw suffix
« Reply #9 on: 08 / April / 2019, 00:48:11 »
Is it enough to replace DISKBOOT.BIN in flash card or may be I need to do something else (clear some cache for example) ?
If you use autoboot, DISKBOOT.BIN is loaded directly from the SD card, so if the updated file is there, there's no way to get an old version. If doubt the expected version is running, you can use "show build info" in the misc menu, which includes the build date.

If you use "firm update" loading, then CHDK is loaded from the PS.FI2 file, and DISKBOOT.BIN is ignored completely.

As waterwingz says, you should generally update modules when you build, but in this case the code you are changing is in the core, so those changes would have been present. Running modules for a different version can cause other problems.

If you do more than occasional builds, using chdkptp (https://app.assembla.com/spaces/chdkptp/wiki) to upload can be a lot more convenient than the card reader.
Don't forget what the H stands for.

 

Related Topics