Template Settings

Last updated: 2020-01-20 11:58:04

    Log in to the VOD Console and select Video Processing > Templates on the left sidebar. Built-in templates there include video transcoding template, TESHD template, audio transcoding template, adaptive bitrate streaming template, watermarking template, screencapturing template, animated image generating template, and audit template, each of which can be added to a task flow for video processing.

    Video Transcoding Template

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

    • Template name: it can contain up to 64 letters, digits, spaces, underscores (_), dashes (-), and periods (.)
    • Container format: MP4, FLV, HLS.
    • Configuration item: video parameters or audio parameter.
    • Video parameters:
      • Codec: H.264, H.265
      • Video bitrate: 0 or 128–35,000 Kbps
      • Resolution: video long side (video width) and video short side (video height) are 0 or 128–4096 px
      • Frame rate: 0–60 fps
    • Audio parameters:
      • Codec: AAC, MP3
      • Sample rate: three default sample rates, i.e., 32,000 Hz, 44,100 Hz, and 48,000 Hz
      • Audio bitrate: 0 or 26–256 Kbps
      • Sound channel: mono, dual
    • Common template: specify whether to set it as a common template

    The created template is displayed in the template list, where you can view, edit, or delete it, 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 based on your business needs and customize it. Select TESHD Template and click Create Transcoding Template to enter the custom template settings page.

    • Template name: it can contain up to 64 letters, digits, spaces, underscores (_), dashes (-), and periods (.)
    • Container format: MP4
    • Configuration item: video parameters or audio parameter.
    • Video parameters:
      • Codec: H.264
      • Average bitrate upper limit: if this parameter is left empty or 0 is entered, there will be no upper limit for bitrate
      • Resolution: video long side (video width) and video short side (video height) are 0 or 128–4096 px
      • Frame rate: 0–60 fps
    • Audio parameters:
      • Codec: AAC, MP3
      • Sample rate: three default sample rates, i.e., 32,000 Hz, 44,100 Hz, and 48,000 Hz
      • Audio bitrate: 0 or 26–256 Kbps
      • Sound channel: mono, dual
    • Common template: specify whether to set it as a common template

    The created template is displayed in the template list, where you can view, edit, or delete it, or set it as a common template.

    Audio-Transcoding-Template">

    Audio Transcoding Template

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

    • Template name: it can contain up to 64 letters, digits, spaces, underscores (_), dashes (-), and periods (.)
    • Container format: MP3, FLAC, OGG, M4A
    • Audio parameters:
      • Codec: MP3 if the container format is MP3; FLAC if the container format is FLAC or OGG; MP3, AAC, or AC3 if the container format is M4A
      • Sample rate: three default sample rates, i.e., 32,000 Hz, 44,100 Hz, and 48,000 Hz
      • Audio bitrate: 0 or 26–256 Kbps
      • Sound channel: mono, dual
    • Common template: specify whether to set it as a common template

    The created template is displayed in the template list, where you can view, edit, or delete it, 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 an adaptive bitrate streaming template based on your business needs, which is preset and cannot be customized.

    • Template ID: 10
    • Template type: preset
    • Container type: HLS
    • DRM type: no encryption
    • Filter high bitrate: yes
    • Video specifications: as shown below
      Template ID Specification Resolution Video Bitrate Video Frame Rate
      10010 LD 320 * proportionally scaled 256 Kbps 24 fps
      10020 SD 640 * proportionally scaled 512 Kbps 24 fps
      10030 HD 1280 * proportionally scaled 1,024 Kbps 24 fps
      10040 FHD 1920 * proportionally scaled 2,500 Kbps 24 fps
      10070 2K Proportionally scaled * 1440 3,072 Kbps 24 fps
      10080 4K Proportionally scaled * 2160 6,144 Kbps 24 fps
    • Audio specifications: as shown below
      Template ID Specification Audio Bitrate Codec Audio Sample Rate Sound Channel
      10010 Audio stream 48 Kbps AAC 44,100 Hz 2

    Watermarking Template

    You can create a watermarking template by uploading images based on your business needs and customize the watermark configuration and its position in the video.

    • Template name: it can contain up to 64 letters, digits, spaces, underscores (_), dashes (-), and periods (.)
    • Watermark type: image
    • Watermark image: PNG and APNG images are supported. For optimal visual effects, transparent images in PNG format are recommended; the image cannot exceed 200 KB in size or 200 * 200 px in dimensions
    • Watermark position: the default value is top-left and cannot be modified
    • Horizontal offset: the horizontal offset percentage represents the ratio of the horizontal distance between the watermark and the top-left corner to the horizontal width, which is used to configure the horizontal position of the watermark
    • Vertical offset: the vertical offset percentage represents the ratio of the vertical distance between the watermark and the top-left corner to the vertical height, which is used to configure the vertical position 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 specified size

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

    • 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.
    • Once the watermark is set, it will be valid for all subsequently added videos.

    Screencapturing Template

    You can create a screencapturing template based on your business needs, so that you can take screenshots of the uploaded videos in various ways. Currently, the VOD Console supports three types of screencapturing: time point screencapturing, sampled screencapturing, and image sprite generating.

    Time point screencapturing

    Select "Time Point Screencapturing" for screencapturing type. The sampling time points need to be specified in the screencapturing task configuration, while the template only configures the screencapturing type. For detailed configuration of time point screencapturing, please see Task Configuration Description.

    • Template name: it can contain up to 64 letters, digits, spaces, underscores (_), dashes (-), and periods (.)
    • 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 Screencapturing

    Select "Sampled Screencapturing" for the screencapturing type.

    • Template name: it can contain up to 64 letters, digits, spaces, underscores (_), dashes (-), and periods (.)
    • Image format: JPG
    • Image dimensions: 0 or 128–4,096 px
    • Sampling interval: percentage (up to 100%) or time (in seconds)

    List of preset parameter templates

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

    Image sprite generating

    Select "Image Sprite Generating" for the screencapturing type.

    • Template name: it can contain up to 64 letters, digits, spaces, underscores (_), dashes (-), and periods (.)
    • Image format: JPG
    • Image dimensions: 0 or 128–4,096 px
    • Sampling interval: percentage (up to 100%) or time (in seconds)
    • Number of subimage rows: a positive integer. The number of subimage rows multiplied by the number of subimage columns cannot exceed 100.
    • Number of subimage columns: a positive integer. The number of subimage rows multiplied by the number of subimage columns cannot exceed 100.

    The template name, screencapturing type, and image dimensions are displayed in the screencapturing template. In the "Operation" column, you can view, edit, or delete the template.

    List of preset parameter templates

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

    Animated Image Generating Template

    You can create an animated image generating template based on your business needs to take screenshots within the specified time period and generate an animated image. The time period needs to be specified in the animated image generating task configuration, while the template only configures the animated image generating type. For detailed configuration of animated image generating, please see Task Configuration Description.

    • Image type: WebP, 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
    20002 WebP 320 * proportionally scaled 10
    20003 WebP Proportionally scaled * 360 10
    20004 WebP Same as source 10
    20005 WebP 540 * 960 10

    Audit Template

    You can create a video audit template based on your business needs and customize it. Click Create Audit Template to enter the custom template settings page.

    • Template name: it can contain up to 64 letters, digits, spaces, underscores (_), dashes (-), and periods (.)
    • Sampling interval: it indicates at which interval in seconds the video under audit is sampled for check. Default value: 1. Minimum value: 0.5
    • Audit item: valid values include image recognition, speech recognition, and text recognition. The selected audit subitems will appear in the "Selected" column on the right
      Audit Item Audit Subitem Description
      Image recognition Eroticism Including audit subitems for porn, vulgarity, intimacy, and sexiness
      Terrorism Including audit subitems for militants, weapons and guns, bloody scenes, explosions and fires, terrorism flags, terrorists, police force, and crowds
      Politics Including audit subitems for politically sensitive figures, violating photos, entertainment celebrities, and sports celebrities
      Speech recognition Eroticism Same as the eroticism item in image recognition
      Politics Same as the politics item in image recognition
      Text recognition Eroticism Same as the eroticism item in image recognition
      Politics Same as the politics item in image recognition

    For each audit subitem, you can set a confirmed confidence threshold and a suspected confidence threshold to adjust the audit intensity. If they are left empty, the default values in VOD will be used for video audit.

    • Confirmed confidence threshold: VOD scores an uploaded video after auditing it. If the score is above this value, the status of the corresponding audit item will be "confirmed". If there is no special requirement, you are recommended to use the default value range (0–100).
    • Suspected confidence threshold: VOD scores an uploaded video after auditing it. If the score is above this value, the status of the corresponding audit item will be "suspected", and you can initiate human re-audit on the video audit page. If there is no special requirement, you are recommended to use the default value range (0–100).

    The created template is displayed in the template list, where you can view, edit, or delete it.

    List-of-preset-audit-templates">

    List of preset audit templates

    Template ID Audit Item Audit Subitem Confirmed confidence threshold [0,100] Suspected confidence threshold [0,100]
    10 Image recognition Eroticism 90 0
    Terrorism 90 80
    Politics 97 95
    20 Image recognition Eroticism 90 0
    Terrorism 90 80
    Politics 97 95
    Speech recognition Eroticism 100 75
    Politics 100 75
    Text recognition Eroticism 100 75
    Politics 100 75

    Was this page helpful?

    Was this page helpful?

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