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://
192.168.100.10:7447/5c81df8ae41ba66e124ec0af_0 -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://
192.168.100.10:7447/5c81df8ae41ba66e124ec0af_0 -f image2 -vframes 1 -strftime 1
"C:\timelapse\sunflower-%Y-%m-%d_%H-%M-%S.jpg"


Gyan
_______________________________________________
ffmpeg-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to