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 .

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.1.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.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ffmpeg_tools-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 167fe67b48b641445183379dc52682e3b801b6cbdf71c434210d85a66995dbaf
MD5 e89ed068e5d16c3784a612911d02ebac
BLAKE2b-256 e098758db5c1a0b576f916d15f31a1ac6d38058ecb251ed017b94c3eb439cdc6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ffmpeg_tools-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a17e39eba96f847f09fe67fa8f5b113fdd39819c92a7121c8617a21bf2751f9e
MD5 7a8b3ca794d5e25db5c36dd491bcf271
BLAKE2b-256 e528b625531a2f09e744d5bd24ef75acc2842eaf4badd3178dc5287acd348251

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