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
Post a Comment