Save RAW files in DNG format instead of RAW - page 6 - Feature Requests - CHDK Forum

Save RAW files in DNG format instead of RAW

  • 392 Replies
  • 202944 Views
Re: Save RAW files in DNG format instead of RAW
« Reply #50 on: 13 / November / 2008, 14:33:12 »
Advertisements
Very Great work ! now with this mods also IrfanView (good only in daylight or flash) and ACDsee , RawTherapee that shows some EXIF data and of course Dcraw and all related programs open the file without problem and with the same quality of the CHDK.CRW files, I have make a test with two sd card one with the DNG mods and another with #535 build developing with Dcraw and Camera raw the same subject with same parameters, cropping at 200% no significative differrencies in terms of increase of noise or losing of definitions or other artifacts the only very minimal are the tipical of the developing of matrix AHD vs VNG, about the colors, I have seen that actually are much neutrals this is good because give the possibility of simple corrections in post processing.
Regards

*

Offline lrossel

  • **
  • 53
  • CHDK - Take it underwater
    • My Photos
Re: Save RAW files in DNG format instead of RAW
« Reply #51 on: 13 / November / 2008, 14:36:21 »
Ewavr, checked version for A620, but can't turn DNG format feature on (pressing set on that menu item has no effect). Am I doing something wrong ?

Just an idea, don't know how much programming efforts is needed for this - what about separating a dng header into external file, that will be located somewhere on the SD card, similar to headers in DNG4PS version 1? That way, we can customize it way we want with exiftools, dngsetmatrix and other tools(changing color matrix and other tags), because header is a tiff structure . What do you think ?
I'm sure you are making the same mistake I made.

Be sure to save the badpixel.bin file in the CHDK folder of your card before to try.

You can use for testing the badpixel.bin file attached on the Reply #42.

Good luck
If you saw me on land, It was just the surface interval
G10 without CHDK

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Save RAW files in DNG format instead of RAW
« Reply #52 on: 13 / November / 2008, 14:36:38 »
Ewavr, checked version for A620, but can't turn DNG format feature on (pressing set on that menu item has no effect). Am I doing something wrong ?

read the last few posts, you MUST use the badpixel.bin file, either selfcreated or downloaded from ewavrs attachment.

edit: i was beaten. damn :D

Re: Save RAW files in DNG format instead of RAW
« Reply #53 on: 13 / November / 2008, 22:28:55 »
So, I ran into something interesting poking about in the DNG spec: compressed DNG files use the older JPEG lossless standard (LJPEG, not JPEG-LS), because it gives better compression than ZIP for >8-bit color data.  I'm wondering if there's any way to hook into the existing JPEG-processing hardware on the DIGIC chip, to accelerate the compression? 

From what I gather, the differencing/prediction step of compression could be implemented as a 3x3  convolution, and the RLE and Huffman coding that follows is just like normal JPEG.  The DIGIC has to do the RLE & Huffman anyway to encode JPEGs, and the prediction/differencing shouldn't require more than a few operations per pixel.  I strongly suspect the DIGIC has some facility that could accelerate the latter, assuming the JPEG compression isn't done as a 1-step pure-hardware process. 

If there are any appropriate software hooks in the firmware's assembly code, then there's no reason the DNG couldn't be compressed almost as fast as the JPEG is generated.



*

Offline vit40

  • ****
  • 276
Re: Save RAW files in DNG format instead of RAW
« Reply #54 on: 14 / November / 2008, 01:45:52 »
lrossel, PhyrePhoX,

thanx ... obviously I didn't follow the rule "read the f... manual"   :-[

*

Offline silas

  • *
  • 19
Re: Save RAW files in DNG format instead of RAW
« Reply #55 on: 14 / November / 2008, 12:10:26 »
edit: For any camera, supported by DNG4PS2, DNG support can be added.
Can you add a550?
Is supported by dng4ps 0.2.3-beta16.

*

Offline Hacki

  • ****
  • 359
  • EOS 80D
Re: Save RAW files in DNG format instead of RAW
« Reply #56 on: 14 / November / 2008, 14:42:32 »
I'm experiencing some problems here. Programs which try to open the resulting files (to either show them in full size, or create thumbnails) tend to get killed:

Nautilus (creating thumbnails): +++ killed by SIGSEGV +++
Eog (Gnome imageviewer):+++ killed by SIGSEGV +++
Rawstudio: +++ killed by SIGSEGV +++
Rawtherapee: works fine...
Ufraw: works fine too..
ImageMagick: +++ killed by SIGSEGV +++
Gimp's tiff plugin: fatal error: Segmentation fault

None of them have no problems processing the original chdk "RAW-RAW" sensor dumps, or the DNG's created by DNG4PS2.
Either they do their job showing the files/creating the thumbnails file, or they just say "Format not supported", but not crash.

Please, dont tell me "Its working fine with adobe lightroom/this /that", i see it myself that some software is capable of handling those files fine, but most has some kind of problem, at least on my machine / Operating system. (Mandriva Linux 2009.0, Gnome 2.24)

So. Are those bugs in the programs named above, or is something "wrong" with the chdk created DNG's ?



*

Offline vit40

  • ****
  • 276
Re: Save RAW files in DNG format instead of RAW
« Reply #57 on: 14 / November / 2008, 15:50:17 »
I checked a dng from A620 with dng_validate, that is included in a dng sdk from Adobe. It didn't complain about file, except warning that there is no WB info in the file, just like in files produced by DNG4PS1 and DNG4PS2

Since Adobe written a dng specification, I suppose we should believe to Adobe's validation program

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #58 on: 14 / November / 2008, 16:17:47 »
Just an idea, don't know how much programming efforts is needed for this - what about separating a dng header into external file, that will be located somewhere on the SD card, similar to headers in DNG4PS version 1?
Why not? Of course, it is possible (it's easy without EXIF tags: data/time, aperture etc.) But maybe is better to read color matrix (or someting else?) from special text file in CHDK folder.

I checked a dng from A620 with dng_validate, that is included in a dng sdk from Adobe.

I too  :)

Are those bugs in the programs named above, or is something "wrong" with the chdk created DNG's ?

I don't know exactly. Some ideas:
- (stupid question) are you renamed files from CRW to DNG?
- CHDK DNG do not contains thumbnail (at present)
- CHDK DNG is 10 bit, DNG4PS produces 16-bit DNGs
- CHDK DNG contains some errors (but dng_validate tool from Adobe shows no errors, and one warning (like DNGs from DNG4PS2)).

Well, I have Ubuntu Linux (in virtualbox) on my home computer, but can test something on monday only. 
« Last Edit: 14 / November / 2008, 16:21:34 by ewavr »

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #59 on: 14 / November / 2008, 16:25:35 »
Can you add a550?
Is supported by dng4ps 0.2.3-beta16.
OMG, I'm using old version DNG4PS2 without A550 support. This camera (and some others) will be added in nearest future.

edit: Added A550 (also G7 and TX1). IXUS (SD series) on next week.
« Last Edit: 14 / November / 2008, 20:04:47 by ewavr »

 

Related Topics


SimplePortal © 2008-2014, SimplePortal