ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: fotog8324 on October 29, 2010, 02:11:36 PM

Title: can't rename AVI file
Post by: fotog8324 on October 29, 2010, 02:11:36 PM
Hi, thanks for exiftool, it's fabulous.  I'm able to rename JPG files.  But trying to use FAQ #16  "Why doesn't ExifTool rename my AVI files?" is not working for me:

$ exiftool -ext AVI -d NAME%Y_%m%d_%H%M%S%%-c.%%e "-filename<CreateDate" MVI_5754.AVI
    0 image files updated
    1 image files unchanged


I'm on Mac OS X 10.6.4.  I don't know what else to try, except maybe building a pipeline of bash commands to do the renaming.

(I've tried searching the forums here, but haven't found anything relevant.  Also, is there a way to search for "avi" as a word in the forum without catching words like "having"?  The search FAQ seems to indicate there is no way to do this, and I tried searching on " avi" but still pulled up "having").
Title: Re: can't rename AVI file
Post by: Phil Harvey on October 29, 2010, 02:49:51 PM
This will happen if the file doesn't contain CreateDate information.  I'm guessing you should use DateTimeOriginal instead.

Also, you don't need to specify -ext avi if you give the file name explicitly.

- Phil
Title: Re: can't rename AVI file
Post by: fotog8324 on October 29, 2010, 07:25:16 PM
Doh!  I didn't notice that I was using CreateDate, but your FAQ uses DateTimeOriginal.
Thanks, it works great.

Quote from: Phil Harvey on October 29, 2010, 02:49:51 PM
This will happen if the file doesn't contain CreateDate information.  I'm guessing you should use DateTimeOriginal instead.

Also, you don't need to specify -ext avi if you give the file name explicitly.

- Phil