[FFmpeg-user] Extract a frame

Gyan ffmpeg at gyani.pro
Fri Jun 14 07:32:05 EEST 2019

On 14-06-2019 06:20 AM, nonya bidness wrote:
> I am using FFmpeg to grab a single frame from and RTSP on a windows server.
> ffmpeg -rtsp_transport tcp -i rtsp://
> -f image2 -vframes 1
> "C:\timelapse\sunflower-%10d.jpg"
> I Scheduled this task to run every X mins.  However, Each time it runs, it
> overwrites the sunflower-0000000001.jpg each time.
> How can I prevent it from overwriting a file if it already exists?

Write to a different filename. Use time specifications inĀ  the filename

ffmpeg -rtsp_transport tcp -i rtsp:// -f image2 -vframes 1 -strftime 1


More information about the ffmpeg-user mailing list