Search code examples
pythonopencvffmpegcomputer-visionvideo-streaming

Extract image frames from live non-youtube video streams


I am trying to extract https videos which are live streaming on earthcam.net, skyline.net, etc. I have been,

FFmpeg -i "https://<>" -vf fps=1/5 out%d.png

but it gives Invalid data found when processing input


Solution

  • The best way to do this is by using streamlink in python. That will give you the m3u8 file which can be read by opencv cam = VideoCapture(streamlink_output)