Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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

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 without FFmpeg, but 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

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

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 without with FFmpeg, but 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