Main Menu

Recent posts

#1
Newbies / Help wih renaming files
Last post by MnM - Today at 01:49:18 AM
Hi,

Not too long ago I asked for help to be able to rename and move my photos from a temporary folder to a new (and final) folder, while also creating year/date folders in the process.

https://exiftool.org/forum/index.php?topic=16000.msg86077

Basically this the process I was needed assistance with:

Every night I have my mobile phones move the pictures into a folder on my NAS. That folder (for this exercise) is Z:/Incoming/PhotosTest.

What I want to achieve is:

1. Rename the photo files as this example:
23-10-2022-21-29-46-001
23-10-2022-21-29-49-002
24-04-2024-15-09-04-001
24-04-2024-15-09-22-002
where the numbers at the end (001, 002) always starts from 001 for each month.

2. Next I want to create folders like Year and Month (month to be like 01-Jan-2024 for example) in the final path where the photos will "live" and from where they will be backed up to external USB and cloud.

The final folder structure will look like this:

2024
04-Apr-2024
24-04-2024-15-09-04-001
24-04-2024-15-09-22-002
10-Oct-2024
24-10-2024-15-09-04-001
24-10-2024-15-09-22-002

2023
01-Jan-2023
24-01-2024-15-09-04-001
24-01-2024-15-09-22-002
10-Dec-2024
24-12-2024-15-09-04-001
24-12-2024-15-09-22-002

3. Photos might be moved at a later date into already existing year folders and month sub-folders in the final destination directories.

The solution provided is working fine - I have tested it and it works really well for points 1 and 2 above.
What is not really working as it should point 3 above. Basically photos added daily will always have the suffix starting from 001.

I wonder if there is a way to continue the numbering instead of starting from 001 again?
This way I can have all the monthly photos with correct numbering.

Thank you again for your help with this.
#2
The "exiftool" Application / Re: Read GCM_TAG from MOV Vide...
Last post by Phil Harvey - May 22, 2024, 08:58:03 PM
Good point. I'm extracting the EXIF information, but the tags you want are in APP5.  This will take more work on my side to extract this, but expect this feature for 12.86.

- Phil
#3
Newbies / Re: How to extract the content...
Last post by Phil Harvey - May 22, 2024, 08:40:16 PM
Note that I think I will change the family 1 group from UserDefined back to ID3v2_4 (or whatever) for ExifTool 12.65.  So you should drop the group name from your command, and just use:

exiftool -s3 -MusicBrainzAlbumArtistId music.mp3

I've also dropped the -a because there shouldn't be more than one of these.

- Phil
#4
The "exiftool" Application / Re: Add timezone to MOV video ...
Last post by StarGeek - May 22, 2024, 07:46:31 PM
EXIF data in video files is non-standard. Every camera company shoves it in there in different ways, sometimes even different between models from the same company. Because of this, exiftool can't always edit EXIF data in a video safely, though it can for a few types.

From a previous post by Phil regarding EXIF data in a Canon video
Quote from: Phil Harvey on February 18, 2023, 09:34:33 AMCanon specifically writes metadata to the thumbnailimage.  I think you may be able to write this by extracting the thumbnail, editing it, then writing it back again.

In case it matters, most other software won't even know this metadata exists.

I don't think exiftool can embed a thumbnail in a video, but I'm not sure. You might have to look for another program to do so.  Maybe ffmpeg?
#5
The "exiftool" Application / Add timezone to MOV video cont...
Last post by Grouaaah - May 22, 2024, 07:32:11 PM
Hello,

While my MOV videos taken with an iPhone don't contain such tags as IFD0, ExifIFD... my Canon videos do:

What's weird is that I could not edit those tags in any way. I want to add a timezone to those stamps, so I have Date/time Original and Date/Time Numeric (in ExifIFD) with their timezone associated. I also have a IFD0 FileModifyDate with no timezone associated.
(On my most recent Canon I have in ExifIFD 3 tags: OffsetTime, OffsetTime Original and OffsetTime Digitized.)

I couldn't add any timezone to it on GraphicConverter 12 going through: Exif > Edit Exif Date > Define Exif timezone.

I didn't manage to do it with other manipulations.

Would you have any ideas to add this to my Canon videos please? Thank you very much,
#6
Metadata / Re: Samsung metadata
Last post by e@e@ - May 22, 2024, 03:17:07 PM
Quote from: StarGeek on May 22, 2024, 10:00:31 AMI used the -v5 (-verbose5) option to get a hex dump of the APP4 section.  There are way too many null characters 0x00 for it to be image data, IMO. There are about 2,525 null characters out of the 6,520 characters in that section.

Yes, that's what I thought too...
So what else can it be? I saw this kind of APP4 on some Samsung devices, in each picture they are a little different, but contain a lot of nulls...
#7
Newbies / Re: How to extract the content...
Last post by FixEUser - May 22, 2024, 03:14:16 PM
GREAT!

Thank you for your patience and the simple and easy to understand solution.

No additional batch file, nothing.
Just exiftool -s3 , the needed UserDefinedText tag name and the music file.

I'm really happy!
#8
The "exiftool" Application / Re: The decimal places in the ...
Last post by StarGeek - May 22, 2024, 10:07:43 AM
In what way is it "too few".  Can you provide a sample image and explain why it is wrong?

The data in the GPS tags is saved as a fraction. There may be minor rounding differences when displaying the data as a decimal. You can use the -n (--printConv) option to list the entire decimal number that is converted from that fraction or the -c (-coordFormat) option to control how the data is printed.
#9
Metadata / Re: Samsung metadata
Last post by StarGeek - May 22, 2024, 10:00:31 AM
I used the -v5 (-verbose5) option to get a hex dump of the APP4 section.  There are way too many null characters 0x00 for it to be image data, IMO. There are about 2,525 null characters out of the 6,520 characters in that section.
#10
Newbies / Re: How to extract the content...
Last post by StarGeek - May 22, 2024, 09:39:27 AM
Don't include the -G (-groupNames) option. That's an interaction between -G and -s3 that I didn't know about.

C:\Programs\My_Stuff>exiftool -s3 -MusicBrainzArtistId Y:/Music/Music/Sorted/Albums/Journey/Greatest_Hits/01-Only_the_Young.mp3
abd506e1-6f2b-4d6f-b937-92c267f6f88b

And there is always the -p option, as I mentioned
C:\>exiftool -p "$MusicBrainzArtistId" Y:/Music/Music/Sorted/Albums/Journey/Greatest_Hits/01-Only_the_Young.mp3
abd506e1-6f2b-4d6f-b937-92c267f6f88b