ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Callum_2151 on October 15, 2024, 08:26:15 AM

Title: Individual metadata transfer works, but not batch?
Post by: Callum_2151 on October 15, 2024, 08:26:15 AM
Hi, newbie here but have used exiftool for a while and haven't found issues I wasn't able to resolve by finding other posts (until now!!).

I'm copying source metadata to a compressed version, for mp4 files. File names have stayed identical, and there are no sub folders. I'm using this command which works if I link directly from source to compressed, but if I change it to just the folder the files are in then it doesn't work. So I can do it individually, just not as a batch.

exiftool -TagsFromFile sourcedir/GOPR5327.MP4  "-FileModifyDate<FileModifyDate" "-createdate<FileModifyDate" -ext mp4 compresseddir/GOPR5327.mp4

I've tried experimenting with the -all:all command, but haven't had any joy, I imagine I'm just placing it in the wrong place. When I link just folders the output says updated, however the compressed metadata is unchanged.

Thanks in advance.
Title: Re: Individual metadata transfer works, but not batch?
Post by: Phil Harvey on October 15, 2024, 08:39:33 AM
Here is the command to do this to all files in a folder:

exiftool -TagsFromFile sourcedir/%f.%e  "-FileModifyDate<FileModifyDate" "-createdate<FileModifyDate" -ext mp4 compresseddir

Here I have assumed the extensions are the same, while in your command one is uppercase and one is lower case.  If the files in the sourcedir have uppercase extensions only, you can replace %e with MP4 (but this only matters if you are on a case-sensitive filesystem).

The -all:all option is to copy all metdata, not to process all files.

- Phil
Title: Re: Individual metadata transfer works, but not batch?
Post by: Callum_2151 on October 15, 2024, 09:23:39 AM
Thank you so much, worked perfectly.