FFmpeg is built in the runtime environments of Function Compute. If the version of the installed FFmpeg does not meet your business requirements, you can install FFmpeg of a specified version by using one of the following methods:
Create a function by selecting Web Function and specifying Custom Container Image as the runtime. In this case, you can fully customize your runtime environment.
If you use a built-in runtime or a custom runtime to create a function, you must download FFmpeg of the amd64 version from FFmpeg and package it into a code package or layer. For more information about packaging layers, see Build a .zip file for a layer.
NoteBefore you compress a code package, run commands such as
chmod +x ffmpegto grant FFmpeg executable permissions.