Page 1 of 1

Saving video screenshot with video file name

Posted: 11 Aug 2019 09:38
by TopskyIII
Is there any option to save video screenshot automatic with name of the original video file name?
Like:
whateverscene.mp4 -> whateverscene.png

Purpose is just single screenshot from each video file without any sequential numbering.
I believe it's quite often required by many users.

Presently I use manual file name copy/past.

Please suggest other player maintaining video file name.

Posted: 01 Oct 2019 17:41
by TopskyIII
If VLC doesn't support snapshot file name by original, please suggest any other video player, where screenshot/snapshot is logically named by video file name.

Presently at best vlc snapshot file name is present date, which is quite useless in most cases and must be manually renamed.

Thanks.

Re: Saving video screenshot with video file name

Posted: 02 Oct 2019 01:06
by unidan
Hi, sorry for this late answer, usually most VLC users don't take screenshot, but if you need it for many videos, you might want to automate things with snapshot options:

Code: Select all

Snapshot: --snapshot-path <string> Video snapshot directory (or filename) Directory where the video snapshots will be stored. --snapshot-prefix <string> Video snapshot file prefix Video snapshot file prefix --snapshot-format {png,jpg,tiff} Video snapshot format Image format which will be used to store the video snapshots --snapshot-preview, --no-snapshot-preview Display video snapshot preview (default enabled) Display the snapshot preview in the screen's top-left corner. --snapshot-sequential, --no-snapshot-sequential Use sequential numbers instead of timestamps (default disabled) Use sequential numbers instead of timestamps for snapshot numbering --snapshot-width <integer> Video snapshot width You can enforce the width of the video snapshot. By default it will keep the original width (-1). Using 0 will scale the width to keep the aspect ratio. --snapshot-height <integer> Video snapshot height You can enforce the height of the video snapshot. By default it will keep the original height (-1). Using 0 will scale the height to keep the aspect ratio.


VLC itself doesn't change this, but it could be added if there is a real well-defined use case behind.

Re: Saving video screenshot with video file name

Posted: 02 Oct 2019 01:27
by TopskyIII
Thanks for your reply.
It takes some time to figure out how I can use this code.

But the case behind is simple - snapshots are best to illustrate content of video in any database or in html content.
Snapshots are stored/archived in the same directory with video clips.
Just numbers like vlc presently proposes doesn't work, when there are hundreds of clips.
A snapshot with name of according video would be best.

Snapshots are created during quick preview, selecting frames best describing content.
It's expected a snapshot with the name of video ... normally saved in the same folder.

I am not sure if script could help here.