Screenshot file names

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
relux
New Cone
New Cone
Posts: 2
Joined: 16 Feb 2009 21:15

Screenshot file names

Postby relux » 16 Feb 2009 21:19

Is it possible to take a screen capture and have it save it as a filename such as MOVIENAME-001.jpg etc. In other words, put the movie name in the filename>

relux
New Cone
New Cone
Posts: 2
Joined: 16 Feb 2009 21:15

Re: Screenshot file names

Postby relux » 20 Feb 2009 02:11

anyone? any suggestions?

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: Screenshot file names

Postby Arite » 20 Feb 2009 19:39

AFAIK the snapshot prefix can only be a fixed string (i.e. no regular expressions), so not it cannot be done from with VLC. You can use sequential numbers instead of timestamps however, so the format would be PREFIX001.png, PREFIX002.png etc. (where PREFIX is your prefix).

Assuming you are using Windows (if you don't then a bash/shell script should work too) I thought I'd try writing a Batch script to see if could work, and it does (more or less):

Code: Select all

@echo OFF cd "C:\Program Files\VideoLAN\VLC" vlc --snapshot-prefix=%1- --snapshot-sequential %1
All that does is navigate to the VLC directory (the default being "C:\Program Files\VideoLAN\VLC"), and then runs VLC, setting the snapshot prefix to be "%1-" and enabling sequential numbers. %1 is the command on the next line, and so if you drag-and-drop a file onto the *.bat file the %1 will be the (complete) filename. Hence the format will be e.g. FILENAME-00001.png, FILENAME-00002.png etc.

So to try that out copy the text, put it in a text file, save it as a *.bat file and then drag and drop a file onto it. Then the snapshots should be named something like (if e.g. you input file is C:\Temp\File.avi):
C__Temp_File.avi-00001.png

Not ideal at it is the full file path, however a suggestion :).

Cheers, Arite.
Don't use PMs for support questions.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: Majestic-12 [Bot] and 58 guests