ffmpeg capture current frame and overwrite the image output file

后端 未结 4 1541
野趣味
野趣味 2021-02-07 16:13

I am trying to extract the image file from a RTSP stream url every second (could be every 1 min also) and overwrite this image file.

my below code works but it outputs t

4条回答
  •  日久生厌
    2021-02-07 16:42

    I couldn't get the option -update working to overwrite the .jpg. Doing some experiments resulted in a working solution (at least for me) with the option -y at the end (upper-case is not working). I also needed http:// instead of rstp:// for this camera.

    ffmpeg -i http://xx:yy@192.168.1.xx:yyy/snapshot.cgi /tmp/Capture2.jpg -y

提交回复
热议问题