Author Topic: Rename by custom name and video size  (Read 1086 times)

TS

  • Newbie
  • *
  • Posts: 2
Rename by custom name and video size
« 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

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16885
    • ExifTool Home Page
Re: Rename by custom name and video size
« Reply #1 on: July 20, 2015, 08:53:19 AM »
Try this:

Code: [Select]
@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, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

TS

  • Newbie
  • *
  • Posts: 2
Re: Rename by custom name and video size
« Reply #2 on: July 21, 2015, 04:06:22 AM »
Wow, what a super quick response! Thanks a lot! :)