Instant video transcoding
Updated at:2025-11-03
Basic concepts
Baidu AI Cloud Object Storage (BOS) provides a cutting-edge instant video transcoding API, enabling immediate video bitrate conversions by setting URL parameters. It supports seamless transformations between h264 and h265 bitrates.
Note
- Before use, you should activate Baidu AI Cloud Multimedia Cloud Processing (MCP) Service. The billing for instant transcoding capabilities is handled by MCP.
- BOS video transcoding is currently in public beta and free for now. Commercial usage will incur charges based on real-time video transcoding activity.
- BOS does not store transcoded videos. Transcoded content must be manually downloaded and stored locally.
- Recommended transcoded video size: smaller than 1GB
- Recommended transcoding resolution: no more than 1080P
Video transcoding command
Processing video files typically takes a few seconds to complete.
- Operation category: video
- Operation name: codec
The BOS video processing API is defined as follows:
- Parameter description
| Parameter name | Abbreviation | Types | Value | Command description | Required or not |
|---|---|---|---|---|---|
| format | f | string | [h264,h265] | Target format of video transcoding | Yes |
| priority | p | int | [0,1] | 1: Velocity prioritized, slightly lower quality; 0: Velocity sacrificed, higher quality | No |
Request example
- Convert videos in h265 format to h264 using default mode
The processed URL is:
- Use high-priority mode to convert h264 bitrate video to h265
The processed URL is:
Rules and limitations
- Currently, it is only available in Beijing, Suzhou, Guangzhou and Baoding
- x-bce-process can only be added in URL parameter or the header
