该项目提供了一个Python脚本,用于批量向视频中添加图片水印。它旨在处理指定目录中的多个视频,为每个视频应用水印图片。水印的位置和透明度可以自定义。
- Python 3.x
- moviepy 库
- 确保系统已安装 Python 3.x。
- 使用pip安装
moviepy
库:
pip install moviepy
- 克隆此仓库或下载脚本到您的本地机器。
- 将视频放置在指定的
video
目录下。 - 将水印图片(例如,
logo.png
)放置在已知位置。 - 运行脚本:
python watermark_script.py
- 处理后的视频将保存在指定的输出目录中。
This project provides a Python script for batch adding image watermarks to videos. It's designed to process multiple videos located in a specified directory, applying a watermark image to each. The watermark position and opacity can be customized.
- Python 3.x
- moviepy library
- Ensure Python 3.x is installed on your system.
- Install the
moviepy
library using pip:
pip install moviepy
- Clone this repository or download the script to your local machine.
- Place your videos in the specified
video
directory. - Place your watermark image (e.g.,
logo.png
) in the known location. - Run the script:
python watermark_script.py
- Processed videos will be saved in the specified output directory.