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

Save RAW files in DNG format instead of RAW

  • 392 Replies
  • 202871 Views
*

Offline msl

  • *****
  • 1280
  • A720 IS, SX220 HS 1.01a
    • CHDK-DE links
Re: Save RAW files in DNG format instead of RAW
« Reply #250 on: 07 / December / 2008, 14:55:00 »
Advertisements
Thx ewavr!!!

Curiously enough tv96_direct will work.

The simply way is most the best.  :)

The script should be a part of the chdk package.
CHDK-DE:  CHDK-DE links

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Save RAW files in DNG format instead of RAW
« Reply #251 on: 07 / December / 2008, 15:42:10 »
script works on s3is, a610 & a620. nice work.
yes, this should be included in autobuild, but we need more testers first.
maybe the message "badpixel.bin is missing" should be modified like "run badpixel.lua in record mode", maybe if that message is displayed, it can automatically set script path to A/CHDK/SCRIPTS/TEST/BADPIXEL.LUA ???
so message could be "switch to rec mode and press shutter" or something like that...

edit: also a message needs to be in the script: don't panic! this will take some time, the more megapixel, the longer...
« Last Edit: 07 / December / 2008, 15:55:54 by PhyrePhoX »

Re: Save RAW files in DNG format instead of RAW
« Reply #252 on: 07 / December / 2008, 19:01:19 »
Now that DNG support is available, could we consider having an offline conversion option? Have it in the left-click menu of file browser? Or would that be too much? I think maybe it would. Sorry.
________________________
Jim Manning
Canon Powershot S5 IS (1.01b)

Re: Save RAW files in DNG format instead of RAW
« Reply #253 on: 08 / December / 2008, 06:27:32 »
Sorry if i insist but is it possible or not to correct the one second difference between the jpg and the associated dng ?
I take 10 photos and there is 3 with the bug, is it possible to use the time of the jpg like dng4ps and not the time of the camera because sometimes there a difference.

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Save RAW files in DNG format instead of RAW
« Reply #254 on: 08 / December / 2008, 14:51:05 »
Sorry if i insist but is it possible or not to correct the one second difference between the jpg and the associated dng ?
I take 10 photos and there is 3 with the bug, is it possible to use the time of the jpg like dng4ps and not the time of the camera because sometimes there a difference.

It's definitely not a bug.

If I understood the above correctly, if we store shutter opening time in DNG, it's a lot closer to the truth than Canon's JPEG timestamp which is related to JPEG saving time which happens a while after exposure, time depending on dark frame reduction.

We don't know how to mess with JPEG exif (or do we?) while shooting.

But if you need this just for archiving, you can probably write a program on your PC to modify the JPG exif date to match the DNG. I know exiftool can do the jpeg writing part, I have no clue about any DNG stuff.

Re: Save RAW files in DNG format instead of RAW
« Reply #255 on: 08 / December / 2008, 14:56:11 »
Hi,

I've tried to use dcraw (v8.89) to convert a DNG with the white balance from the camera, here is the result...

Code: [Select]
./dcraw -v -i CRW_3503.CRW
Filename: CRW_3503.CRW
Timestamp: Mon Dec  8 21:30:55 2008
Camera: Canon PowerShot S5 IS
DNG Version: 1.1.0.0
ISO speed: 80
Shutter: 1/3.8 sec
Aperture: f/2.8
Focal length: 6.0 mm
Embedded ICC profile: no
Number of raw images: 1
Thumb size:   128 x 96
Full size:   3336 x 2480
Image size:  3292 x 2466
Output size: 3292 x 2466
Raw colors: 3
Filter pattern: GBRGGBRGGBRGGBRG
Daylight multipliers: 3.512125 1.801279 3.407259

Code: [Select]
./dcraw -v -w -W -o 0 -q 3 -4 -T CRW_3503.CRW
Loading Canon PowerShot S5 IS image from CRW_3503.CRW ...
CRW_3503.CRW: Cannot use camera white balance.
Scaling with darkness 31, saturation 1023, and
multipliers 1.949795 1.000000 1.891578 1.000000
AHD interpolation...
Building histograms...
Writing data to CRW_3503.tiff ...

Regards,
Ced.

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #256 on: 08 / December / 2008, 15:18:14 »
Quote
CRW_3503.CRW: Cannot use camera white balance.
Because camera white balance not stored in DNG (at present).

Re: Save RAW files in DNG format instead of RAW
« Reply #257 on: 08 / December / 2008, 15:38:29 »
Thanks.

Is the white balance available from the raw camera buffer?
So at the moment, with DNG (in comparison of RAW) we are gaining EXIF data and a better color matrix, is that right?

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #258 on: 08 / December / 2008, 15:45:57 »
If I understood the above correctly, if we store shutter opening time in DNG

No. In DNG we store time of starting DNG creation (for simpler implementation).
But I will try to store to DNG shutter opening time (maybe better place to capture shutter openig time is capt_seq_hook_set_nr() which is generic for all(?)  cameras).

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #259 on: 08 / December / 2008, 16:16:53 »
Is the white balance available from the raw camera buffer?

We can read color balance setting (auto/daylight/cloudy etc.) from camera. But how to store it in DNG?
TIFF/EXIF standards provides next tags:

WhiteBalance  (0xA403), possible values: auto, manual
LightSource (0x9208), possible values: Unidentified, Daylight, Fluorescent, Tungsten, Flash, Fine weather, Cloudy weather, Shade, <skipped> , or color temperature in Kelvin.

I will try to write these tags in DNG.

edit: I tested different settings of these tags, but dcraw reports in any case: "cannot use camera white balance". n :'(


« Last Edit: 08 / December / 2008, 16:53:19 by ewavr »

 

Related Topics


SimplePortal © 2008-2014, SimplePortal