Traditional transcoding technology requires decoding and encoding the entire audio and video before playback, which operates in an asynchronous processing mode, leading to longer waiting times for users. However, Just-in-time transcoding technology allows for immediate playback without waiting, regardless of the video's length, achieving a seamless start within seconds and providing users with an entirely new playback experience.
Note:
If you need to use the Just-in-time transcoding feature, please contact sales to apply for activation.
Just-in-Time Transcoding Template
The JIT transcoding template includes parameters such as resolution and bitrate. VOD uses a JIT transcoding template to represent a set of transcoding parameters. Through the template, you can specify the following transcoding-related parameters.
Item | Parameter | Description |
Video transcoding | Resolution | Supported width range:128px - 1920px Supported height range:128px - 1920px |
| Bitrate | Supported video bitrate range:128kbps - 10000kbps |
Watermark | Watermark image | the base64 of watermark image |
| Watermark position | the position of watermark |
| Watermark resolution | the resolution of watermark |
For common usage scenarios, VOD provides the following preset JIT transcoding templates.
Template name | Video resolution | Bitrate | Watermark |
|
hls_avc_540_preset | 540P | 1000kbps | none |
|
hls_avc_720_preset | 720P | 1800kbps | none |
|
hls_avc_1080_preset | 1080P | 2500kbps | none |
|
In addition, you can create and manage custom JIT transcoding templates through the server-side API. Guide
1. After uploading the video to VOD, you could obtain the URL address of the video through the VOD console or server API :
2. Splice the JIT transcoding parameters and replace templateName in the URL with the template name to get the JIT transcoded playback URL.
3. The following case uses the preset template name hls_avc_720_preset
as an example to show how to splice the JIT transcoding playback URL.
Was this page helpful?