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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ffmpeg_tools-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 8dbf6b27d47baa3703cc6567898dbfd9eea0354b9f84b24562cfee559f327ea3
MD5 a9e97c6031a110ec3d6653ae8046e9a8
BLAKE2b-256 97e016d60a4247076b08835936479dafac2748777e284e3214aa6d5c742d70e0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ffmpeg_tools-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 159e47bf3e0939318937823b4424f96c45ff1d3bd8f3cf67972fe1886f9a3a59
MD5 56b8912ec57e8b3f87d809c6e38c2fe1
BLAKE2b-256 f1c1493ba52bd9b2eb7a2e5ba624ca1156c4c618d5e246b3e6f950be38af5398

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