Thanks for that, I did try the timestamps and it does indeed work. The reason I was trying the previous method is that with the timestamp, I was unable to get FFMpeg to stitch together a time lapse of the images trying to use 2019-%14d or similar. Do you have any suggestions on how to go about doing that?
On Thu, Jun 13, 2019 at 11:32 PM Gyan <[email protected]> wrote: > > > 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". _______________________________________________ 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".
