bash - ffmpeg capture current frame and overwrite the image output file -


i trying extract image file rtsp stream url every second (could every 1 min also) , overwrite image file.

my below code works outputs multiple image jpg files: img1.jpg, img2.jpg, img3.jpg...

ffmpeg -i rtsp://ip_address/live.sdp -f image2 -r 1 img%01d.jpg 

how use ffmpeg or perhaps bash scripts in linux overwrite same image file while continuously extract image @ not high frequecy, 1 min or 10 sec?

following command line should work you.

ffmpeg -i rtsp://ip_address/live.sdp -f image2 -updatefirst 1 img.jpg 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -