Main Menu

Recent posts

#61
Newbies / Re: rename video from "Media C...
Last post by StarGeek - April 15, 2025, 11:15:31 AM
Quote from: Headlight on April 15, 2025, 10:47:55 AMI can see how the whole thing works now and will look into putting exiftool into the Windows path which i assume means you can run it anywhere.

You can try using Oliver Betz's exiftool installer, which I believe will add exiftool to the PATH automatically.

QuoteI'll also have a look for doing a whole folder at once.

You simply place any paths as part of the command line and exiftool will process them all. This can be multiple paths and individual filenames.  For example, this command would read all the files in c:\Pictures and e:\EvenMorePictures, as well as reading the single file.jpg
exiftool -DateTimeOriginal c:\Pictures D:\MorePictures\file.jpg e:\EvenMorePictures

It does not process subdirectories automatically. You can add the -r (-recurse) option to do this.
#62
Newbies / Re: rename video from "Media C...
Last post by StarGeek - April 15, 2025, 11:09:18 AM
Quote from: Headlight on April 15, 2025, 06:48:15 AMNo. I want my filename to match that one.

The command works as written. Make sure you are using CMD, not PowerShell. PowerShell has different quoting rules compared to every other command line and many standard exiftool commands won't work. Examples
C:\>exiftool -progress -api quicktimeutc -ext mov -ext mp4 -d "%Y%m%d_%H%M%S%%-c.%%le" "-filename<CreateDate" Y:\!temp\x\y\17446265731041744559495782_0.mp4
======== Y:/!temp/x/y/17446265731041744559495782_0.mp4 [1/1]
'Y:/!temp/x/y/17446265731041744559495782_0.mp4' --> 'Y:/!temp/x/y/20250413_085252.mp4'
    1 image files updated

C:\>

Some things to take note of. Video times stamps are saved in UTC. The -api QuickTimeUTC option will adjust these time stamps to the local time when read. That is why the time stamp that is in the file, 2025:04:13 15:52:52, is changed to 2025:04:13 08:52:52 in my -07:00 time zone.

QuoteThe filename is that long string of numbers (which I understand is some Unix code for the date, or something like that).

Oh, I see it now. The number is too long for Unix time, so I dismissed that it would be a UNIX time, but it is two time stamps, one after the other.

1744559495782 = 2025-04-13 15:51:35.782 UTC
1744626573104 = 2025-04-14 10:29:33.104 UTC

QuoteBuried in the metadata of the file is the Media Create Date, which is identified by Exiftool (and shows up in the Windows Explorer window as "Date").

Yes. See the Windows Metadata thread for what tags are read to fill various Windows Properties.

QuoteCurrently, both the "Date Created" and the "Date Modified" are being changed to the date/time I import them to my PC, so I can't use those in my normal renaming program ("Renamer") because it doesn't read the Media Create Date.

Those are the file system time stamps. They are fragile and may not reflect the actual time stamp of a video.

You can fix those with a command like this. No need for scripting, just pass exiftool the directory the files are in, and it will process every file in it (add -r (-recurse) option to process subdirectories)
exiftool "-FileCreateDate<${CreateDate}+00:00" "-FileModifyDate<${CreateDate}+00:00" /path/to/files/
#63
Newbies / Re: Writing to the AltTextAcce...
Last post by Phil Harvey - April 15, 2025, 10:51:48 AM
Hi Jim,

Close, but try this:

exiftool -overwrite_original "-AltTextAccessibility<=train.txt" train.jpg

(assuming you want to write the contents of the "train.txt" file rather than "train.txt" literally.)

And to write the same tag to a bunch of images, specify a directory name instead of the file name.

- Phil
#64
Newbies / Re: rename video from "Media C...
Last post by Headlight - April 15, 2025, 10:47:55 AM
Excellent, thanks Greybeard. Got it working. CL is not my forte!

I can see how the whole thing works now and will look into putting exiftool into the Windows path which i assume means you can run it anywhere. I'll also have a look for doing a whole folder at once.

I had a look at the Github on the GUI; would that make life easier for my scenario do you think?

