All Products
Search
Document Center

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

Last Updated:Aug 20, 2025

FFmpeg is built in Function Compute. If the FFmpeg version cannot meet your business requirements, you can install FFmpeg of a specified version by using the following methods:

  • If your function is created by using a container image, 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.