Skip to content

amirroox/VideoWaterMarkChange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video Watermarking Script

This Python script allows you to add watermarks to videos with various customization options. It uses the FFmpeg tool to add text watermarks to video files.

Features

  • Adds customizable text watermarks to video files.
  • Supports multiple video file formats, including .mp4, .avi, .mkv, and .mov.
  • Allows customization of watermark text, font size, font color, opacity, and background color.
  • Supports batch processing for videos located in subdirectories.
  • The wide application of this script is in creating watermarks for users with their contact numbers (In this way, it creates a watermark for each contact number you enter.)

Usage

  1. Place your video files in the Input directory.
  2. Run the script.
  3. Follow the prompts to customize your watermark settings:
    • Enter the text for the watermark (default: "WaterMark").
    • Set the time interval for changing the watermark text (in seconds, default: 60 seconds).
    • Specify the font size (default: 24).
    • Choose the font color (hex or color name, e.g., #ff0000 or red).
    • Choose the background color (hex or color name, e.g., #000000 or black).
  4. The script will process your videos, adding the watermark based on your settings, and save the watermarked videos in the Output directory.

Requirements

  • python 3.x
  • FFmpeg
  • colorama (pip install colorama)

Example

Suppose you have a directory structure like this:

Input
└── S1
    ├── video1.mp4
    ├── video2.avi
    ├── file.zip
    └── ...
└── S2
    ├── video1.mp4
    ├── video2.avi
    ├── file.zip
    └── ...
└── ...

Output
└── WaterMark1
    └── S1
        ├── video1.mp4 (with WaterMark)
        ├── video2.avi (with WaterMark) 
        ├── file.zip (without touching)
        └── ...
    └── S2
        ├── video1.mp4 (with WaterMark)
        ├── video2.avi (with WaterMark)
        ├── file.zip (without touching)
        └── ...
└── WaterMark2
    └── S1
        ├── video1.mp4 (with WaterMark)
        ├── video2.avi (with WaterMark)
        ├── file.zip (without touching)
        └── ...
    └── S2
        ├── video1.mp4 (with WaterMark)
        ├── video2.avi (with WaterMark)
        ├── file.zip (without touching)
        └── ...
└── ...

About

Video Water Mark Change

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages