how to add ffmpeg and ffprobe as a lambda layer to be used by lambda functions.
# ffmpeg 
  https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
# checksum 
  https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz.md5
  -c  ffmpeg-release-amd64-static.tar.xz.md5
# extract 
  xvf  ffmpeg-release-amd64-static.tar.xz
Side note : i had to brew install md5sha1sum and brew install wget on my local laptop
create ffmpeg/bin/ 
copy ffmpeg into it 
zip ffmpeg/ 
 
# Create bin/ 
  -p  ffmpeg/bin
# Copy ffmpeg 
  ffmpeg-6.0-amd64-static/ffmpeg  ffmpeg/bin
# Zip directory 
cd   ffmpeg
  -r  ../ffmpeg.zip  .
Upload zip file as a lambda layer.
In my case I also included ffprobe as it's also required for whisper.
    
      
        
          Continue reading