- Documentation
Volcano Engine Function as a Service
User guide
Application center
Apply a template
Audio and video processing
Deploying an FFmpeg video frame extraction application with a few clicks
Audio and video processing
Deploying an FFmpeg video frame extraction application with a few clicks
Deploying an FFmpeg video frame extraction application with a few clicks
This topic describes how to deploy an FFmpeg video frame extraction application with a few clicks via the veFaaS application center.
Background information
- Application introduction
- FFmpeg is open-source software for processing audio and video, widely used in scenarios such as audio or video transcoding, video editing, and video effect creation. This application template comes with the built-in FFmpeg tool, helping you quickly deploy a video frame extraction application. After deployment, you can send frame extraction requests via the API Gateway to capture screenshots of the video at specified time points.
- Associated cloud services
- veFaaS: Uses FFmpeg to perform video frame extractions.
- API Gateway: Sends video frame capture requests via the API Gateway.
Prerequisites
- All the cloud services associated with the application have been activated.
- The VeFaaSFullAccess, APIGFullAccess, and STSAssumeRoleAccess policies have been attached to Identity and Access Management (IAM) users. If one of the preceding policies is not attached, contact the root user or the administrator for authorization. For specific operations, refer to [Creating a user and granting permissions.
- API Gateway prerequisites:
- The current application supports selecting an existing API Gateway instance or automatically creating a new one.
- Select an existing API Gateway instance: Please prepare the gateway instance in advance. Note that the instance must be deployed in the same region as the application. For detailed operations, see Creating instances.
- Automatically create an API Gateway instance: Please prepare the VPC and subnet information in advance. Note that the VPC must be in the same region as the application. For detailed operations, see Creating VPCs.
- If you use veFaaS for the first time, make sure that the cross-service authorization is complete. If the authorization is not complete, the cross-service authorization page will appear, which provides guidance on authorization.
Procedure
- In the top navigation bar, select the target region.
- In the left navigation bar, click App.
- On the My app page, click Create app.
- On the Create app page, select the volcano-ffmpeg template and click Create.
- On the Create App page, specify the following information as required.
- Click Confirm to create and deploy the application. The system will automatically redirect to the application details page and display the application deployment logs in real time.
Result validation
This section describes how to send a video frame extraction request to obtain a video screenshot at a specified time.
- Prepare the URL of the video file in advance. For example, upload the video file to Volcano Engine TOS and set its read permission to public. The video file used in this example is: https://volcengine-vefaas-demo-resource.tos-cn-beijing.volces.com/moment-120sec.mp4.
- Open a local terminal and run the following command to extract the frame at 10 seconds from the video and save it locally as/tmp/image.jpeg.
- Open the local file /tmp/image.jpeg to view the video screenshot obtained in Step 2.
Last updated: 2026.08.19 14:06:07