Skip to main content

A Python package for high-quality FFmpeg command generation and video utilities.

Project description

FFmpeg Tools

A Python package for simplified FFmpeg command generation, video downloading, and file management.

Installation

pip install ffmpeg-tools

Usage

1. Generating FFmpeg Commands

from ffmpeg_tools import build_command

# Generate a high-quality compression command
cmd = build_command("compress_high_quality", input="video.mp4", output="compressed.mp4")
print(cmd)
# Output: ['ffmpeg', '-y', '-i', 'video.mp4', ...]

2. Downloading Videos

from pathlib import Path
from ffmpeg_tools import download_video

# Download a video from YouTube
download_video(
    url="https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    output_folder=Path("downloads"),
    clear_folder=False
)

3. Cleaning Filenames

from pathlib import Path
from ffmpeg_tools import clean_filename

file_path = Path("downloads/My Video (2024).mp4")
new_path = clean_filename(file_path)
print(new_path)
# Output: downloads/My_Video_2024.mp4

License

MIT

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

ffmpeg_tools-0.1.2.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ffmpeg_tools-0.1.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file ffmpeg_tools-0.1.2.tar.gz.

File metadata

  • Download URL: ffmpeg_tools-0.1.2.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for ffmpeg_tools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 09b1061fd0b996b99c4b606f5857d0d2eb0b7b4d0a01eb978e1cefe663cc9cf2
MD5 74b75092cd122505be1ad46e6efa5917
BLAKE2b-256 05f627ea291571d6ccae427efe4ad1242c4f5ef449800cf4bc7c3063b42af93b

See more details on using hashes here.

File details

Details for the file ffmpeg_tools-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ffmpeg_tools-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for ffmpeg_tools-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 17983b72a0f34be24962845f62505c6704696b46dec24408d89af42797a3c248
MD5 bff5fcecec8a7501d5ea2854326a56be
BLAKE2b-256 1e13949769e3a48bd8dad1bffc9238b462002a46c8189728eed5505876b2ba25

See more details on using hashes here.

Supported by

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