RTSPtoWebRTC
RTSPtoWebRTC copied to clipboard
Get frame of rtsp
I want to get frames from RTSP URLs to apply the AI model, can anyone help me?
can be achieved with ffmpeg library something like this:
ffmpeg -loglevel error -timeout 10000000 -rtsp_transport tcp -i {RTSP_URL} -vf fps=1/{FREQUENCY} -strftime 1 {FRAMES_DIRECTORY_PATH}/%Y-%m-%d_%H-%M-%S_image.png
this will save frames to directory with frequency you will set you can check ffmpeg docs and pipe data to some handler if you do not want to save images