Bento4
Bento4 copied to clipboard
Not working on AWS Lambda with arm64 architecture (Linux)
I added the bento4 to my lambda docker image like this:
# Install Bento4
COPY Bento4-SDK-1-6-0-639.x86_64-unknown-linux.zip .
RUN unzip -q Bento4-SDK-1-6-0-639.x86_64-unknown-linux.zip
RUN mkdir -p /usr/bin/../utils
RUN mv Bento4-SDK-1-6-0-639.x86_64-unknown-linux/bin/* /usr/bin
RUN mv Bento4-SDK-1-6-0-639.x86_64-unknown-linux/utils/mp4-dash.py /usr/bin/../utils
RUN mv Bento4-SDK-1-6-0-639.x86_64-unknown-linux/utils/mp4-hls.py /usr/bin/../utils
RUN mv Bento4-SDK-1-6-0-639.x86_64-unknown-linux/utils/* /usr/bin/../utils
It was working fine with x86 architecture but when I switched to arm64 it is not working with the same code. I'm getting this error:
OSError: [Errno 8] Exec format error: 'mp4fragment'
I can not find a specific bento4 build for arm64 or a way to to add it to aws lambda with arm64 architecture
The binary distribution for Linux only includes the x86 version. For arm64, you'd need to compile from source.