V
V
Vladislav Altyncev2015-04-20 08:26:28
Windows
Vladislav Altyncev, 2015-04-20 08:26:28

Ffmpeg camera snapshot, is it possible to rename snapshot file?

There is this line:

c:\ffmpeg\bin\ffmpeg.exe -f dshow -i video="Lenovo EasyCamera" -vframes 1 -f image2 snapshot%%04d.jpg

A snapshot is taken, but is it possible to make the file be created with a new name when the script is run again?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Moskus, 2015-04-20
@npofopr

Try using the -strftime option, then you can specify a name pattern consisting of date and time values.
If this does not work for some reason, you can do the same with the robbed file immediately after its creation, using the jhead utility (it is designed to manipulate JPEG files, rename them, change EXIF).

V
Vladislav Altyncev, 2015-04-20
@npofopr

It works now

c:\ffmpeg\bin\ffmpeg.exe -f dshow -i video="Lenovo EasyCamera" -vframes 1 -f image2 -strftime 1 "d:\%%Y-%%m-%%d_%%H-%%M-%%S.jpg"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question