aeddi / aws-lambda-python-opencv

Simple script that builds an AWS Lambda deployment package including OpenCV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Frame Count issue

markoliverbrawn opened this issue · comments

commented

CV good, but when I try to do:
vc = cv2.VideoCapture("foo.mp4")

I find that:
vc.get(cv2.CAP_PROP_FRAME_COUNT)

Is always returning 0.0

I've been struggling with this exact same issue for a while - does anybody have a solution?

I think this is related to this issue. You would need to link OpenCV against FFMPEG when building since AWS Lambda does not have FFMPEG by default and this package does not include it.