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

Save RAW files in DNG format instead of RAW

  • 392 Replies
  • 164549 Views
Re: Save RAW files in DNG format instead of RAW
« Reply #130 on: 21 / November / 2008, 12:49:29 »
Advertisements
Since this is subject to change,why not adding the info to the image description in ascii? x10E? And in chdk dng exif submenu you just tick off the things you want to have added in 'plaintext' to the image description, so later every gfx program can read it, things like "optical temp 24 / time since startup: 1-2-52 / etc"

I'm not in favour of storing these items in plaintext. It's harder to write, it can't really be parsed and it can become a maintenance nightmare. Rather I favour adding our own Maker note tag (in IFD format) and then we can document the tags we add in the CHDK wiki.

Martin

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Save RAW files in DNG format instead of RAW
« Reply #131 on: 22 / November / 2008, 17:11:48 »
It would be useful to allow a file extension of .DNG (I've added this change in my build).
Yes, but files with this extension cannot be copied from camera via USB. I'm trying to add 'dng' extension to 'white list of extensions' (crw,cr2,jpg,wav,fir,avi,thm,mrk), but without success  :(.

However, files with DNG extension can be visible via USB (in Windows explorer), but ... instead of CRW (or AVI, on developer's choice). If this feature is useful, I can develop it for more cameras; if not - only for my private build.

*

Offline hotvedt

  • ***
  • 106
  • A540/SX110IS/350D
Re: Save RAW files in DNG format instead of RAW
« Reply #132 on: 22 / November / 2008, 19:44:26 »
However, files with DNG extension can be visible via USB (in Windows explorer)

How do i do this? I just tried with my a540, and it does not show them. Is there a way to do this in the windows registry?

*

Offline lrossel

  • **
  • 53
  • CHDK - Take it underwater
    • My Photos
Re: Save RAW files in DNG format instead of RAW
« Reply #133 on: 22 / November / 2008, 21:17:43 »
However, files with DNG extension can be visible via USB (in Windows explorer), but ... instead of CRW (or AVI, on developer's choice). If this feature is useful, I can develop it for more cameras; if not - only for my private build.

How can do that? There is any way to see the card with Windows Explorer trough the USB connected to the camera?
Or you are talking about using a USB card reader?
If you saw me on land, It was just the surface interval
G10 without CHDK


*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Save RAW files in DNG format instead of RAW
« Reply #134 on: 23 / November / 2008, 08:09:55 »
How can do that? There is any way to see the card with Windows Explorer trough the USB connected to the camera?
Or you are talking about using a USB card reader?

He means either windows explorer or some canon camera explorer thing, I don't know any better since I've never plugged my camera usb to a windows pc. In any case the camera itself only communicates using the picture transfrer protocols, not usb mass storage like all devices that play nice would. If canon software is able to integrate it into windows explorer, then that's what he ment.

In Canon's firmware, there is a short list of file extensions that the camera shows through this usb interface. JPG, AVI and CRW are among the few. If I understood ewavr correctly, he knows how to replace one of these extensions by DNG, but that will make you unable to download files that have the replaced extension. CRW is a natural choice (and then CRW raws should probaly be by default written as .DNG or .WAV by CHDK so that CRW files wouldn't go hidden).

*

Offline lrossel

  • **
  • 53
  • CHDK - Take it underwater
    • My Photos
Re: Save RAW files in DNG format instead of RAW
« Reply #135 on: 23 / November / 2008, 10:43:21 »

In Canon's firmware, there is a short list of file extensions that the camera shows through this usb interface. JPG, AVI and CRW are among the few. If I understood ewavr correctly, he knows how to replace one of these extensions by DNG, but that will make you unable to download files that have the replaced extension. CRW is a natural choice (and then CRW raws should probaly be by default written as .DNG or .WAV by CHDK so that CRW files wouldn't go hidden).


Maybe I'm doing something wrong, but in my A720IS, the Canon Camera Window (sw that shows the content of the camera when you plug it to the usb), just shows the jpegs and avis, not the CRWs created by CHDK. But the CHDK Raw (and the DNG Raw) are transfered together with their jpegs.
I'm using windows XP.
If you saw me on land, It was just the surface interval
G10 without CHDK

Re: Save RAW files in DNG format instead of RAW
« Reply #136 on: 23 / November / 2008, 11:34:20 »
I've been playing around with this version of CHDK and found it to be quite amazing. I can open my crw's in PS and LR, and I have seen no performance degradation at all as a result. I've experienced no crashes or errors. When I first started using it, I noticed I had a bunch of random coloured pixels blotted all over the image. I realized I needed to make a badpixel.bin file that contained actual info in it, instead of the dummy 4 byte data. My photos come out amazing and hdr's beautifully (if I may use hdr as a verb). When I transfer my photos, I use a card reader to do it as I've never been able to get crw's to transfer from the camera. Therefore, I don't believe it's a huge issue to make dng's a part of the white list in the camera. Though, it would be convenient, I don't think it would be a major issue. Just my input on it.
________________________
Jim Manning
Canon Powershot S5 IS (1.01b)

*

Offline lrossel

  • **
  • 53
  • CHDK - Take it underwater
    • My Photos
Re: Save RAW files in DNG format instead of RAW
« Reply #137 on: 23 / November / 2008, 15:08:25 »
I tryed to apply the dng-r585.diff file to the core trunk 587 (the last published) but the patch program seem to do nothing.

Is there any link or documentation to read in order to understand how to apply the patch?

sorry if this post is too out of topic.

I have already working the CHDK-Shell-v188 on my computer. (windows xp)
If you saw me on land, It was just the surface interval
G10 without CHDK


*

Offline whim

  • ******
  • 2044
  • A495/590/620/630 ixus70/115/220/230/300/870 S95
Re: Save RAW files in DNG format instead of RAW
« Reply #138 on: 23 / November / 2008, 15:32:27 »
The patch files are just plain text. Unless you know how to operate svn,
it's easier to apply these small patches by hand.
First you need a sourcecode editor that can handle both linux and dos style linefeeds (LF / CR+LF)
Personally i use Notepad++ (just google it, it's on sourceforge), but there's lots of choice.
Now here - as an example - is the beginning of rawaverage.patch:
Quote
Index: core/luascript.c
===================================================================
--- core/luascript.c   (revision 586)
+++ core/luascript.c   (working copy)
@@ -10,6 +10,8 @@
 #include "shot_histogram.h"
 #include "ubasic.h"
 #include "stdlib.h"
+#include "raw.h"
+#include "raw_merge.h"
 
 static int luaCB_shoot( lua_State* L )
 {
'translation': after
--- : the file were operating on
+++ : the resulting file
@@ : the first 10 here means goto line 10
the 3 #include lines are the lines before your changes
then come your changes, lines starting + are added , with - are removed (here 2 lines are added)
next come 3 lines after your changes

if theres more changes in this file, it continues with another @@

etc

hope that helps,

wim

PS as you will see if you use 587 this won't work (or at least, line numbers might not match)
     a patch always needs to be applied to the version that is mentioned after ---, in this case 586
     to DL a previous version, go here: /trunk - chdk - Trac and type
     the version number you want in the edit box named 'View Revision' and type enter (top right)
     then goto center bottom of the page to where it says 'Download in other formats' and click
     'Zip Archive' -> your DL should start
« Last Edit: 23 / November / 2008, 15:39:50 by whim »

*

Offline lrossel

  • **
  • 53
  • CHDK - Take it underwater
    • My Photos
Re: Save RAW files in DNG format instead of RAW
« Reply #139 on: 23 / November / 2008, 16:06:30 »
Thanks a lot, I'll apply manually the changes.
If you saw me on land, It was just the surface interval
G10 without CHDK

 

Related Topics