Thanks again.
#65
Newbies / Writing to the AltTextAccessib...
Last post by jims - April 15, 2025, 10:43:14 AM
First time user!!

I am trying to write an alt-text description to the AltTextAccessibility field of a jpg image.
From the documentation, it seemed that this syntax should work from the command line:

exiftool -overwrite_original -AltTextAccessibility<train.txt train.jpg

But nothing gets written. I have setup the exiftool folder in the path.
What error am I making?

It's the first step of looking to see if I can use exiftool to do the same for
144 images!!

Jim
#66
Newbies / Re: rename video from "Media C...
Last post by greybeard - April 15, 2025, 08:19:55 AM
Did you try the command in your original post with MediaCreateDate in place of CreateDate?

For example - for your sample file:

exiftool "-testName<MediaCreateDate" -d "%Y%m%d_%H%M%S%%-c.%%le" 17446265731041744559495782_0.mp4

Here I've used "testName" so that you can make sure the results are what you expect

Replace "testName" with "fileName" to actually make the name change
#67
Newbies / Re: rename video from "Media C...
Last post by Headlight - April 15, 2025, 06:48:15 AM
Thanks SG, I had a heart attack when I saw my post had disappeared!  :D

QuoteThe command you listed will rename the file to a "YearMonthDay_HourMinuteSecond" filename. Do you want to do something different?
No. I want my filename to match that one.

My Tapo cameras produce a file in the form of the one on Google Drive. The filename is that long string of numbers (which I understand is some Unix code for the date, or something like that). Buried in the metadata of the file is the Media Create Date, which is identified by Exiftool (and shows up in the Windows Explorer window as "Date").

Currently, both the "Date Created" and the "Date Modified" are being changed to the date/time I import them to my PC, so I can't use those in my normal renaming program ("Renamer") because it doesn't read the Media Create Date.

What I'd like is for Exiftool to change the filename from that long string to the Media Create Date. I assume the code it would be something along the lines of the previous poster, but I can't work out how to actually use Exiftool to achieve the name change.

I dropped the MP4 onto the exe and it read out the metadata correctly, but nothing else.

Thanks for any help with this.

#68
ExifTool GUI / Re: Minor bug - Geotagged? fie...
Last post by FrankB - April 15, 2025, 03:24:21 AM
Hi Kevin,

I dont consider this to be a minor bug, so I want to fix it asap. The bad news is, I cant yet reproduce it. Can you provide more info?

- Version of GUI and ExifTool.
- You seem to have modified the Workspace, could you post your INI file. Or use Program/Export settings?
- In your Workspace settings you have the Latitude field. Does that show correctly?
- In the File list view 'Location info' there is a field called 'GPS'. Does that show correctly?

If you care about privacy, send me a PM.

Frank
(Awesome support remains to be proved)
#69
Newbies / Re: rename video from "Media C...
Last post by StarGeek - April 14, 2025, 11:38:17 PM
I'm not sure what you're trying to do. The command you listed will rename the file to a "YearMonthDay_HourMinuteSecond" filename. Do you want to do something different? How does the original filename fit into this? Is there some format to that string of numbers?
#70
Newbies / rename video from "Media Creat...
Last post by Headlight - April 14, 2025, 11:23:35 PM
SG edit, split from older thread

I've just started using Tapo CCTV cameras and it produces weird file names. My normal renamer can't access the "Media Created Date" but Exiftool can so I thought I could use EXIFTool to rename my files using the Media Created dates.

In the above command:
"exiftool -api quicktimeutc -ext mov -ext mp4 -d "%Y%m%d_%H%M%S%%-c.%%le" "-filename<CreateDate" file.mp4"

I can't work out how to insert the filename to make it all work.

Here's an example filename: "17446265810621744558386710_0.mp4"

And here's one of the files:
https://drive.google.com/file/d/1Ls6-4qdSMYVm-mRpItBYyT0b1BjKulp1/view?usp=sharing

I would be very grateful if someone could point me in the correct direction to get EXIFTool to rename my file.

Thanks very much, Alwyn