ExifTool Forum

ExifTool => Newbies => Topic started by: TS on July 20, 2015, 08:45:59 AM

Title: Rename by custom name and video size
Post by: TS on July 20, 2015, 08:45:59 AM
Hi!

I'm trying to get a small batch working. I should rename the files with a new title and the video dimensions.

@echo off
set /p fname= Enter Video Title:
exiftool "-FileName<$%fname%_{videoframesizew}" -ext "*" .

...which isn't working. Any ideas?

Output is (with fname = "test":
Warning: [minor] Tag 'test_' not defined - ./VideoFile.flv
Warning: No writable tags set from ./VideoFile.flv
Title: Re: Rename by custom name and video size
Post by: Phil Harvey on July 20, 2015, 08:53:19 AM
Try this:

@echo off
set /p fname= Enter Video Title:
exiftool "-FileName<%fname%_${videoframesizew}.%e" -ext "*" .


The dollar sign must come before the tag name.

- Phil
Title: Re: Rename by custom name and video size
Post by: TS on July 21, 2015, 04:06:22 AM
Wow, what a super quick response! Thanks a lot! :)