I am using the ffmpeg-cli-wrapper to run FFmpeg from an application I upload onto AWS lambda. I was initially getting the
error=13 Permission Denied
when trying to call it via the wrappers ProcessBuilder. My inital solution was to chmod 755 ffmpeg before uploading, but it didn't help.
For information, my FFmpeg and ffprobe files are located in the following classpath: static/ffmpeg/ffmpeg and static/ffmpeg/ffprobe. They are also statically linked.
AWS Lambda permission denied when trying to use ffmpeg
I've tried to follow the instructions given in the example above, but when I try to perform either mv or cp command:Runtime.exec("mv " + pathToFFmpeg + " /tmp"), I get the
error=20, Not a directory
error.
I know that I have the correct path for FFmpeg because the following command mv *pathToFFmpeg* *an arbitrary name* runs without error, meaning that the file is there and so the mv command just renames it as it's supposed to do.