0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

(AWS Lambda) ffmpeg exited with code 126 at ChildProcess.

Posted at

原因

AWSのLambdaでffmpeg-staticを利用してffmpegを利用しよとしたら表題のエラーが発生した。
恐らく理由としてはffmpeg-staticのバイナリをLambda上で実行できないためと思われる。

対処法

Lambda layersを使用して予め実行環境に用意しておくのがおすすめ。(バイナリをアップロードするやり方もあるがこちらの方がスマート)

// 最新版
wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz

// 以下のディレクトリ構成でzipさせてアップロードさせる
ffmpeg/
|__bin
   |__ffmpeg (バイナリ)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?