Metadata-Version: 2.4
Name: ffmpeg_tools
Version: 0.1.4
Summary: A Python package for high-quality FFmpeg command generation and video utilities.
Home-page: https://github.com/sudeepsudhevan/FFmpeg_pip
Author: Sudeep Sudhevan
Author-email: sudeepsudhevan66@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: yt-dlp
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# FFmpeg Tools

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

## Installation

```bash
pip install ffmpeg-tools
```

## Usage

### 1. Generating FFmpeg Commands

```python
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

```python
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

```python
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
