

{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_erase_fast\\"}}" //Additional parameters. Replace them when selecting a different erasing capability.},"TaskNotifyConfig":{ //Event callback notification configuration, optional."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}


{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_erase_fast\\"}}

{"delogo": {"cluster_id": "gpu_zhiyan","CustomerAppId": "subtitle_erase_fast","custom_objs": {"type": 0,"time_objs": [{"objs": [{"type": 2,"score": 100,"rect": {"lt_x": 53,"lt_y": 228,"rb_x": 137,"rb_y": 644}}]}]}}}
begin_ms and end_ms fields.
{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_erase_fast\\"}}
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_erase_fast\\"}}" //Additional parameters. Replace them when selecting a different erasing capability.},"TaskNotifyConfig":{ //Event callback notification configuration, optional."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"cluster_id": "gpu_zhiyan","CustomerAppId": "subtitle_erase_fast"}}
als_filter parameter to specify the approximate position of subtitles to reduce incorrect erasing issues:

{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_erase_fast\\",\\"als_filter\\":{\\"active_areas\\":[{\\"lt_x\\":0.097,\\"lt_y\\":0.626,\\"rb_x\\":0.928,\\"rb_y\\":0.705}]}}}/*als_filter:Automatic erasing area. It is used to specify the approximate position of subtitles and reduce incorrect erasing issues caused by image interference.(lt_x,lt_y) is the coordinate of the upper left point of the area, and (rb_x,rb_y) is the coordinate of the lower right point. Coordinate value:[0, 1]: represents the percentage of video width or height.(1, +): represents pixels.*/
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_erase_fast\\",\\"als_filter\\":{\\"active_areas\\":[{\\"lt_x\\":0.097,\\"lt_y\\":0.626,\\"rb_x\\":0.928,\\"rb_y\\":0.705}]}}}" //Additional parameters. Replace them when selecting a different erasing capability.},"TaskNotifyConfig":{ //Event callback notification configuration, optional."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"cluster_id": "gpu_zhiyan","CustomerAppId": "subtitle_erase_fast","als_filter": {"active_areas": [{"lt_x": 0.097,"lt_y": 0.626,"rb_x": 0.928,"rb_y": 0.705}]}}}
als_filter area size to full-screen video size as much as possible. See the following example:
{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_erase_fast\\",\\"als_filter\\":{\\"active_areas\\":[{\\"lt_x\\":0,\\"lt_y\\":0,\\"rb_x\\":0.9999,\\"rb_y\\":0.9999}]}}}/*als_filter:Automatic erasing area. It is used to specify the approximate position of subtitles and reduce incorrect erasing issues caused by image interference.(lt_x,lt_y) is the coordinate of the upper left point of the area, and (rb_x,rb_y) is the coordinate of the lower right point. Coordinate value:[0, 1]: represents the percentage of video width or height.(1, +): represents pixels.*/
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_erase_fast\\",\\"als_filter\\":{\\"active_areas\\":[{\\"lt_x\\":0,\\"lt_y\\":0,\\"rb_x\\":0.9999,\\"rb_y\\":0.9999}]}}}" //Additional parameters. Replace them when selecting a different erasing capability.},"TaskNotifyConfig":{ //Event callback notification configuration, optional."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"cluster_id": "gpu_zhiyan","CustomerAppId": "subtitle_erase_fast","als_filter": {"active_areas": [{"lt_x": 0,"lt_y": 0,"rb_x": 0.9999,"rb_y": 0.9999}]}}}

custom_objs to directly specify the erasing area to reduce missed erasings to the maximum extent.custom_objs is specified, the system will directly erase the selected area without automatically recognizing or erasing text in other parts of the video. Therefore, you should fully pass in the target erasing area.

{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_erase_fast\\",\\"custom_objs\\":{\\"type\\":0,\\"time_objs\\":[{\\"objs\\":[{\\"type\\":2,\\"score\\":100,\\"rect\\":{\\"lt_x\\":53,\\"lt_y\\":228,\\"rb_x\\":137,\\"rb_y\\":644}}]}]}}}/*You can specify multiple erasing areas (it is not recommended to exceed 10 areas).(lt_x,lt_y) is the coordinate of the upper left point of the erasing area, and (rb_x,rb_y) is the coordinate of the lower right point. Coordinate value:[0, 1): represents the percentage of video width or height.[1, +): represents pixels.*/
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_erase_fast\\",\\"custom_objs\\":{\\"type\\":0,\\"time_objs\\":[{\\"objs\\":[{\\"type\\":2,\\"score\\":100,\\"rect\\":{\\"lt_x\\":53,\\"lt_y\\":228,\\"rb_x\\":137,\\"rb_y\\":644}}]}]}}}" //Additional parameters. Replace them when selecting a different erasing capability.},"TaskNotifyConfig":{ //Event callback notification configuration, optional."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"cluster_id": "gpu_zhiyan","CustomerAppId": "subtitle_erase_fast","custom_objs": {"type": 0,"time_objs": [{"objs": [{"type": 2,"score": 100,"rect": {"lt_x": 53,"lt_y": 228,"rb_x": 137,"rb_y": 644}}]}]}}}
subtitle_erase_fast is passed in to CustomerAppId, it means using the "Standard Edition".
subtitle_erase_area to CustomerAppId. For example:

{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_erase_area\\",\\"custom_objs\\":{\\"type\\":0,\\"time_objs\\":[{\\"objs\\":[{\\"type\\":2,\\"score\\":100,\\"rect\\":{\\"lt_x\\":879,\\"lt_y\\":169,\\"rb_x\\":997,\\"rb_y\\":761}}]}]}}}/*The subtitle_erase_area indicates the usage of the "Area Edition" subtitle removal model, which is suitable for special style subtitles.You can specify multiple erasing areas (it is not recommended to exceed 10 areas).(lt_x,lt_y) is the coordinate of the upper left point of the erasing area, and (rb_x,rb_y) is the coordinate of the lower right point. Coordinate value:[0, 1): represents the percentage of video width or height.[1, +): represents pixels.*/
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_erase_area\\",\\"custom_objs\\":{\\"type\\":0,\\"time_objs\\":[{\\"objs\\":[{\\"type\\":2,\\"score\\":100,\\"rect\\":{\\"lt_x\\":879,\\"lt_y\\":169,\\"rb_x\\":997,\\"rb_y\\":761}}]}]}}}" //Additional parameters. Replace them when selecting a different erasing capability.},"TaskNotifyConfig":{ //Event callback notification configuration, optional."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"cluster_id": "gpu_zhiyan","CustomerAppId": "subtitle_erase_area","custom_objs": {"type": 0,"time_objs": [{"objs": [{"type": 2,"score": 100,"rect": {"lt_x": 879,"lt_y": 169,"rb_x": 997,"rb_y": 761}}]}]}}}
subtitle_erase_area) and specify the missed area positions through custom_objs for fixing. You can also specify the time period for secondary processing using the begin_ms and end_ms fields. Note that to ensure the fixing effect, the missed area positions and time period should be as accurate as possible.
{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_erase_area\\",\\"custom_objs\\":{\\"type\\":0,\\"time_objs\\":[{\\"begin_ms\\":3000,\\"end_ms\\":5000,\\"objs\\":[{\\"type\\":2,\\"score\\":100,\\"rect\\":{\\"lt_x\\":0.0,\\"lt_y\\":10,\\"rb_x\\":10,\\"rb_y\\":20}}]}]}}}
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_erase_area\\",\\"custom_objs\\":{\\"type\\":0,\\"time_objs\\":[{\\"begin_ms\\":3000,\\"end_ms\\":5000,\\"objs\\":[{\\"type\\":2,\\"score\\":100,\\"rect\\":{\\"lt_x\\":0.0,\\"lt_y\\":10,\\"rb_x\\":10,\\"rb_y\\":20}}]}]}}}" //Additional parameters. Replace them when selecting a different erasing capability.},"TaskNotifyConfig":{ //Event callback notification configuration, optional."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"cluster_id": "gpu_zhiyan","CustomerAppId": "subtitle_erase_area","custom_objs": {"type": 0,"time_objs": [{"begin_ms": 3000,"end_ms": 5000,"objs": [{"type": 2,"score": 100,"rect": {"lt_x": 0.0,"lt_y": 10,"rb_x": 10,"rb_y": 20}}]}]}}}

{"delogo": {"cluster_id": "gpu_zhiyan","CustomerAppId": "subtitle_erase_fast","custom_objs": {"type": 0,"time_objs": [{"objs": [{"type": 2,"score": 100,"rect": {"lt_x": 53,"lt_y": 228,"rb_x": 137,"rb_y": 644}}]}]}}}
begin_ms and end_ms fields.translate_dst_language, subtitle translation is enabled, and the "OCR-based subtitle extraction and translation" fee will be charged.

{\\"delogo\\":{\\"CustomerAppId\\":\\"subtitle_extract_v1\\",\\"subtitle_param\\":{\\"translate_dst_language\\":\\"\\",\\"subtitle_fmt\\":\\"srt\\"}}}/*CustomerAppId: If subtitle_extract_v1 is passed in, it means performing OCR-based extraction.translate_dst_language: It is used to specify the target language. If it is left blank, no translation will be performed, and only the original subtitles will be output.The corresponding relationships for other values are: en-English, zh-Chinese, ja-Japanese, ko-Korean, de-German, pt-Portuguese, id-Indonesian, th-Thai, and ms-Malay.The above is only a list of commonly used languages. We support hundreds of translation languages. Contact us to get the complete list.subtitle_fmt: It specifies the output subtitle file format, which is WebVTT by default. If srt is passed in, the SRT format will be adopted.min_sdur_ms: It is the minimum subtitle duration per sentence in milliseconds. For example, setting it to 1000 means subtitles with a duration less than 1,000ms will be ignored.output_pattern: It specifies the output filename. The placeholder identifier is {}, and the placeholder can be task_type and session_id.If left blank, the default output is {task_type}-{session_id}.*/
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"CustomerAppId\\":\\"subtitle_extract_v1\\",\\"subtitle_param\\":{\\"translate_dst_language\\":\\"\\",\\"subtitle_fmt\\":\\"srt\\"}}}" //Additional parameters. Replace them when selecting a different erasing capability.},"TaskNotifyConfig":{ //Event callback notification configuration, optional."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"CustomerAppId": "subtitle_extract_v1","subtitle_param": {"translate_dst_language": "","subtitle_fmt": "srt"}}}
als_filter to specify the extraction area.

{\\"delogo\\":{\\"CustomerAppId\\":\\"subtitle_extract_v1\\",\\"subtitle_param\\":{\\"translate_dst_language\\":\\"\\"},\\"als_filter\\":{\\"active_areas\\":[{\\"type\\":2,\\"lt_x\\":72,\\"lt_y\\":703,\\"rb_x\\":618,\\"rb_y\\":787}]}}}/*als_filter:Automatic extraction area. It is used to specify the approximate position of subtitles and reduce false detection issues.(lt_x,lt_y) is the coordinate of the upper left point of the area, and (rb_x,rb_y) is the coordinate of the lower right point. Coordinate value:[0, 1]: represents the percentage of video width or height.(1, +): represents pixels.translate_dst_language: It is used to specify the target language. If it is left blank, no translation will be performed, and only the original subtitles will be output.The corresponding relationships for other values are: en-English, zh-Chinese, ja-Japanese, ko-Korean, de-German, pt-Portuguese, id-Indonesian, th-Thai, and ms-Malay.The above is only a list of commonly used languages. We support hundreds of translation languages. Contact us to get the complete list.*/
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"CustomerAppId\\":\\"subtitle_extract_v1\\",\\"subtitle_param\\":{\\"translate_dst_language\\":\\"\\"},\\"als_filter\\":{\\"active_areas\\":[{\\"type\\":2,\\"lt_x\\":72,\\"lt_y\\":703,\\"rb_x\\":618,\\"rb_y\\":787}]}}}" //Additional parameters. Replace them when selecting a different erasing capability.},"TaskNotifyConfig":{ //Event callback notification configuration, optional."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"CustomerAppId": "subtitle_extract_v1","subtitle_param": {"translate_dst_language": ""},"als_filter": {"active_areas": [{"type": 2,"lt_x": 72,"lt_y": 703,"rb_x": 618,"rb_y": 787}]}}}
Languages | Code |
Chinese | zh |
English | en |
Japanese | ja |
German | de |
French | fr |
Korean | ko |
Russian | ru |
Ukrainian | uk |
Portuguese | pt |
Italian | it |
Spanish | es |
Indonesian | id |
Dutch | nl |
Turkish | tr |
Filipino | fil |
Malay | ms |
Greek | el |
Finnish | fi |
Croatian | hr |
Slovak | sk |
Polish | pl |
Swedish | sv |
Hindi | hi |
Bulgarian | bg |
Romanian | ro |
Arabic | ar |
Czech | cs |
Danish | da |
Tamil | ta |


