Skip to main content
Participating Frequently
November 9, 2008
Question

Latest DNG converter not working in command-line mode

  • November 9, 2008
  • 17 replies
  • 43389 views
Today I downloaded Adobe's latest DNG converter. It is failing with both .NEF and .CR2 files when run in command-line mode. It does appear to work in GUI mode. The switches+arguments I've used for my tests are:

-u -e -p1 filename.CR2

(or filename.NEF)

With an older (CS2) version of the converter, the above arguments produce a .DNG output file as expected (with .CR2 files; I didn't try it with D3 .NEF files; surely that older version doesn't support the D3's format).

With the very latest version, running the program with the above command produces no output. There's no error message.

The 'readme' file that comes with the converter doesn't include any information about command-line usage, but I did find a PDF file covering this (adobe.com/products/dng/pdfs/dng_commandline.pdf). The switches+arguments shown in the PDF file appear to be exactly the ones I used in the past.

I'm sure I'll need to use the most recent version to convert D3 RAW files. Is there something wrong with how I'm specifying its command-line switches/arguments?
This topic has been closed for replies.

17 replies

Participant
January 14, 2009
I have another issue that has been asked previously but not addressed. I'm trying to use the -d switch to specify that files should be saved in C:\RAW_Destination. I have used the following command variations:

1. C:\[path to DNG exe]\Adobe DNG Converter.exe -d c:\RAW_Destination c:\RAW_Source

2. C:\[path to DNG exe]\Adobe DNG Converter.exe -dc:\RAW_Destination c:\RAW_Source

3. C:\[path to DNG exe]\Adobe DNG Converter.exe dc:\RAW_Destination c:\RAW_Source

4. C:\[path to DNG exe]\Adobe DNG Converter.exe d c:\RAW_Destination c:\RAW_Source

Variation 1: does not run
Variation 2: runs without the correct destination directory, but with the correct source directory
Variation 3: runs without the correct destination directory, but with the correct source directory
Variation 4: thinks the destination I've specified is actually another input parameter

What is the correct syntax for the -d parameter? Is there a dash before, and a space after? Do I need to separate the parameters from the input files with some character?

Thanks very much for your help.
Participating Frequently
November 12, 2008
> Recent version of the DNG Converter for Windows have required full path names in command line mode (rather than allowing paths relative to the working directory). I have just fixed this in the code and the fix will appear in the next release (5.2).

That's good to hear. I'll look forward to it, and in the meantime will use the workaround with the fully qualified path name.

(Feature request for some future version: the ability to specify multiple files via wildcard in command-line mode. This doesn't seem to be supported yet...)

Thanks.
Adobe Employee
November 12, 2008
Recent version of the DNG Converter for Windows have required full path names in command line mode (rather than allowing paths relative to the working directory). I have just fixed this in the code and the fix will appear in the next release (5.2).
Adobe Employee
November 11, 2008
Try typing a full path to the file and see what happens.
Participating Frequently
November 11, 2008
> Macintosh or Windows? What command line shell are you using?

I'm running the converter under Windows XP service pack 2.

After seeing your reply I realized I had not tried running the program in a cmd.exe console window -- I'd been using only the 4NT version 5 command shell (meaning JP Software's command shell product 4nt.exe). For this latest attempt, I used both shells. The arguments/switches were:

-u -e -p1 -o _MG_0972.CR2 _MG_0972.dng

This time I added an explicit switch/arg for the output file to see if that would make any difference.

Result in both the cmd.exe shell and the 4NT shell:

I got output with the DNG converter that was released at about the time Photoshop CS2 was released, but no output with the one I downloaded most recently from Adobe's web site.

Variations: 1) omitted "-o filename" -- same results. 2) omitted "-o" and used "*.cr2" for the input filename; in that case neither converter version produced output; 3) omitted "-o" and used ".\" for the input file, in case the converter would accept that for "all raw files in the current directory" -- again neither converter version produced any output.
Adobe Employee
November 11, 2008
Macintosh or Windows? What command line shell are you using?
Participating Frequently
November 11, 2008
Is there anyone from Adobe who might have the time to respond to this question? Given the command-line switches and arguments shown in the previous message, does it look as if I am giving the commands incorrectly?