ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:06 AM

Title: Problem with -directory and AVI files
Post by: Archive on May 12, 2010, 08:54:06 AM
[Originally posted by robban9 on 2007-06-25 00:17:48-07]

Hi,

sorry if this is posted before, i tried a search and found nothing.

I tried a simple exiftool command line today to move files to directories.

Like this one:

Code:
exiftool -r -d /newdir/%Y-%m-%d "-directory<datetimeoriginal" currentdir

This works fine for 99.9% of all my files, but not for some AVI files from my Canon IXUS 65.

If i run:

Code:
exiftool -datetimeoriginal WHATEVER.AVI
...it work perfect to extract original date and time...so exiftool is perfectly able to read the info from the AVI file. It even moves the associated THM file...but not the AVI.

Any ideas?

If you need more info, don't hesitate to drop a message.

And thank you Phil for a wonderful tool.

//Robert
Title: Re: Problem with -directory and AVI files
Post by: Archive on May 12, 2010, 08:54:06 AM
[Originally posted by exiftool on 2007-06-25 11:17:19-07]

Hi Robert,

AVI isn't a writable format, so by default exiftool doesn't process these
files when writing files in an entire directory.  (The filename, directory and
filemodifydate tags are unique in that they don't require the file to be
rewritten, but exiftool doesn't necessarily know that this is all you are
doing until after processing the file when copying information, so for
performance reasons it just doesn't process any non-writable formats.)

So the thing to do is to tell exiftool what file extensions you want to
process with a command like this:

Code:
exiftool -r -d /newdir/%Y-%m-%d "-directory<datetimeoriginal" -ext jpg -ext thm -ext avi currentdir

- Phil
Title: Re: Problem with -directory and AVI files
Post by: Archive on May 12, 2010, 08:54:06 AM
[Originally posted by robban9 on 2007-06-25 12:31:38-07]

Hi Phil,

thanks for a quick reply.

I probably missed that info somewhere in the documentation. Sorry for that.

I'm about to make a PERL script to handle all my photos, but right now i'm just testing exiftool from command line.

Thanks again!

//Robert