Features

Last updated: 2020-02-24 14:38:26

    MPS converts audio/video files to different bitrates and resolutions for smooth playback on various devices with different bandwidth options. It has the following features:

    Audio/Video Transcoding

    Transcoding is an offline task that converts the source audio/video bitstream. It changes parameters of the source bitstream, such as codec, resolution, and bitrate, to adapt it to different devices and network conditions. The following benefits can be achieved with transcoding:

    • Increased compatibility: A source video can be transcoded to formats (e.g., MP4) that are compatible with more types of devices for smooth playback.
    • Increased bandwidth adaptability: A source video can be transcoded for output in multiple definitions such as LD, SD, HD, and FHD. End users can select the most appropriate bitrate depending on their network conditions.
    • Improved playback efficiency: The moov atom can be moved from the end of an MP4 file to its beginning, so the video can be played before it is entirely downloaded.
    • Reduced bandwidth consumption: With a more advanced codec (e.g., H.265), the bitrate of a video can be substantially reduced while retaining the original quality, which helps reduce the bandwidth consumption.

    The target specification of an output video after transcoding is subject to parameters such as codec, resolution, and bitrate, which can be customized as shown below:

    Category Parameter Description
    Muxing
    Container format The following video and audio container formats are supported:
  • Video: MP4, TS, HLS, and FLV
  • Audio: MP3, M4A, FLAC, and OGG
  • Video stream deletion If this parameter is enabled, the output video after transcoding will contain only the audio stream with the video stream discarded
    Audio stream deletion If this parameter is enabled, the output video after transcoding will contain only the video stream with the audio stream discarded
    Video encoding Codec H.264 and H.265 are supported
    Bitrate Supported bitrate range: 10–35 Mbps
    Frame rate Supported frame rate range: 1–60 fps; common values: 24, 25, and 30 fps
    Resolution
  • Supported width range: 128–4,096 px
  • Supported height range: 128–4,096 px
  • Group of Pictures (GOP) length Supported GOP length range: 1–10s
    Profile
  • When the video codec is H.264, the `Baseline`, `Main`, and `High` profiles are supported
  • When the video codec is H.265, only the `Main` profile is supported
  • Color space YUV420P is supported
    Audio encoding Codec MP3, AAC, AC3, and FLAC are supported
    Sample rate The following audio sample rates are supported:
  • 34,000 Hz
  • 44,100 Hz
  • 48,000 Hz
  • Bitrate Supported bitrate range: 26–256 Kbps, including the following values:
  • 48 Kbps
  • 64 Kbps
  • 128 Kbps
  • Channel
  • Mono
  • Dual
  • Stereo
  • Watermarking

    Watermarking is an offline task that adds an image at the specified position of the video during video transcoding or screencapturing. MPS supports the following types of watermarks:

    • Static image watermark: This refers to an image watermark in PNG format. This can be a copyright owner's or TV station's logo, and is generally used to indicate the video copyright ownership.
    • Animated image watermark: This refers to an image watermark in APNG format, which can be animated.

    MPS can add multiple watermarks to a video or screenshot. The size and position can be customized individually.

    The target specification of a watermark is subject to parameters such as type, width, height, and position which can be customized as shown below:

    Parameter Description
    Type Static or animated image watermark
    Position Relative position of a watermark in the video
    ImageSize Size of a watermark in the video
    ImageContent Binary content of a watermark

    Screencapturing

    Screencapturing is an offline task that captures a screenshot of a video at a certain point in time. MPS provides the following types of screenshots:

    • Time point screenshot: MPS can capture screenshots of a video according to specified set of points in time.
    • Sampled screenshot: MPS can capture a set of screenshots of a video according to a specified time interval.
    • Image sprite: MPS can capture a set of screenshots of a video according to a specified time interval and stitch them together to generate a large image (i.e., image sprite).

    The target specification of a screenshot is subject to parameters such as file format, width, and height, which can be customized as shown below:

    Time point screenshot

    Parameter Description
    Format Output format of a screenshot file. Currently, only JPG is supported
    Width Screenshot width. Value range: 128–4,096 px
    Height Screenshot height. Value range: 128–4,096 px
    Fill Type Filling refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. Generally, the following filling types are supported:
  • Stretch: The screenshot is stretched to match the aspect ratio of the source video, which may distort the image.
  • Fill in black: This option retains the aspect ratio of the source video for the screenshot and the unmatched area is filled in black.
  • Fill in white: This option retains the aspect ratio of the source video for the screenshot and the unmatched area is filled in white.
  • Gaussian blur: This option retains the aspect ratio of the source video for the screenshot and Gaussian blur is applied to the unmatched area.
  • Sampled screenshot

    Parameter Description
    Format Output format of a screenshot file. Currently, only JPG is supported
    Width Screenshot width. Value range: 128–4,096 px
    Height Screenshot height. Value range: 128–4,096 px
    Sample Type The following two types are supported:
  • Sample by percent: If this is selected and Interval is set to 5% for example, 20 screenshots will be generated
  • Sample by time: If this is selected and Interval is set to 10s for example, the number of generated screenshots will depend on the video length
  • Interval Sampling interval.
  • If the sampling type is by percent, this parameter will be a percent value
  • If the sampling type is by time, this parameter will be in seconds
  • Fill Type Filling refers to the way of processing a screenshot when its aspect ratio is different from that of the source video. Generally, the following filling types are supported:
  • Stretch: The screenshot is stretched to match the aspect ratio of the source video, which may distort the image.
  • Fill in black: This option retains the aspect ratio of the source video for the screenshot and the unmatched area is filled in black.
  • Fill in white: This option retains the aspect ratio of the source video for the screenshot and the unmatched area is filled in white.
  • Gaussian blur: This option retains the aspect ratio of the source video for the screenshot and Gaussian blur is applied to the unmatched area.
  • Image sprite

    Parameter Description
    Format Output format of an image sprite file. Currently, only JPG is supported
    Width Sub-image width
    Height Sub-image height
    Rows Number sub-image rows in an image sprite
    Columns Number sub-image columns in an image sprite
    Sample Type Sub-image sampling method. Currently, only sampling by time is supported
    Interval Time interval for capturing sub-image
    • The value of Width * Columns should be between 128 and 4,096 px (i.e., the range of the image sprite width).
    • The value of Height * Rows should be between 128 and 4,096 px (i.e., the range of the image sprite height).

    Animated image

    Generating animated image is an offline task that converts a video to an animated image such as in GIF or WEBP format. An animated image is a seamless cycle of continuous frames, delivering an animation effect with a small file size.

    The target specification of an animated image is subject to parameters such as format, width, height, and frame rate, which can be customized as shown below:

    Parameter Description
    Format Output format of an animated image file. Currently, only GIF and WEBP are supported
    Width Animated image width. Value range: 128–4,096 px
    Height Animated image height. Value range: 128–4,096 px
    FPS Supported frame rate range: 1–60 fps

    Was this page helpful?

    Was this page helpful?

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