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.4.tar.gz (6.1 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.4-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ffmpeg_tools-0.1.4.tar.gz
  • Upload date:
  • Size: 6.1 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.4.tar.gz
Algorithm Hash digest
SHA256 19a287bef34951a4d000eb9f55aff855a8051425bec6725b20ccaa5b6424d45a
MD5 13ab3eca37f6d062d152ab160e284571
BLAKE2b-256 24d5d0b6c3653119496b8facbbc492815f89034cce40be2f71992cd99b7604b0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ffmpeg_tools-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 7.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6d2231465b6c36dc21becfa726ff4f877cc8c2a5cf2b446f93a6a79e4d798044
MD5 eb1743c65cc9294fff7ff1e21220f021
BLAKE2b-256 15f2904c5b92e36f9e4737b2306b9499b00aa1df656c73e8267f51756275d0ac

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