Updated on 2023-04-25 GMT+08:00

Solution Overview

Scenarios

This solution uses a FunctionGraph Object Storage Service (OBS) trigger to transcode video files in an OBS bucket. The transcoding parameters are configured using environment variables. This solution depends on the third-party library ffmpeg for automatic transcoding, reducing labor costs.

Solution Architecture

This solution uses FunctionGraph to transcode video files uploaded to an OBS bucket. This solution architecture is illustrated below.

Figure 1 Architecture

This solution will:

  • Create two OBS buckets for storing original and transcoded video files, respectively.
  • Create an agency in Identity and Access Management (IAM) to delegate FunctionGraph to access video files uploaded to an OBS bucket.
  • Create a video transcoding function and an OBS trigger in FunctionGraph.

Advantages

  • Ease of use

    The serverless architecture frees you from resource O&M to focus on services.

  • Low cost

    You pay only for what you use.

  • Easy deployment

    You can configure FunctionGraph and OBS resources in just a few clicks.

Constraints

  • Before deploying this solution, ensure that you have an account with access to the target region and sufficient balance for purchasing the resources listed in Resource and Cost Planning.
  • Ensure that OBS buckets are empty before deleting them.