tencent cloud

Feedback

Workflow Management

Last updated: 2021-09-22 17:46:54

    Overview

    After you set up a workflow, videos uploaded to the specified bucket and directory will be processed automatically, and the results will be uploaded to the specified bucket and directory. Workflows can include tasks such as transcoding, screenshot taking, animated image generating, moderation, content recognition, content analysis, and watermarking.

    Creating a Workflow

    1. Log in to the MPS console and click Workflow Management.
    2. Click Create Workflow to enter the workflow creation page and set the workflow name, trigger bucket, trigger directory, output bucket, output directory, event notifications and tasks. For detailed instructions, please see workflow configuration.

      The table below lists the information needed to configure a workflow.
      ItemRequiredDescription
      Workflow name Yes Max 128 characters; supports Chinese characters, letters, digits, underscores, and hyphens. Example: "MPS"
      Trigger bucket Yes Select a bucket created under the current `APPID`. After the workflow is enabled, videos uploaded to this bucket will be processed automatically.
      Trigger directory No A string that ends with (/). If it is left empty, the workflow will be applied to all directories under the selected trigger bucket.
      Output bucket Yes By default, the output bucket is the same as the trigger bucket. You can also select a bucket in the same region under the same `APPID`. After a workflow is executed, the processed videos will be stored in this bucket.
      Output directory No A string that ends with (/). If it is left empty, the output directory will be the same as the trigger directory.
      Event notifications No
      • Disabled by default. For detailed instructions on how to configure event notifications, please see callback configuration below.
      • To enable CMQ event notifications, you need to activate CMQ and create a model. After CMQ event notifications are enabled, the specified CMQ will receive notifications about video processing events.
      Configuration items Yes From transcoding, screenshot taking, animated image generation, moderation, content recognition, and content analysis, select at least one task for configuration. For details, please see task configuration below.
      Callback MethodConfiguration
      CMQ callback
      • CMQ model: queue model by default
      • CMQ zone: Guangzhou, Shanghai, Beijing, Shanghai Finance, Shenzhen Finance, Hong Kong (China), Chengdu, North America, or West US
      • Queue name: a custom value
      SCF callback Click **Go to SCF Console** to configure the callback in the SCF console. For detailed instructions, please see MPS Task Callback Notification.
      The configuration applies to all workflows and is not saved specifically by one workflow.

    Event Notifications

    1. Receiving event notifications via CMQ

    • Event notifications are disabled by default. To receive notifications via CMQ, click the toggle next to Enable Event Notifications, select queue or topic model for CMQ Model, and set the model name and region. MPS event notifications will be sent to the specified queue or topic.

    • You can receive event notifications via CMQ only after you activate the CMQ service and create a queue or topic model. For more information, please see CMQ > Getting Started.

    2. Receiving event notifications via SCF

    SCF allows quick handling of the event notifications generated by MPS. The figure below shows the data flow.

    Events are pushed to SCF by the MPS trigger and are handled by serverless functions.

    Use cases

    CLS can deliver the data in log topics to SCF via an MPS log trigger to enable operations such as notification sending, status monitoring, and alarm handling.

    Use Case Description
    Video task backup to COS Backing up the called back tasks of MPS to COS via SCF in a timely manner
    Video task callback notifications Receiving MPS data messages in real time and sending the messages to users via email, etc.
    Note:

    You will incur a cost for delivering data to SCF. For details, please see SCF > Billing Overview.

    Task configuration

    Task Type Preset/Custom Template Template Configuration
    Transcoding Both supported
  • Transcoding template: select a template from the drop-down list. You can add multiple transcoding templates to a task. If existing templates do not meet your needs, you can create your own in Template Settings > Transcoding Template.
  • Watermark template: you can add up to 4 watermarks to each transcoding template. If existing watermark templates do not meet your needs, you can create your own in Template Settings > Watermark Templates.
  • Screenshot Both supported
  • Screenshot template: there are three types of screenshots: time point screenshot, sampled screenshot, and image sprite screenshot, each with its own templates. For time point screenshots, you need to specify the time points. If existing templates do not meet your needs, you can create your own in Template Settings > Screenshot Template.
  • Watermark template: you can add up to 4 watermarks to a screenshot template. If existing watermark templates do not meet your needs, you can create your own in Template Settings > Watermark Template.
  • Animated image generation Both supported Animated image generating template: you can add multiple animated image generating templates and can change the period for generating animated images. If existing templates do not meet your needs, you can create your own in Template Settings > Animated Image Generating Template.
    Moderation Both supported Moderation template: you can add only 1 moderation template to a task. If existing templates do not meet your needs, you can create your own in Template Settings > Moderation Template.
    Content recognition Both supported Content recognition template: you can add only 1 content recognition template to a task. If existing templates do not meet your needs, you can create your own in Template Settings > Content Recognition Template.
    Content analysis Both supported Content analysis template: you can add only 1 content analysis template to a task. If existing templates do not meet your requirements, you can create your own in Template Settings > Content Analysis Template.

    Managing Workflows

    1. Log in to the MPS console and click Workflow Management on the left sidebar.
    2. The workflow list displays information including workflow name, trigger bucket, region, trigger directory, creation time, and status. You can sort workflows by creation time, search for a workflow by name, and view, edit, or delete a workflow.
      • Enable a workflow
        • Workflows are disabled by default. To enable a workflow, click the toggle in the Enable column.
        • After a workflow is enabled, it will be automatically executed for videos uploaded to the trigger bucket.
      • Disable a workflow
        • To disable a workflow, click the toggle in the Enable column.
        • After a workflow is disabled, its video processing tasks will no longer be automatically executed for videos uploaded to the trigger bucket.
      • Edit a workflow
        • Click Edit in the Operation column of the target workflow to modify its name, trigger bucket, trigger directory, output bucket, output directory, event notification settings, and tasks.
        • You cannot edit or delete an enabled workflow.
      • Delete a workflow
        • Click Delete in the Operation column of the target workflow to delete it.
        • After a workflow is deleted, its video processing tasks will no longer be automatically executed for videos uploaded to the trigger bucket.
        • You cannot edit or delete an enabled workflow.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support