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 & Running FFmpeg Commands
from ffmpeg_tools import build_command, run_command
# 1. Build the command
cmd = build_command("compress_high_quality", input="video.mp4", output="compressed.mp4")
# 2. Run the command (returns True if successful)
success = run_command(cmd)
# Optional: Dry run to just print the command
run_command(cmd, dry_run=True)
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.5.tar.gz
(6.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ffmpeg_tools-0.1.5.tar.gz.
File metadata
- Download URL: ffmpeg_tools-0.1.5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc9af5ccd92da257437cafd2f6d3f748e8d0d8ad643e86c7fb974a495e68bb37
|
|
| MD5 |
227dde0372e90b71d0664ac7c64d358d
|
|
| BLAKE2b-256 |
098a5c230eb29125d071dde4fa153a1c8825c29e1a2e455a86562c301b8039d3
|
File details
Details for the file ffmpeg_tools-0.1.5-py3-none-any.whl.
File metadata
- Download URL: ffmpeg_tools-0.1.5-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3280f8cda2ccbab856a91e6634fb23550c6ffb086481669e7d3422526712741
|
|
| MD5 |
a9c2597ca49ca65b204fc87ecb788b85
|
|
| BLAKE2b-256 |
5289b14e6dbc9a4b0b07b70986da264989b55c28132bf7eca0874b5f9285ef9d
|