Screencapture and Porn Detection Configuration

Last updated: 2020-07-22 17:41:01

    LVB supports screencapture and porn detection. After you configure a screencapture and porn detection template in the console and associate it with a push domain name, LVB takes screenshots of the live stream and stores them or porn detection data into Cloud Object Storage (COS). If the push domain name has been associated with a callback template, Tencent Cloud will send a request to customers’ servers when a callback event is triggered during live streaming, and the customers’ servers are responsible for answering the request. After verification, a JSON package containing porn detection callbacks can be obtained.
    This document describes how to create, modify and delete a screencapture and porn detection template in the console.

    You can create a screencapture and porn detection template in the following ways:

    Notes

    • The screencapture feature can be enabled alone, but the porn detection feature can be enabled only when the screencapture feature is enabled.
    • Fees will be charged for screencapture and porn detection features. The former charges 0.0176 USD per thousand screenshots; the latter charges 0.2294 USD per thousand screenshots.
    • The generated screenshots are stored in your COS bucket and will incur COS storage fee. For more information, please see COS Pricing.
    • To enable the screencapture feature, you must first grant LVB the permission to write to your COS bucket. For more information, please see How to Authorize LVB to Store Screenshots in a COS Bucket.
    • After a template has been created, you can associate it with a push domain name. For more information, please see Screencapture and Porn Detection Configuration. The association will take effect in about 5–10 minutes.
    • The screencapture and porn detection templates are managed at the domain name level in the console, and rules created by APIs cannot be canceled for the time being. If you associated a template with a specified stream through the screencapture and porn detection APIs and want to unassociate it, you need to call the DeleteLiveSnapshotTemplate API.

    Prerequisites

    Creating a Screencapture and Porn Detection Template

    1. Log in to the LVB Console, and select Feature Template > Screenshot and porn detection configuration.
    2. Click +, enter configuration information, and click Save.
      Configuration ItemDescription
      Template Name The name of the screencapture and porn detection template. It contains only letters, digits, underscores, and dashes, with a length of up to 30 characters.
      Template Description The description of the screencapture and porn detection template. It contains only letters, digits, underscores, and dashes, with a length of up to 100 characters.
      Screencapture Interval Screencapture interval during push. The value ranges from 5 to 300 seconds, and is 10 seconds by default.
      Note: the value must be a multiple of 5.
      Smart Porn Detection Whether to enable smart porn detection. If it is enabled, you need to configure a callback template before you can receive porn detection results.
      Storage Account You can select "Current Account" or "Other Account".
      AppId Required only when the storage account is set to "Other Account". You can get the value of APPID in **Account Information** of the account.
      Bucket Select a **COS** bucket that you have created and authorized.
      Region The region where the bucket resides. It cannot be modified.
      Folder Click the box to select a COS folder. The folder name is in the format of {Year}-{Month}-{Day}/ by default.
      Note: the name of a COS folder can contain only letters, digits, placeholders, and symbols -, !, _, ., *.
      File Name The format of the screenshot file name. Default value: {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}. It can be customized by splicing the following parameters:
      • {AppName}: push AppName
      • {PushDomain}: push domain name
      • {StreamID}: stream ID
      • {Year}: screenshot time (year)
      • {Month}: screenshot time (month)
      • {Day}: screenshot time (day)
      • {Hour}: screenshot time (hour)
      • {Minute}: screenshot time (minute)
      • {Second}: screenshot time (second)
      • {Width}: width of the screenshot
      • {Height}: height of the screenshot
      • {Ext}: extension (.jpg)
      Note: it contains only letters, digits, placeholders, and symbols (-, !, _, ., *).
      Example: if the file name format is {Year}-{Month}-{Day}- {Hour}-{Ext}, the screenshot automatically captured during live streaming at 14:00:00, January 1, 2020 will be stored and named "2020010114.jpg" in COS.

    Modifying a Template

    1. Select Feature Template > Screenshot and porn detection configuration.
    2. Find the desired screencapture and porn detection template that you have created, and click Edit on the right to modify template information.
    3. Click Save.

    Deleting a Template

    If the template is associated, you need to unassociate it before you can delete it. For more information, please see Disassociating a Screencapture and Porn Detection Template.

    1. Select Feature Template > Screenshot and porn detection configuration.
    2. Find the desired screencapture and porn detection template that you have created, and click the deletion icon at the top.
    3. In the pop-up dialog box, click OK to confirm the deletion.

    Associating the Template with a Domain Name

    For more information, see Screencapture and Porn Detection Configuration.

    Was this page helpful?

    Was this page helpful?

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