{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_erase_and_translate\\",\\"subtitle_param\\":{\\"translate_dst_language\\":\\"en\\"}}}
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_erase_and_translate\\",\\"subtitle_param\\":{\\"translate_dst_language\\":\\"en\\"}}}" //Additional parameters. Replace them when selecting a different erasing capability.},"TaskNotifyConfig":{ //Event callback notification configuration, optional."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"cluster_id": "gpu_zhiyan","CustomerAppId": "subtitle_erase_and_translate","subtitle_param": {"translate_dst_language": "en"}}}

CustomerAppId is set to ai_delogo_v1, Logo Removal - Advanced Edition is used.


{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"ai_delogo_v1\\"}}
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"ai_delogo_v1\\"}}" //Extended parameters. Replace them when you select a different erasing capability.},TaskNotifyConfig":{ //Optional. Event callback notification configuration."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"cluster_id": "gpu_zhiyan","CustomerAppId": "ai_delogo_v1"}}
als_filter is passed, you can specify the approximate position of a logo. The system will filter out logos outside this area during automatic erasing, thereby protecting areas of the video that do not require erasing.

{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"ai_delogo_v1\\",\\"als_filter\\":{\\"active_areas\\":[{\\"type\\":1,\\"lt_x\\":527,\\"lt_y\\":13,\\"rb_x\\":701,\\"rb_y\\":78}]}}}/*als_filter: automatic extraction area. It is used to specify the approximate position of subtitles and reduce false detection issues.(lt_x,lt_y) is the coordinate of the upper left point of the area, and (rb_x,rb_y) is the coordinate of the lower right point. Coordinate values:[0, 1]: represents the percentage of video width or height.(1, +): represents pixels.*/
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"ai_delogo_v1\\",\\"als_filter\\":{\\"active_areas\\":[{\\"type\\":1,\\"lt_x\\":527,\\"lt_y\\":13,\\"rb_x\\":701,\\"rb_y\\":78}]}}}" //Extended parameters. Replace them when you select a different erasing capability.},TaskNotifyConfig":{ //Optional. Event callback notification configuration."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"cluster_id": "gpu_zhiyan","CustomerAppId": "ai_delogo_v1","als_filter": {"active_areas": [{"type": 1,"lt_x": 527,"lt_y": 13,"rb_x": 701,"rb_y": 78}]}}}
custom_objs can be used to directly specify the area for erasing. This incurs no additional model training fees. Example:

{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"ai_delogo_v1\\",\\"custom_objs\\":{\\"type\\":0,\\"time_objs\\":[{\\"objs\\":[{\\"type\\":1,\\"value\\":\\"customobjs\\",\\"score\\":100,\\"rect\\":{\\"lt_x\\":0.024,\\"lt_y\\":0.027,\\"rb_x\\":0.14,\\"rb_y\\":0.198}}]}]}}}
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"ai_delogo_v1\\",\\"custom_objs\\":{\\"type\\":0,\\"time_objs\\":[{\\"objs\\":[{\\"type\\":1,\\"value\\":\\"customobjs\\",\\"score\\":100,\\"rect\\":{\\"lt_x\\":0.024,\\"lt_y\\":0.027,\\"rb_x\\":0.14,\\"rb_y\\":0.198}}]}]}}}" //Extended parameters. Replace them when you select a different erasing capability.},TaskNotifyConfig":{ //Optional. Event callback notification configuration."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"cluster_id": "gpu_zhiyan","CustomerAppId": "ai_delogo_v1","custom_objs": {"type": 0,"time_objs": [{"objs": [{"type": 1,//Set type to 1 for watermark removal."value": "customobjs","score": 100,"rect": {"lt_x": 0.024,"lt_y": 0.027,"rb_x": 0.14,"rb_y": 0.198}}]}]}}}


{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25 //Preset template ID for smart erasing. Enter 25.},TaskNotifyConfig":{ //Optional. Event callback notification configuration."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

custom_objs can be used to directly specify the area for erasing. This incurs no additional model training fees. Example:
{\\"delogo\\":{\\"custom_objs\\":{\\"type\\":0,\\"time_objs\\":[{\\"objs\\":[{\\"type\\":1,\\"value\\":\\"customobjs\\",\\"score\\":100,\\"rect\\":{\\"lt_x\\":0.024,\\"lt_y\\":0.027,\\"rb_x\\":0.14,\\"rb_y\\":0.198}}]}]}}}
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"custom_objs\\":{\\"type\\":0,\\"time_objs\\":[{\\"objs\\":[{\\"type\\":1,\\"value\\":\\"customobjs\\",\\"score\\":100,\\"rect\\":{\\"lt_x\\":0.024,\\"lt_y\\":0.027,\\"rb_x\\":0.14,\\"rb_y\\":0.198}}]}]}}}" //Extended parameters. Replace them when you select a different erasing capability.},TaskNotifyConfig":{ //Optional. Event callback notification configuration."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"custom_objs": {"type": 0,"time_objs": [{"objs": [{"type": 1,//Set type to 1 for watermark removal."value": "customobjs","score": 100,"rect": {"lt_x": 0.024,"lt_y": 0.027,"rb_x": 0.14,"rb_y": 0.198}}]}]}}}
CustomerAppId as subtitle_logo_erase to simultaneously remove subtitles and logos.als_filter.

{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_logo_erase\\",\\"als_filter\\":{\\"active_areas\\":[{\\"type\\":2,\\"lt_x\\":0.106,\\"lt_y\\":0.733,\\"rb_x\\":0.901,\\"rb_y\\":0.825},{\\"type\\":2,\\"lt_x\\":0.612,\\"lt_y\\":0.911,\\"rb_x\\":0.988,\\"rb_y\\":0.984}]}}}
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_logo_erase\\",\\"als_filter\\":{\\"active_areas\\":[{\\"type\\":2,\\"lt_x\\":0.106,\\"lt_y\\":0.733,\\"rb_x\\":0.901,\\"rb_y\\":0.825},{\\"type\\":2,\\"lt_x\\":0.612,\\"lt_y\\":0.911,\\"rb_x\\":0.988,\\"rb_y\\":0.984}]}}}" //Additional parameters. Replace them when selecting a different erasing capability.},"TaskNotifyConfig":{ //Event callback notification configuration, optional."NotifyType":"URL","NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"als_filter": {"active_areas": [{"type": 1,"lt_x": 527,"lt_y": 13,"rb_x": 701,"rb_y": 78}]}}}{"delogo": {"cluster_id": "gpu_zhiyan","CustomerAppId": "subtitle_logo_erase","als_filter": {"active_areas": [{"type": 2,//For subtitle erasure, set type to 2"lt_x": 0.106,"lt_y": 0.733,"rb_x": 0.901,"rb_y": 0.824},{"type": 2,//For subtitle erasure, set type to 2"lt_x": 0.612,"lt_y": 0.911,"rb_x": 0.988,"rb_y": 0.984}]}}}
custom_objs to remove without extra training fees. Example:
{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_logo_erase\\",\\"custom_objs\\":{\\"type\\":0,\\"time_objs\\":[{\\"objs\\":[{\\"type\\":1,\\"value\\":\\"customobjs\\",\\"score\\":100,\\"rect\\":{\\"lt_x\\":0.024,\\"lt_y\\":0.027,\\"rb_x\\":0.14,\\"rb_y\\":0.198}}]}]}}}
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"cluster_id\\":\\"gpu_zhiyan\\",\\"CustomerAppId\\":\\"subtitle_logo_erase\\",\\"custom_objs\\":{\\"type\\":0,\\"time_objs\\":[{\\"objs\\":[{\\"type\\":1,\\"value\\":\\"customobjs\\",\\"score\\":100,\\"rect\\":{\\"lt_x\\":0.024,\\"lt_y\\":0.027,\\"rb_x\\":0.14,\\"rb_y\\":0.198}}]}]}}}" //Additional parameters. Replace them when selecting a different erasing capability.},"TaskNotifyConfig":{ //Event callback notification configuration, optional."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"cluster_id": "gpu_zhiyan","CustomerAppId": "subtitle_logo_erase","custom_objs": {"type": 0,"time_objs": [{"objs": [{"type": 1,//For watermark erasure, set type to 1"value": "customobjs","score": 100,"rect": {"lt_x": 0.024,"lt_y": 0.027,"rb_x": 0.14,"rb_y": 0.198}}]}]}}}


{\\"delogo\\":{\\"CustomerAppId\\":\\"facial_blur\\"}
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"CustomerAppId\\":\\"facial_blur\\"}" //Additional parameters. Replace them when selecting a different erasing capability.},"TaskNotifyConfig":{ //Event callback notification configuration, optional."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"CustomerAppId": "facial_blur"}}


{\\"delogo\\":{\\"CustomerAppId\\":\\"facial_mosaic\\"}}
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"CustomerAppId\\":\\"facial_mosaic\\"}}" //Additional parameters. Replace them when selecting a different erasing capability.},"TaskNotifyConfig":{ //Event callback notification configuration, optional."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"CustomerAppId": "facial_mosaic"}}


