Elastic audio and video processing

更新时间:
复制 MD 格式

This topic describes how to deploy a highly elastic and available audio and video processing system using a combination of Serverless Workflow, Function Compute, file storage, Object Storage Service, and Simple Log Service.

Scenarios

  • Uploading many videos.
  • Processing uploaded videos promptly to adapt to various devices and network conditions.
  • Provisioning a large amount of computing resources in a short time for large-scale parallel transcoding.
  • Migrating a self-built, FFmpeg-based transcoding service with ease.

Solution overview

This solution converts files from the MOV format to FLV, AVI, and MP4 formats, and stores the converted files in a specified folder in Object Storage Service.

buhuo2hanshujisuankehuanli
The process is as follows:
  1. Upload video files to a specified folder in Object Storage Service.
  2. When a file is uploaded to Object Storage Service, an OSS trigger automatically starts a Serverless Workflow.
  3. Function Compute invokes a custom Serverless Workflow to automatically process audio and video files.

Benefits of the solution

  • Fast migration: Seamlessly migrate self-built, FFmpeg-based transcoding services. Serverless Workflow and Function Compute support custom commands and allow you to use a custom FFmpeg version.
  • Elastic and highly available: Serverless Workflow and Function Compute can quickly provision a large amount of computing resources to accelerate and parallelize transcoding.
  • Custom workflows: Serverless WorkflowServerless WorkflowServerless workflow is highly customizable, allowing you to implement complex operations such as parallel transcoding, adding watermarks, and inserting metadata into a database. It also supports secure workflow upgrades and updates.
  • Lower costs: Video transcoding is CPU-intensive. The high resource utilization of Serverless Workflow and Function Compute helps reduce transcoding costs.
  • Increased efficiency: This solution reduces learning and usage costs because you do not need to learn new languages or other cloud products. This approach significantly shortens project timelines and accelerates development and deployment.

Solution details

For more information, see Use Function Compute to implement an elastic audio and video processing system.