I have recently tried to do some low light shots using long times (for example 15 seconds). and i have found out that sometimes dngs are NOT saved when using times longer than 2 seconds. The card is a fast 32 gb sandisk uhs1.
Quote from: pshotuser on 18 / November / 2012, 13:05:09I have recently tried to do some low light shots using long times (for example 15 seconds). and i have found out that sometimes dngs are NOT saved when using times longer than 2 seconds. The card is a fast 32 gb sandisk uhs1.Card type and speed is completely irrelevant.
CHDK decides whether or not to save raw based on some CHDK settings (like "raw exceptions", "only first raw in series" etc) and camera mode (for example, some low light/high iso modes don't produce valid raw data). There is nothing that depends directly on exposure speed.
It's also possible that the Canon code takes a different path that doesn't hit the raw hook under some circumstances. This should be repeatable if the conditions are identical. If you can narrow it down to some repeatable set of settings, that would be helpful.Finally, there is a shortcut to toggle raw on and off, which you may hit inadvertently. On your camera this is probably trigger by pressing the 'disp' button in alt mode.
IMG_0273.JPG IMG_0275.JPG IMG_0277.JPG SND_0274.WAVIMG_0274.JPG IMG_0276.JPG SND_0273.WAV SND_0276.WAV
Index: platform/sx150is/sub/100a/capt_seq.c===================================================================--- platform/sx150is/sub/100a/capt_seq.c (revision 2297)+++ platform/sx150is/sub/100a/capt_seq.c (working copy)@@ -6,6 +6,8 @@ static long *nrflag = (long*)0x5CB4; +#define PAUSE_FOR_FILE_COUNTER 150+ #include "../../../generic/capt_seq.c"
Side effect is an additional 150ms delay when RAW/DNG is enabled.It is possible that the delay is not enough and some RAW files will still be overwritten, if that happens, please report it.
A quick grep of the svn tree shows values as high as 300 used for the #define in some cameras.Interestingly, different firmware versions of the same cameras ( eg A810, SX240, SX260 ) use different values in some cases.Definitely not a precise hack.
Quote from: waterwingz on 20 / November / 2012, 13:23:54A quick grep of the svn tree shows values as high as 300 used for the #define in some cameras.Interestingly, different firmware versions of the same cameras ( eg A810, SX240, SX260 ) use different values in some cases.Definitely not a precise hack.I'd consider getting that counter earlier (before shooting), and increment it by one Not sure about side effects though (in continuous mode for example).
It's not that simple - the file 'counter' increment may also update the directory name counter (high order bits) in some cases. If you don't get that part updated you will end up with the RAW/DNG files in the wrong location.The code that sleeps for the defined delay could be modified to check if the file counter value has changed and finish early if it has. That would at least minimise the delay.Really needs a better reverse engineering effort to find the task that controls it and see if there's a smarter way. This was a real quick and dirty fix I added to get around the problem
Attached is a test version with the following patch:Code: (patch) [Select]Index: platform/sx150is/sub/100a/capt_seq.c===================================================================--- platform/sx150is/sub/100a/capt_seq.c (revision 2297)+++ platform/sx150is/sub/100a/capt_seq.c (working copy)@@ -6,6 +6,8 @@ static long *nrflag = (long*)0x5CB4; +#define PAUSE_FOR_FILE_COUNTER 150+ #include "../../../generic/capt_seq.c"Side effect is an additional 150ms delay when RAW/DNG is enabled.It is possible that the delay is not enough and some RAW files will still be overwritten, if that happens, please report it.
Started by pizzicat Firmware Dumping
Started by hiker_jon General Discussion and Assistance
Started by slyth999 General Discussion and Assistance
Started by gtoonstra « 1 2 ... 5 6 » General Discussion and Assistance
Started by rdx1968 General Help and Assistance on using CHDK stable releases