{\\"delogo\\":{\\"CustomerAppId\\":\\"facial_and_numberplate_mosaic_v2\\"}}
{"InputInfo":{ //Input video path. Replace it with your original video."Type":"URL","UrlInputInfo":{"Url":"https://test-1234567.cos.ap-nanjing.myqcloud.com/mps_test/myvideo.mp4"}},"OutputStorage":{ //Output COS bucket. Replace it."Type":"COS","CosOutputStorage":{"Bucket":"test","Region":"ap-nanjing"}},"OutputDir":"/mps_test/output/",//Output folder path. Replace it."AiAnalysisTask":{"Definition":25, //Preset template ID for smart erasing. Enter 25."ExtendedParameter":"{\\"delogo\\":{\\"CustomerAppId\\":\\"facial_and_numberplate_mosaic_v2\\"}}" //Additional parameters. Replace them when selecting a different erasing capability.},"TaskNotifyConfig":{ //Event callback notification configuration, optional."NotifyType":"URL","NotifyUrl":"http://www.qq.com/callback"}}

{"delogo": {"CustomerAppId": "facial_and_numberplate_mosaic_v2"}}
"delogo":{"CustomerAppId": "subtitle_extract", # String, preset scenario parameter. Different scenarios may only use some parameters below. Generally, internal confirmation is required for parameter modifications."cluster_id": "", # String, reserved field, used for cluster scheduling by policies. A specific task needs to be run on a specific cluster, so it cannot be modified casually."output_patten": "{task_type}-{session_id}", # String, output filename, with no special character. The length should be less than 200, the identifier is {}, and the placeholder can be task_type and session_id."als_filter": { # JSON object, target check and analysis filter."min_ocr_height": 10, # Float, valid if equal to or greater than 0. For character recognition: Minimum text size. Note: The value less than or equal to 1 represents the video height ratio, and the value greater than 1 represents pixels."max_ocr_height": 0.06, # Float, valid if equal to or greater than 0. For character recognition: Maximum text size."active_areas": [ # JSON array. The recognition result is only adopted when its center point is within this area through area filtering.{"lt_x": 0.1, # Float, valid if equal to or greater than 0. X-coordinate of the upper left corner of the area. Note: The value less than or equal to 1 represents the ratio, and the value greater than 1 represents pixels."lt_y": 0.6, # Float, valid if equal to or greater than 0. Y-coordinate of the upper left corner of the area."rb_x": 0.9, # Float, valid if equal to or greater than 0. X-coordinate of the lower right corner of the area."rb_y": 0.95 # Float, valid if equal to or greater than 0. Y-coordinate of the lower right corner of the area.}]},"custom_objs": { # JSON object, custom area."type": 0, # Int, enter 0. Specified type."time_objs": [# JSON array, time area information.{"begin_ms": 0, # Int, the start time in milliseconds. Same as video start if left blank."end_ms": 100, # Int, the end time in milliseconds. Same as video end if left blank."objs": [ # JSON array, area information.{"rect": { # JSON object, target area."lt_x": 55, # Float, valid if equal to or greater than 0. X-coordinate of the upper left corner of the area. Note: The value less than 1 represents the ratio, and the value greater than or equal to 1 represents pixels."lt_y": 143, # Float, valid if equal to or greater than 0. Y-coordinate of the upper left corner of the area."rb_x": 327, # Float, valid if equal to or greater than 0. X-coordinate of the lower right corner of the area."rb_y": 192 # Float, valid if equal to or greater than 0. Y-coordinate of the lower right corner of the area.},"score": 100, # Int, enter 100 here. Target reference score."type": 2, # Int, target type. 1 represents targets such as logos, and 2 represents text."value": "LUSN" # String, target value. For example, enter the corresponding text for character recognition.}]}]}"subtitle_param" : { # JSON object, parameters related to subtitles."margin_bottom": 0.2, # Float, valid if equal to or greater than 0. Used for subtitle file rendering. Subtitle distance from the bottom: Less than or equal to 1 represents video height ratio, and greater than 1 represents pixels."font_size": 50, # Float, valid if equal to or greater than 0. Used for subtitle file rendering. Subtitle rendering font size: Less than or equal to 1 represents video height ratio, and greater than 1 represents pixels."font_type": "simkai", # String. Subtitle rendering font: simkai represents KaiTi, hei represents SimHei, and song represents SimSun."translate_dst_language": "en" # String, used for subtitle translation. If it is set to empty, no translation will be performed, and only the original subtitles will be output. The corresponding relationships for other values are: en-English, zh-Chinese, ja-Japanese, ko-Korean, de-German, pt-Portuguese, id-Indonesian, th-Thai, and ms-Malay. The above is just a list of commonly used languages. We support translation of hundreds of languages. Contact us to get the complete list.}}

POST / HTTP/1.1Host: mps.tencentcloudapi.comContent-Type: application/jsonX-TC-Action: EditMedia<Common request parameters>{"FileInfos": [//Input the information of the file that requires synthesis.{"InputInfo": {//Input video path."Type": "URL","UrlInputInfo": {"Url": "https://test.cos.ap-nanjing.myqcloud.com/MPS/sourcevideo.mp4"}},"Id": "SOURCE_VIDEO"},{"InputInfo": {//Input voice path."Type": "URL","UrlInputInfo": {"Url": "https://test.cos.ap-nanjing.myqcloud.com/MPS/voices.mp3"}},"Id": "AUDIO_VOICES"},{"InputInfo": {//Input background sound path."Type": "URL","UrlInputInfo": {"Url": "https://test.cos.ap-nanjing.myqcloud.com/MPS/background.mp3"}},"Id": "AUDIO_BACKGROUND"}],"OutputStorage": { //Output COS directory."Type": "COS","CosOutputStorage": {"Bucket": "test","Region": "ap-nanjing"}},"OutputObjectPath": "/editmedia/compose/final_video.{format}",//Output folder path and filename definition."ComposeConfig": {"TargetInfo": {//Output video parameters."Container": "mp4","RemoveVideo": 0,"RemoveAudio": 0,"VideoStream": {"Codec": "H.264","Fps": 18},"AudioStream": {"Codec": "AAC","SampleRate": 32000,"AudioChannel": 1}},"Tracks": [//Track information.{"Type": "Video",//Track 1, video."Items": [{"Type": "Video","Video": {"SourceMedia": {"FileId": "SOURCE_VIDEO"},"AudioOperations": [{"Type": "Volume","Volume": 0 //Mute the original audio in the video.}]}}]},{"Type": "Audio",//Track 2, voice."Items": [{"Type": "Audio","Audio": {"SourceMedia": {"FileId": "AUDIO_VOICES"},"TrackTime": {"Duration": "10s" //Track duration, same as the SourceMedia duration if left blank.},"AudioOperations": [{"Type": "Volume","Volume": 5 //Volume configuration.}]}}]},{"Type": "Audio",//Track 3, background sound."Items": [{"Type": "Audio","Audio": {"SourceMedia": {"FileId": "AUDIO_BACKGROUND"},"TrackTime": {"Duration": "10s" //Track duration, same as the SourceMedia duration if left blank.},"AudioOperations": [{"Type": "Volume","Volume": 5 //Volume configuration.}]}}]}]}}
{}, and the placeholder can be task_type and session_id. The default output is {task_type}-{session_id}.Example code before translation, only suitable for use in API Explorer:{"delogo": {"CustomerAppId": "subtitle_extract","subtitle_param": {"translate_dst_language": ""},"output_patten": "custom-{task_type}-{session_id}"}}// If you use the API directly, escape the above code as a string to pass in: {\\"delogo\\":{\\"CustomerAppId\\":\\"subtitle_extract\\",\\"subtitle_param\\":{\\"translate_dst_language\\":\\"\\"},\\"output_patten\\": \\"custom-{task_type}-{session_id}\\"}}.// The output filename for the above parameters will be: custom-delogo-02EF93096ADCC84F4ACF156F3A0D1120DD_1721359047292.vtt.
Feedback