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 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
if it has to run on aws, you probably need to compile it on aws, too. is that the problem ? (TravisCI, maybe)
I try to compile at a Amazon Linux the entire environment, Python 3.6 FFmpeg and OpenCV. but did not worked too =(
if all you can say is "did not work" , you never understood it.