Reputation: 53
Hello i try make script who get screenshot from ip camera every 5 or 10 min this script is work
ffmpeg -rtsp_transport tcp -i "$SOURCE"-vf fps=fps=1/20 -update 1 /picture1.jpg
But when i start script. It make one shot for 20 second. I need just one pictures and wanna script stop. I can make bash script to run script every 5 or 10 min. When start for 2 time script ask me to Overwrite and i need say Y. This is not good for me.
PS. sorry for my bad english
Upvotes: 2
Views: 4179
Reputation: 3141
For only one picture:
$ ffmpeg -rtsp_transport tcp -i "$SOURCE" -frames 1 ./picture1.jpg
Upvotes: 2