Template Settings

Last updated: 2021-02-25 16:28:05

    Log in to the VOD console and select Video Processing Settings > Template Settings on the left sidebar. Built-in templates there include video transcoding template, TESHD template, audio transcoding template, adaptive bitrate streaming template, watermark template, screencapture template, animated image generating template, and intelligent recognition template, each of which can be added to a task flow for video processing.

    Video Transcoding Template

    You can create a video transcoding template and customize it according to your business needs. Select Video Transcoding and click Create Transcoding Template to enter the custom template configuration page.

    • Template name: enter up to 64 characters. Only letters, digits, spaces, underscores (_), hyphens (-), and periods (.) are supported
    • Container format: MP4, FLV, or HLS
    • Configuration items: video and audio parameters
    • Video parameters:
      • Codec: H.264 or H.265
      • Video bitrate: 0 or 128–35,000 Kbps
      • Resolution: the value range of the long side/short side (width/height) of the video is 0 or 128–4096 px
      • Frame rate: 0–60 fps
    • Audio parameters:
      • Codec: AAC or MP3
      • Sampling rate: three default sampling rates, i.e., 32000 Hz, 44100 Hz, and 48000 Hz
      • Audio bitrate: 0 or 26–256 Kbps
      • Sound channel: mono-channel or dual-channel
    • Common template: specify whether to set it as a common template

    The created template will be displayed in the template list. You can view, edit, or delete the template, or set it as a common template.

    List of preset parameter templates

    Specification Template ID Format Video Parameters Audio Parameters
    Resolution Bitrate FPS Codec Codec
    LD 10 MP4 320 * proportionally scaled 256 Kbps 24 H.264 AAC
    510 MP4 Proportionally scaled * 240 250 Kbps 15 H.265 AAC
    210 HLS 320 * proportionally scaled 256 Kbps 24 H.264 AAC
    610 HLS Proportionally scaled * 240 250 Kbps 15 H.265 AAC
    10046 FLV 320 * proportionally scaled 256 Kbps 24 H.264 MP3
    710 FLV Proportionally scaled * 240 250 Kbps 15 H.265 AAC
    SD 20 MP4 640 * proportionally scaled 512 Kbps 24 H.264 AAC
    520 MP4 Proportionally scaled * 480 600 Kbps 24 H.265 AAC
    220 HLS 640 * proportionally scaled 512 Kbps 24 H.264 AAC
    620 HLS Proportionally scaled * 480 600 Kbps 24 H.265 AAC
    10047 FLV 640 * proportionally scaled 512 Kbps 24 H.264 MP3
    720 FLV Proportionally scaled * 480 600 Kbps 24 H.265 AAC
    HD 30 MP4 1280 * proportionally scaled 1,024 Kbps 24 H.264 AAC
    530 MP4 Proportionally scaled * 720 800 Kbps 25 H.265 AAC
    230 HLS 1280 * proportionally scaled 1,024 Kbps 24 H.264 AAC
    630 HLS Proportionally scaled * 720 800 Kbps 25 H.265 AAC
    10048 FLV 1280 * proportionally scaled 1,024 Kbps 24 H.264 MP3
    730 FLV Proportionally scaled * 720 800 Kbps 25 H.265 AAC
    FHD 40 MP4 1920 * proportionally scaled 2,500 Kbps 24 H.264 AAC
    540 MP4 Proportionally scaled * 1080 1,400 Kbps 30 H.265 AAC
    240 HLS 1920 * proportionally scaled 2,500 Kbps 24 H.264 AAC
    640 HLS Proportionally scaled * 1080 1,400 Kbps 30 H.265 AAC
    10049 FLV 1920 * proportionally scaled 2,500 Kbps 24 H.264 MP3
    740 FLV Proportionally scaled * 1080 1,400 Kbps 30 H.265 AAC
    2K 70 MP4 Proportionally scaled * 1440 3,072 Kbps 30 H.264 AAC
    570 MP4 Proportionally scaled * 1440 2,048 Kbps 30 H.265 AAC
    270 HLS Proportionally scaled * 1440 3,072 Kbps 30 H.264 AAC
    670 HLS Proportionally scaled * 1440 2,048 Kbps 30 H.265 AAC
    370 FLV Proportionally scaled * 1440 3,072 Kbps 30 H.264 MP3
    770 FLV Proportionally scaled * 1440 2,048 Kbps 30 H.265 AAC
    4K 80 MP4 Proportionally scaled * 2160 6,144 Kbps 30 H.264 AAC
    580 MP4 Proportionally scaled * 2160 4,096 Kbps 30 H.265 AAC
    280 HLS Proportionally scaled * 2160 6,144 Kbps 30 H.264 AAC
    680 HLS Proportionally scaled * 2160 4,096 Kbps 30 H.265 AAC
    380 FLV Proportionally scaled * 2160 6,144 Kbps 30 H.264 MP3
    780 FLV Proportionally scaled * 2160 4,096 Kbps 30 H.265 AAC

    TESHD Template

    You can create a TESHD template and customize it according to your business needs. Select TESHD and click Create Transcoding Template to enter the custom template configuration page.

    • Template name: enter up to 64 characters. Only letters, digits, spaces, underscores (_), hyphens (-), and periods (.) are supported
    • Container format: MP4
    • Configuration items: video and audio parameters
    • Video parameters:
      • Codec: H.264
      • Average bitrate limit: if it is left empty or 0 is entered, no upper limit is set for video bitrate
      • Resolution: the value range of the long side/short side (width/height) of the video is 0 or 128–4096 px
      • Frame rate: 0–60 fps
    • Audio parameters:
      • Codec: AAC or MP3
      • Sampling rate: three default sampling rates, i.e., 32000 Hz, 44100 Hz, and 48000 Hz
      • Audio bitrate: 0 or 26–256 Kbps
      • Sound channel: mono-channel or dual-channel
    • Common template: specify whether to set it as a common template

    The created template will be displayed in the template list. You can view, edit, or delete the template, or set it as a common template.

    Note:

    You can view the preset TESHD templates in the VOD console.

    Audio-Transcoding-Template">

    Audio Transcoding Template

    You can create an audio transcoding template and customize it according to your business needs. Select Audio Transcoding and click Create Audio Template to enter the custom template configuration page.

    • Template name: enter up to 64 characters. Only letters, digits, spaces, underscores (_), hyphens (-), and periods (.) are supported
    • Container format: MP3, FLAC, OGG, or M4A
    • Audio parameters:
      • Audio codec: MP3 (when the container format is MP3); FLAC (when the container format is FLAC or OGG); MP3, AAC, or AC3 (when the container format is M4A).
      • Sampling rate: three default sampling rates, i.e., 32000 Hz, 44100 Hz, and 48000 Hz
      • Audio bitrate: 0 or 26–256 Kbps
      • Sound channel: mono-channel or dual-channel
    • Common template: specify whether to set it as a common template

    The created template will be displayed in the template list. You can view, edit, or delete the template, or set it as a common template.

    List of preset parameter templates

    Template ID Format Bitrate Codec SoundSystem SampleRate
    1100 M4A 24 Kbps AAC Stereo 44,100 Hz
    1110 M4A 48 Kbps AAC Stereo 44,100 Hz
    1120 M4A 96 Kbps AAC Stereo 44,100 Hz
    1130 M4A 192 Kbps AAC Stereo 44,100 Hz
    1140 M4A 256 Kbps AAC Stereo 44,100 Hz
    1010 MP3 128 Kbps MP3 Stereo 44,100 Hz
    1020 MP3 320 Kbps MP3 Stereo 44,100 Hz

    Adaptive Bitrate Streaming Template

    You can use the preset adaptive bitrate streaming template or create custom templates according to your business needs.

    • Basic info
      • Template name: enter up to 64 characters. Only letters, digits, spaces, underscores (_), hyphens (-), and periods (.) are supported
      • Muxing Format: HLS
      • Encryption: no encryption or SimpleAES
      • Switch from Low Resolution to High Resolution: enable or disable
    • Substream info
      • Video codec: H.264 or H.265.
      • Video bitrate: 0 or 128–35,000 Kbps
      • Video resolution: the value range of the short/long side of the video is 0 or 128–4,096 px
      • Video frame rate: 0–60 fps
      • Audio codec: AAC or MP3
      • Audio sampling rate: 32,000 Hz, 44,100 Hz, or 48,000 Hz
      • Audio bitrate: 0 or 26–256 Kbps
      • Sound channel: mono-channel or dual-channel

    The created template will be displayed in the template list. You can view, edit, or delete the template.

    Note:

    Watermark Template

    You can create a watermark template by uploading images according to your business needs and customize the watermark configuration and its location in the video.

    • Template name: enter up to 64 characters. Only letters, digits, spaces, underscores (_), hyphens (-), and periods (.) are supported
    • Watermark type: image watermark
    • Watermark image: PNG and APNG images are supported. We recommend you use transparent images in PNG format for best results. The image is up to 200 KB in size and 200x200 px in dimensions.
    • Watermark location: top-left corner by default. You can also choose bottom-left, top-right, or bottom-right corner.
    • Horizontal offset: the horizontal offset percentage is the ratio of the horizontal distance between the watermark and the top-left corner to the horizontal width. This is used to set the horizontal location of the watermark.
    • Vertical offset: the vertical offset percentage is the ratio of the vertical distance between the watermark and the top-left corner to the vertical height. This is used to set the vertical location of the watermark.
    • Watermark size: you can choose to resize the watermark by percentage (%) or pixel (px). If % is selected, the original size will be scaled by percentage. If px is selected, the watermark will be scaled according to the enter values.

    In the management list of created watermark templates, you can view the name of a watermark template, preview a watermark file, and view the format, type, position, and size of a watermark. You can also view, edit, or delete a watermark template, or set it as the default template.

    Note:

    For example, if the horizontal offset is 0% and vertical offset is 0%, then the watermark will be in the top-left corner of the video. If the horizontal offset is 90% and the vertical offset is 90%, then the watermark will be in the bottom-right corner of the video.

    Screencapture Template

    You can create a screencapture template according to your business needs for uploaded videos. Currently, the VOD console supports three types of screenshots: time point screenshot, sampled screenshot, and image sprite screenshot.

    The template name, screenshot type, and image dimensions are displayed in the screencapture template. You can view, edit, or delete the template in the Operation column.

    Time point screenshot

    Select Time Point Screenshot as the screenshot type. You can only use the template to set the screenshot type. To specify sample timestamps, please go to screenshot task configuration. For more information on the configuration of a time point screencapture task, please see Task Configuration.

    • Template name: enter up to 64 characters. Only letters, digits, spaces, underscores (_), hyphens (-), and periods (.) are supported
    • Image format: JPG
    • Image dimensions: 0 or 128–4,096 px

    List of preset parameter templates

    Template ID Format Width Height FillType
    10 JPG Same as source Same as source Stretch

    Sampled screenshot

    Select Sampled Screenshot as the screenshot type.

    • Template name: enter up to 64 characters. Only letters, digits, spaces, underscores (_), hyphens (-), and periods (.) are supported
    • Image format: JPG
    • Image dimensions: 0 or 128–4,096 px
    • Sample interval: percentage (up to 100%) or duration (s).

    List of preset parameter templates

    Template ID Format Width Height SampleType Interval FillType
    10 JPG Same as source Same as source By percent 10% Stretch

    Image sprite screenshot

    Select Image Sprite Screenshot as the screenshot type.

    • Template name: enter up to 64 characters. Only letters, digits, spaces, underscores (_), hyphens (-), and periods (.) are supported
    • Image format: JPG
    • Image dimensions: 0 or 128–4,096 px
    • Sample interval: percentage (up to 100%) or duration (s).
    • Rows: enter a positive integer. The number of subimage rows multiplied by the number of subimage columns cannot exceed 100.
    • Columns: enter a positive integer. the number of subimage rows multiplied by the number of subimage columns cannot exceed 100.

    List of preset parameter templates

    Template ID Format Width Height Rows Columns SampleType Interval
    10 JPG 142 80 10 10 By interval 10s

    Animated Image Generating Template

    You can create an animated image generating template to take screenshots within the specified time period and generate an animated image. You can only use the template to set the screenshot type. To specify time periods for generating animated image, please go to task configuration. For more information on the configuration of an animated image generating task, please see Task Configuration.

    • Image type: WebP or GIF
    • Frame rate: 1–30 fps
    • Image quality: 1–100
    • Image dimensions: 0–1,920 px

    List of preset parameter templates

    Template ID Format Resolution FPS
    20000 GIF Same as source 2
    20001 WebP 320 * proportionally scaled 2

    Intelligent Recognition Template

    You can create an intelligent video recognition template and customize it according to your business needs. Click Create Template to enter the custom template configuration page.

    • Template name: enter up to 64 characters. Only letters, digits, spaces, underscores (_), hyphens (-), and periods (.) are supported
    • Sampling interval: it indicates at which interval in seconds the video under intelligent recognition is sampled for check. Default value: 1. Minimum value: 0.5
    • Intelligent recognition item: valid values include image recognition, speech recognition, and text recognition. The selected intelligent recognition subitems will appear in the "Selected" column on the right
      Intelligent Recognition Item Intelligent Recognition Subitem Description
      Image recognition Porn information Includes intelligent recognition subitems of porn, vulgarity, intimacy, and sexiness
      Terrorism information Includes intelligent recognition subitems of militants, weapons and guns, bloody scenes, police force, and crowd gathering
      Politically sensitive information Includes intelligent recognition subitems of politically sensitive figures, violation icons, pop stars, and sports celebrities
      Speech recognition Porn information Recognizes porn words in audios
      Politically sensitive information Recognizes politically sensitive words in audios
      Illegal Recognizes abusive or illegal words and words about gambling in audios
      Text recognition Porn information Recognizes porn words in text
      Politically sensitive information Recognizes politically sensitive words in text
      Terrorism information Recognizes terrorism words in text
      Illegal Recognizes abusive or illegal words and words about gambling in text

    For each intelligent recognition subitem, you can set a certainty confidence threshold and a suspicion confidence threshold to adjust the intelligent recognition criteria. If left empty, the default values in VOD will be used for intelligent video recognition.

    • Certainty Confidence Threshold: VOD scores an uploaded video after intelligently recognizing it. If the score is above the threshold, VOD will label the intelligent recognition item as "confirmed". If you have no special requirements, we recommend you use the default value range (0–100).
    • Suspicion Confidence Threshold: VOD scores an uploaded video after intelligently recognizing it. If the score is above the threshold, VOD will label the intelligent recognition item as "suspected", and you can initiate human review on the intelligent video recognition page. If you have no special requirements, we recommend you use the default value range (0–100).

    The created template will be displayed in the template list. You can view, edit, or delete the template.

    Note:

    You can view the preset intelligent recognition templates in the VOD console.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help