[Errno 8] Exec format error: 'ffmpeg'
AWS Lamdaでffmpegを呼び出した所、以下のエラーがでた。
[Errno 8] Exec format error: 'ffmpeg'
ARM64の場合、正しいDocker Fileの記述はどちらでしょう?
RUN curl https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz -o ffmpeg.tar.xz -s
RUN curl https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-arm64-static.tar.xz -o ffmpeg.tar.xz -s
下の記事で気がつきました。ありがとうございます。
エラーメッセージ詳細
{
"errorMessage": "[Errno 8] Exec format error: 'ffmpeg'",
"errorType": "OSError",
"requestId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"stackTrace": [
" File "/var/task/caller.py", line 11, in lambda_handler\n subprocess.run(args, stdout=subprocess.PIPE)\n",
" File "/var/lang/lib/python3.10/subprocess.py", line 503, in run\n with Popen(*popenargs, **kwargs) as process:\n",
" File "/var/lang/lib/python3.10/subprocess.py", line 971, in init\n self._execute_child(args, executable, preexec_fn, close_fds,\n",
" File "/var/lang/lib/python3.10/subprocess.py", line 1863, in _execute_child\n raise child_exception_type(errno_num, err_msg, err_filename)\n"
]
}
Discussion