Skip to main content

Enhance your video with filters.

Project description

Video Filter

Enhance your video with color filters. This Python project helps you to apply a color filter to your Instagram reel or any other social platforms like TikTok, YouTube, Facebook, etc. All formats are supported (reels, shorts, 4k, etc.). The output video is in mp4 format.

Filter gallery selection

original grayscale warm
cool red_only invert_red_green

Installation

Run the following command in the terminal to install the package:

pip install video-filter

Usage examples

Example 1: Brightness and saturation

Brightness and saturation are both set to 0.0 by default, meaning the video will be unchanged.

x Brightness -1.0 Brightness 0.0 Brightness +1.0
Saturation -1.0
Saturation 0.0
Saturation +1.0
from video_filter import VideoFilter

vf = VideoFilter(brightness=1.0, saturation=0.0)
vf.process_video("examples/video_1.mp4", "output.mp4")

Example 2: Color filters

Original Sepia filter at 50% strength Sepia filter at 100% strength
from video_filter import VideoFilter

vf = VideoFilter(filter_name="sepia", filter_strength=0.5)
vf.process_video("examples/video_2.mp4", "output.mp4")

Example 3: Custom filter

Original Custom filter
from video_filter import VideoFilter
import numpy as np

# Matrix (3x3) vector (3x1) [b, g, r]) multiplication
filter_matrix = np.array([
    [0.7, 0.0, 0.1],  # Blue
    [0.2, 1.0, 0.3],  # Green
    [0.4, 0.2, 1.2]   # Red
])

vf = VideoFilter(
    custom_matrix=filter_matrix,
    filter_strength=0.6,
    brightness=0.8
)
vf.process_video("examples/video_1.mp4", "output.mp4")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

video_filter-0.0.4.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

video_filter-0.0.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file video_filter-0.0.4.tar.gz.

File metadata

  • Download URL: video_filter-0.0.4.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for video_filter-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3b744b19462719fe3a000a1803be7524403c94362ad131e62a23fe883d4a330f
MD5 4e7e3fcd769c0aec82cf62e82fb76839
BLAKE2b-256 588a3becf99e67f685e2a50d12ec4424f430bd5e964e47ac86413ac4b7d8de4d

See more details on using hashes here.

File details

Details for the file video_filter-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: video_filter-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for video_filter-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 97cea301457bcfcdb85862717d177f47bc3e63d6186aa8f88f6a3fe05927938d
MD5 2a6324aa1fd549637e5a8af38f70d682
BLAKE2b-256 5eabd8c52866f52b3477261a5192af3af2b39f4c03771dbbe3c1a66c23510b85

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page