Individual metadata transfer works, but not batch?

Started by Callum_2151, October 15, 2024, 08:26:15 AM

Previous topic - Next topic

Callum_2151

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.

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

Callum_2151