Skip to content
Automation
Skill

/mark2video

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

BOOST
From plugin
python-office
1.4k74 skills
Install
$ npx -y skills add coderwanfeng/python-office --skill mark2video --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/mark2video

Context preview

The summary Claude sees to decide when to auto-load this skill.

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

SKILL.md

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

mark2video Skill

> 给视频添加水印

功能描述

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

所属分类

`office/skills/video/mark2video/`

调用方式

from 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_path` | str | 是 | - | 视频地址 | | `output_path` | str | 否 | `'./'` | 输出地址 | | `output_name` | str | 否 | `'mark2video.mp4'` | 输出名称,记得带 `.mp4` | | `mark_str` | str | 否 | `'www.python-office.com'` | 水印内容,**只支持英文** | | `font_size` | int | 否 | `28` | 水印字体大小 | | `font_type` | str | 否 | `'Arial'` | 水印字体类型 | | `font_color` | str | 否 | `'white'` | 水印颜色 |

返回值

`None`

使用示例

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

原始函数

`office.api.video.mark2video`

Ships withpython-office

pip install python-office 自动化办公专用库

Get the whole plugin
Stats
1,358
Stars
303
Forks
Maintained
Maintenance
Python
Language
Apache-2.0
License
1mo ago
Last commit
4y ago
Created
1d ago
Added

Repo: coderwanfeng/python-office

Other skills on python-office.