hdr1.lua - hdr.lua script upgrade - page 2 - Completed and Working Scripts - CHDK Forum

hdr1.lua - hdr.lua script upgrade

  • 18 Replies
  • 12416 Views
Re: hdr1.lua - hdr.lua script upgrade
« Reply #10 on: 10 / December / 2014, 08:12:05 »
Advertisements
Add a sleep(2000) after each shoot() function and see if that stabilizes things?

It worked. I ran the script twice and it finished smoothly in both cases.


You need to switch to the latest version of 1.3 to fix this.

This also worked.

Thanks to both of you.

I added to the script a "Raw delay" parameter for those who run chdk version 1.2
Canon A3100IS - 100d
CHDK a3100-100d-1.2.0-3643-full_ALPHA

Re: hdr1.lua - hdr.lua script upgrade
« Reply #11 on: 10 / December / 2014, 09:20:32 »
Add a sleep(2000) after each shoot() function and see if that stabilizes things?

It worked. I ran the script twice and it finished smoothly in both cases.

I added to the script a "Raw delay" parameter for those who run chdk version 1.2

As for the sleep delay, at first, I thought it would have to be proportional to the raw saving duration in my camera/SD card, which is something around 6, 7 seconds.

I ran a test with the new raw delay parameter set up to 7s, then decreased to 4, then to 2s. All of these cases were successful.

So, although I don't understand quite well why a 2s delay is enough to avoid the crash in a camera that needs 6 to 7s to write a raw image, I'll leave it like that. (I'm still not very confident to go with version 1.3, it presents some strange behaviours like, for instance, the purge raw option in the file browser not working as it does with version 1.2)
Canon A3100IS - 100d
CHDK a3100-100d-1.2.0-3643-full_ALPHA

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: hdr1.lua - hdr.lua script upgrade
« Reply #12 on: 10 / December / 2014, 13:48:14 »
(I'm still not very confident to go with version 1.3, it presents some strange behaviours like, for instance, the purge raw option in the file browser not working as it does with version 1.2)

Can you provide more details on what is not working please.

1.3 is close to being made the stable version (1.2 will be retired). If there are any issues we would like to know about them.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: hdr1.lua - hdr.lua script upgrade
« Reply #13 on: 10 / December / 2014, 14:59:20 »
(I'm still not very confident to go with version 1.3, it presents some strange behaviours like, for instance, the purge raw option in the file browser not working as it does with version 1.2)

Can you provide more details on what is not working please.

1.3 is close to being made the stable version (1.2 will be retired). If there are any issues we would like to know about them.

Phil.

The camera has a couple of jpg's and corresponding dng's, and I want to do a mass delete.

To delete the jpg's, I use Canon's mass delete option.

To delete the dng's, as I do in version 1.2, I enter File Browser, go to A/DCIM, highlight the folder where the images are and press the left button ("mountain"), to be presented with the following options:
Cut
Copy
Select Inverse
Purge Raw
More -->

In v1.2, if I select Purge Raw, it purges all raw files without corresponding jpg's.

In v1.3 it shows the following message:

"Purge Raw feature does not apply to this item".

I could only delete the raw files one by one, which is something rather boring, when you may have dozens, maybe hundreds of raw files.

Am I doing something wrong?
Canon A3100IS - 100d
CHDK a3100-100d-1.2.0-3643-full_ALPHA

*

Offline srsa_4c

  • ******
  • 4451
Re: hdr1.lua - hdr.lua script upgrade
« Reply #14 on: 10 / December / 2014, 19:48:01 »
To delete the dng's, as I do in version 1.2, I enter File Browser, go to A/DCIM, highlight the folder where the images are and press the left button ("mountain"), to be presented with the following options:
Cut
Copy
Select Inverse
Purge Raw
More -->

In v1.2, if I select Purge Raw, it purges all raw files without corresponding jpg's.

In v1.3 it shows the following message:

"Purge Raw feature does not apply to this item".

I could only delete the raw files one by one, which is something rather boring, when you may have dozens, maybe hundreds of raw files.

Am I doing something wrong?
No, that's something that has been overlooked. 'Purge Raw' will only work on directories that are named xxxCANON (the fourth character has to be 'C'). If this isn't getting noticed, you may want to post a reminder here: http://chdk.setepontos.com/index.php?topic=265.0

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: hdr1.lua - hdr.lua script upgrade
« Reply #15 on: 11 / December / 2014, 05:00:57 »
I'm not seeing any difference in behaviour between 1.2 and 1.3.

As srsa_4c pointed out the code has not been updated to handle the date based folder names Canon now uses; but this affects 1.2 as much as 1.3.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

Re: hdr1.lua - hdr.lua script upgrade
« Reply #16 on: 11 / December / 2014, 06:05:03 »
I'm not seeing any difference in behaviour between 1.2 and 1.3.

As srsa_4c pointed out the code has not been updated to handle the date based folder names Canon now uses; but this affects 1.2 as much as 1.3.

Phil.

Humm, I think I understand what's going on.

On v1.2, when I activated raw saving, it would create a specific folder for that, and I'm not 100% sure, but I think its naming format was something like srsa_4c mentioned.

On v1.3, there are three alternatives regarding the raw folder: withJPG, A/DCIM and A/RAW.

I tested the three of them and, regardless the alternative, the raws end up on a subfolder like 133___12 (so, depending on the option chosen on the Raw Menu, it would end up like A/DCIM/133___12, A/RAW/133___12, etc.

So, the issue (in A3100 case) seems to be the raw saving functionality, rather then the purge raw.

What do you think?

UPDATE: The fact is (and this I'm 110% sure): with v1.2 I had absolutely no issue purging raws in mass deletion mode.

UPDATE2: I have created a post in the bug thread as srsa_4c told, but since this discussion is evolving here, I will delete it from there.
« Last Edit: 11 / December / 2014, 06:28:21 by oneaty »
Canon A3100IS - 100d
CHDK a3100-100d-1.2.0-3643-full_ALPHA

Re: hdr1.lua - hdr.lua script upgrade
« Reply #17 on: 11 / December / 2014, 09:09:07 »
As srsa_4c pointed out the code has not been updated to handle the date based folder names Canon now uses; but this affects 1.2 as much as 1.3.
We actually changed that in 1.3.  If you did not save the RAW/DNG file with the JPG, then it was stored in a separate folder that used the old folder naming convention.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: hdr1.lua - hdr.lua script upgrade
« Reply #18 on: 11 / December / 2014, 13:24:52 »
As srsa_4c pointed out the code has not been updated to handle the date based folder names Canon now uses; but this affects 1.2 as much as 1.3.
We actually changed that in 1.3.  If you did not save the RAW/DNG file with the JPG, then it was stored in a separate folder that used the old folder naming convention.

I confirm that.

I reloaded 1.2, enabled Save Raw (with Raw file in dir with jpg unchecked) and took five shots.

The raw/dng files were in folder A/DCIM/100CANON/

Then, after deleting all jpg's in Canon's menu, I was able to use Purge Raw without any issues and delete all raw files at once.
Canon A3100IS - 100d
CHDK a3100-100d-1.2.0-3643-full_ALPHA

 

Related Topics


SimplePortal © 2008-2014, SimplePortal