RTSPtoWebRTC icon indicating copy to clipboard operation
RTSPtoWebRTC copied to clipboard

Is there a way to save a frame of pictures in the video stream to the hard disk?

Open imamiao opened this issue 4 years ago • 1 comments

I want to save a frame of pictures at a certain moment in the video to the hard disk. I saw RTSP2Image, but it requires ffmpeg. Is there a way to save an image to the hard disk (Similar screenshots) without using ffmpeg.

I don't want to use ffmpeg because it is too heavy. The screenshot operation is a low frequency operation.

Thank you very much!

imamiao avatar Sep 01 '21 02:09 imamiao

If you want make screenshot - you can draw image from video to canvas and then save data image from canvas https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Manipulating_video_using_canvas

vdalex25 avatar Oct 11 '21 10:10 vdalex25