Author Topic: DNG - Cannot load CHDK/badpixel.bin  (Read 2214 times)

Offline nemesis

  • Rookie
  • *
  • Posts: 7
  • Ixus 40 v1.00k
DNG - Cannot load CHDK/badpixel.bin
« on: 09 / June / 2009, 13:06:33 »
  • Publish
  • I'm trying to enable the DNG format on my Ixus 40 (SD300) v1.00k, but it keeps throwing my the error:
    Quote
    Cannot load CHDK/badpixel.bin
    Please run CHDK/SCRIPTS/TEST/badpixel.lua

    I've run the badpixel.lua script three times now, and confirmed that a badpixel.bin file actually does exist in the CHDK folder.  The script reports 0 bad pixels; and the resultant badpixel.bin file is 0 bytes long.

    Trawling the forums and google doesn't reveal any solutions other than running the script -- which I've done...

    I've also tried modifying the badpixel.lua script to use press("shoot_half"), press("shoot_full") etc, but still, zero byte badpixel.bin, and no DNG.

    Anyone have any suggestions?

    Offline fe50

    • Guru Member
    • ******
    • Posts: 2694
    • IXUS50 & 860, SX10 Star WARs-Star RAWs
      • fe50
    Re: DNG - Cannot load CHDK/badpixel.bin
    « Reply #1 on: 09 / June / 2009, 15:52:48 »
  • Publish
  • I'm trying to enable the DNG format on my Ixus 40 (SD300) v1.00k, but it keeps throwing my the error:
    ...
    I've run the badpixel.lua script three times now, and confirmed that a badpixel.bin file actually does exist in the CHDK folder.  The script reports 0 bad pixels; and the resultant badpixel.bin file is 0 bytes long.
    Trawling the forums and google doesn't reveal any solutions other than running the script -- which I've done...

    If you're running a Windows system you can create the badpixel.bin file manually with ewavr's show_bad_b.exe: CHDK wikia: Badpixel_removal.

    Since the show_bad_b zip package includes the C source code, you should also be able to compile it on other operating systems like Mac OS, e.g. with the GCC...

    Offline nemesis

    • Rookie
    • *
    • Posts: 7
    • Ixus 40 v1.00k
    Re: DNG - Cannot load CHDK/badpixel.bin
    « Reply #2 on: 09 / June / 2009, 18:49:55 »
  • Publish
  • Strange.  show_bad_b.exe also gives me a 0 byte badpixel.bin.

    Given the age of this camera, I find it a little implausible that at least 1 pixel wouldn't have gone bad...

    Offline fe50

    • Guru Member
    • ******
    • Posts: 2694
    • IXUS50 & 860, SX10 Star WARs-Star RAWs
      • fe50
    Re: DNG - Cannot load CHDK/badpixel.bin
    « Reply #3 on: 09 / June / 2009, 22:40:47 »
  • Publish
  • Strange.  show_bad_b.exe also gives me a 0 byte badpixel.bin.
    Given the age of this camera, I find it a little implausible that at least 1 pixel wouldn't have gone bad...

    Show_bad_b gives the pixels which are marked as bad by the original Canon firmware, these pixels were already defective when the camera was manufactured (as described in the wikia article).

    The badpixel.bin file is only needed for the DNG creation; you can use a dummy file (just 4 bytes with 0's (zeros)), then you should be able to activate the DNG support - you'll see the bad pixel as black dots in your image then.

    Since we have some SD300 users with working RAW and DNG support - maybe there's something other wrong...

    Can you try it again, with a fresh formated card & a fresh downloaded CHDK package and the default settings ?
    Maybe you can upload a zipped RAW image somewhere...

    If this still won't work, i can try to contact a SD300 user with a running DNG workflow to do some tests, maybe there's a problem with the newer CHDK builds...

    Offline fe50

    • Guru Member
    • ******
    • Posts: 2694
    • IXUS50 & 860, SX10 Star WARs-Star RAWs
      • fe50
    Re: DNG - Cannot load CHDK/badpixel.bin
    « Reply #4 on: 09 / June / 2009, 23:11:27 »
  • Publish
  • I've compiled & uploaded two unmodified trunk#718 (03-Feb-2009) versions ('complete' packages, all compile options enabled, compiled with gcc 3.4 env) for the Ixus 40 to test whether DNG stuff is working on those "old" version:

       a) #718 package for 100k fw: ixus40_sd300-100j-0.9.6-trunk718-gcc3-full.zip
       b) #718 package for 100j fw: ixus40_sd300-100k-0.9.6-trunk718-gcc3-full.zip

    Online reyalp

    • Guru Member
    • ******
    • Posts: 4826
    Re: DNG - Cannot load CHDK/badpixel.bin
    « Reply #5 on: 10 / June / 2009, 02:22:09 »
  • Publish
  • FWIW, the SD300 code has some weird stuff in the capt_seq/raw areas.
    Don't forget what the H stands for.

    Offline nemesis

    • Rookie
    • *
    • Posts: 7
    • Ixus 40 v1.00k
    Re: DNG - Cannot load CHDK/badpixel.bin
    « Reply #6 on: 21 / June / 2009, 14:54:02 »
  • Publish
  • The badpixel.bin file is only needed for the DNG creation; you can use a dummy file (just 4 bytes with 0's (zeros)

    That worked perfectly.  I've taken a few photos, and can't spot any black pixels in the images.

    When I have some more time, I'll give the other debugging stuff a go for completeness.

    Cheers

    Offline mastodon

    • Jr. Member
    • **
    • Posts: 51
    Re: DNG - Cannot load CHDK/badpixel.bin
    « Reply #7 on: 08 / February / 2010, 19:47:54 »
  • Publish
  • I'm trying to enable the DNG format on an SX 200, but I got the error:
    Cannot load CHDK/badpixel.bin
    Please run CHDK/SCRIPTS/TEST/badpixel.lua

    what to do? thanks

    Offline whim

    • Guru Member
    • ******
    • Posts: 1977
    • A620/A630/A590-101b/i70-101b/i870-101a/i300
    Re: DNG - Cannot load CHDK/badpixel.bin
    « Reply #8 on: 08 / February / 2010, 20:25:08 »
  • Publish
  • @mastodon

    1) download the User Guide (see link in my signature, PDF file)

    2) go to the index on page 1 and you'll see "Bad pixel notes", should be at page 55/56 (in the A4 version)

    I couldn't explain it any better than fe50 did there ...

    ... and the manual should come in handy anyway

    have fun,

    wim

    BTW: - 2 RAW pictures will be taken, takes  30 - 45 sec
            - If "press Set to save ..." does not appear after 45 secs, press <Alt>, wait a sec, and again <Alt>,
              (sometimes a CAnon screen refresh can overwrite the CHDK output, <alt> - <alt> will refresh screen)
    « Last Edit: 08 / February / 2010, 20:34:54 by whim »

    CHDK Forum

    Re: DNG - Cannot load CHDK/badpixel.bin
    « Reply #8 on: 08 / February / 2010, 20:25:08 »

    Offline fe50

    • Guru Member
    • ******
    • Posts: 2694
    • IXUS50 & 860, SX10 Star WARs-Star RAWs
      • fe50
    Re: DNG - Cannot load CHDK/badpixel.bin
    « Reply #9 on: 08 / February / 2010, 23:17:18 »
  • Publish
  • Hmmm...could it be that with "Please run CHDK/SCRIPTS/TEST/badpixel.lua"  the camera is telling you "Please run CHDK/SCRIPTS/TEST/badpixel.lua" ? :D

    --> Enable DNG support guidance

    Offline abhay

    • Rookie
    • *
    • Posts: 28
    Re: DNG - Cannot load CHDK/badpixel.bin
    « Reply #10 on: 16 / September / 2010, 13:56:04 »
  • Publish
  • pls have a look at this on using badpixel.lua and taking shot in dng/raw format http://www.andrewhazelden.com/blog/2010/02/enabling-chdk-raw-images-on-the-canon-sd780is/

    Offline abhay

    • Rookie
    • *
    • Posts: 28
    Re: DNG - Cannot load CHDK/badpixel.bin
    « Reply #11 on: 16 / September / 2010, 14:17:57 »
  • Publish
  • i was able to load badpixel.lua shoot and then convert to chdk dng by above method...and then the dng file cannot be opened in photoshop but rawtherapee is able to read it but paints it with a strange pink tint/ colour.

    Offline hwntw

    • Full Member
    • ***
    • Posts: 107
    Re: DNG - Cannot load CHDK/badpixel.bin
    « Reply #12 on: 16 / September / 2010, 14:31:56 »
  • Publish
  • Yep, me too, I noted this earlier. CHDK RAW comes out fine on my Ixus 95, so long as I use software that is able to recognise the format.
    The Ixus 95 and DNG combo are not yet fully functional, as are several other CHDK functions on this model. Plenty of features do work, nevertheless.
    Ixus 960 Ixus 95 G9 Ixus 300 HS

    Offline abhay

    • Rookie
    • *
    • Posts: 28
    Re: DNG - Cannot load CHDK/badpixel.bin
    « Reply #13 on: 17 / September / 2010, 16:07:49 »
  • Publish
  • true hwntw, the RAW files like .CR2 and .CRW using chdk for ixus95 are correctly recognized by rawtherapee(ufraw is giving tints)

    but is there a way by which the RAW(.CRW,.CR2 or .DNG) files by chdk can be read/opened in photoshop for processing?

    Offline hwntw

    • Full Member
    • ***
    • Posts: 107
    Re: DNG - Cannot load CHDK/badpixel.bin
    « Reply #14 on: 17 / September / 2010, 17:03:13 »
  • Publish
  • Hello, I only have "free" software like Picturenaut, so I cannot answer that question
    directly. I believe that many people use Photomatrix successfully with CHDK or Canon RAW
    Ixus 960 Ixus 95 G9 Ixus 300 HS

     


    SimplePortal 2.3.3 © 2008-2010, SimplePortal