Rename by custom name and video size

Started by TS, July 20, 2015, 08:45:59 AM

Previous topic - Next topic

TS

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

Phil Harvey

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
...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 ($).

TS

Wow, what a super quick response! Thanks a lot! :)