How to create a Python AWS Lambda zip with OpenCV + FFmpeg?

asked 2017-06-26 09:37:18 -0600

dannyeuu gravatar image

updated 2017-06-26 11:48:50 -0600

On my desktop I have FFmpeg, OpenCV compilated right, and works well.

The function load a video from S3 and run a model that extract some frames and store them in another S3 Bucket.

But I have to deploy a conda env with my lambda function and packages with OpenCV with FFmpeg, cuz I need it to opencv mp4 video file.

python-project/
    - cv2/
    - numpy/
    - lambda_handler.py

How can I setup the opencv that enable videos on OpenCV? I tried to compile in another desktop but none.

I have the same question on Stack Overflow

edit retag flag offensive close merge delete

Comments

if it has to run on aws, you probably need to compile it on aws, too. is that the problem ? (TravisCI, maybe)

berak gravatar imageberak ( 2017-06-26 09:56:31 -0600 )edit

I try to compile at a Amazon Linux the entire environment, Python 3.6 FFmpeg and OpenCV. but did not worked too =(

dannyeuu gravatar imagedannyeuu ( 2017-06-29 09:45:53 -0600 )edit

if all you can say is "did not work" , you never understood it.

berak gravatar imageberak ( 2017-06-29 10:14:17 -0600 )edit