[FIXED] How to get video's data with python

Issue

I need to retrive from a video all the information about it such as - frame rate, size, bits, length... and also all the frame's data (the pixels as 2D numpy array for example). Do you have a function in python that you can load a video, and then retrive from it all it's data? Thank's a lot! I know there is such a function in matlab and I'm looking for a way of doing this on python.


Solution

You'll benefit from the OpenCV library. You can install it several ways including [pip](pip install opencv-python) or conda. Here's a few previous SO threads discussing your question.



Answered By - Juancheeto
Answer Checked By - Dawn Plyler (sql.easybugfix Volunteer)

Related Posts

Post a Comment