Is there a way to open a stream (usb webcam for example) and save each frame to the same image file?
That image would be later accessed as a simple resource from whichever protocol/service.
I tried this:
ffmpeg.exe -f dshow -i video="ASUS USB2.0 Webcam" image.png but it fails to write second frame. Error:
Could not get frame filename number 2 from pattern 'image.png' Sure, I can make a script to periodically starts ffmpeg and save only one frame, but that's a huge performance overhead.
https://stackoverflow.com/questions/66485751/ffmpeg-save-stream-frames-to-single-image-file-not-sequence March 05, 2021 at 10:08AM
没有评论:
发表评论