All Products
Search
Document Center

Function Compute:How do I install FFmpeg of a specified version?

Last Updated:Jul 04, 2024

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.

    Note

    Before you compress a code package, run commands such as chmod +x ffmpeg to grant FFmpeg executable permissions.