tencent cloud

masukan

Custom Transcoding

Terakhir diperbarui:2024-03-25 15:16:26

    Overview

    As the largest part of traffic in information dissemination, audio and video are very important in all industries, and the processing logic of audio and video in different business scenarios may be specific to the industry. Although public cloud provides a large number of video processing services for users to choose from, it still cannot fully cover users' requirements for special processes and customization. Using the workflow processing of Cloud Object Storage (COS) combined with the customization logic of Serverless Cloud Function (SCF) is an excellent choice to help users quickly create a variety of audio and video processing businesses to meet their needs.
    

    Use Cases

    Fast access to users' self-built transcoding clusters, compatible with their existing businesses
    Supports industry-specific formats and processing logic, suitable for film,Media and other special industries
    Supports custom processing logic, meeting process customization requirements of various scenarios
    Workflow for template-based batch processing, meeting common audio and video processing requirements of video websites, education, and social networking industries

    Solution Strengths

    Accelerated development: eliminates the need to focus on resource OPS and component overhead, greatly reducing the complexity for constructing service structures.
    Reduced overhead: when the platform is idle, no resource is executed. When a function is executed, the service fee is determined by the number of requests and the running time of the computing resource. The price advantage is obvious.
    High availability and scalability: the platform automatically adjusts service resources in parallel based on requests, thus implementing near-infinite scalability and eliminating the risk of service interruption inherent in single-availability zone operations.

    Directions

    1. Log in to the COS console, create a workflow, customize a filter rule, and create a custom function node.
    2. In the function node pop-up window, click Add Function.
    3. On the function creation page, select the COS data workflow audio/video transcoding template.
    4. Based on the user's file size, configure the execution timeout duration in the basic settings and configure sufficient memory in the advanced settings.
    5. Choose Advanced Settings > Environment Configuration and configure environment variables. The function template supports the following environment variables:
    targetBucket: target bucket. Required.
    targetRegion: region of the target bucket. Required.
    targetKeyTemplate: target path template. Optional. Defaults to ${InputPath}${InputName}_transcode.${ext}.
    ffmpegTemplate: transcoding command template. Required. Example: ${ffmpeg} -loglevel error -i ${source} -r 10 -b:a 32k ${target}.
    localTmpPath: temporary save path. When CFS is bound, you can change the temporary path. Optional. Defaults to /tmp.
    6. Enable permission configuration and bind a role that has the read/write permission of the current bucket. If you need to create an execution role, see Role and Authorization.
    7. Click Finish.
    8. Go back to the previous workflow page, select the custom transcoding function created just now, and save the workflow. Start the workflow on the workflow list page.
    9. Upload the file. After the workflow processing is successful, you can see that the uploaded video is successfully transcoded and is saved as a new file.
    Hubungi Kami

    Hubungi tim penjualan atau penasihat bisnis kami untuk membantu bisnis Anda.

    Dukungan Teknis

    Buka tiket jika Anda mencari bantuan lebih lanjut. Tiket kami tersedia 7x24.

    Dukungan Telepon 7x24