OpenParable
Skip to content
← Back to skills

Mark2video

Documents
mark2video

Mark2video is an Agent Skill for documents published in the CoderWanFeng/python-office repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

给视频添加文字水印,支持自定义字体大小、类型、颜色。当用户提到视频水印、视频加 logo、视频字幕时使用。

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/CoderWanFeng/python-office/blob/HEAD/skills/video/mark2video/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/mark2video, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

mark2video Skill

给视频添加水印

功能描述

向视频添加文字水印,支持自定义字体大小、字体类型、颜色等参数。

所属分类

office/skills/video/mark2video/

调用方式

from office.skills.video import mark2video

mark2video(
    video_path='./test.mp4',
    output_path='./',
    output_name='marked.mp4',
    mark_str='python-office',
    font_size=28,
    font_type='Arial',
    font_color='white'
)

参数说明

参数类型必填默认值说明
video_pathstr是-视频地址
output_pathstr否'./'输出地址
output_namestr否'mark2video.mp4'输出名称,记得带 .mp4
mark_strstr否'www.python-office.com'水印内容,只支持英文
font_sizeint否28水印字体大小
font_typestr否'Arial'水印字体类型
font_colorstr否'white'水印颜色

返回值

None

使用示例

from office.skills.video import mark2video
mark2video(video_path='./demo.mp4', mark_str='My Channel')

原始函数

office.api.video.mark2video