# ffutils
Utilities for working with ffmpeg, such as downloading ffmpeg executables and displaying progress for ffmpeg commands.
## Installation
To install the library, use pip:
```bash
pip install ffutils
```
Alternatively, install the latest directly from the GitHub repository:
```bash
pip install git+https://github.com/dsymbol/ffutils.git
```
## Usage
```python
from ffutils import get_ffmpeg_exe, ffprog
# Download ffmpeg executable if not found in PATH
get_ffmpeg_exe()
# Example ffmpeg command to convert a video with progress
command = ["ffmpeg", "-i", "input.mp4", "output.mkv"]
ffprog(command, desc="Converting video")
```
Combine [ffmpeg-python](https://github.com/kkroening/ffmpeg-python) and a progress bar:
```python
import ffmpeg
from ffutils import get_ffmpeg_exe, ffprog
get_ffmpeg_exe()
command = (
ffmpeg
.input('video.mp4')
.output('output.mkv')
).get_args()
ffprog(
command,
desc="Converting video"
)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/dsymbol/ffutils",
"name": "ffutils",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "dsymbol",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/53/55/df5dd8105770e57592307edb941120f64615c5fbbd41ea834e982556dc79/ffutils-10.3.2024.tar.gz",
"platform": null,
"description": "# ffutils\n\nUtilities for working with ffmpeg, such as downloading ffmpeg executables and displaying progress for ffmpeg commands.\n\n## Installation\n\nTo install the library, use pip:\n\n```bash\npip install ffutils\n```\n\nAlternatively, install the latest directly from the GitHub repository:\n\n```bash\npip install git+https://github.com/dsymbol/ffutils.git\n```\n\n## Usage\n\n```python\nfrom ffutils import get_ffmpeg_exe, ffprog\n\n# Download ffmpeg executable if not found in PATH\nget_ffmpeg_exe()\n\n# Example ffmpeg command to convert a video with progress\ncommand = [\"ffmpeg\", \"-i\", \"input.mp4\", \"output.mkv\"]\nffprog(command, desc=\"Converting video\")\n```\n\nCombine [ffmpeg-python](https://github.com/kkroening/ffmpeg-python) and a progress bar:\n\n```python\nimport ffmpeg\nfrom ffutils import get_ffmpeg_exe, ffprog\n\nget_ffmpeg_exe()\n\ncommand = (\n ffmpeg\n .input('video.mp4')\n .output('output.mkv')\n).get_args()\n\nffprog(\n command,\n desc=\"Converting video\"\n)\n```\n",
"bugtrack_url": null,
"license": "OSI Approved :: MIT License",
"summary": "Utilities for working with ffmpeg",
"version": "10.3.2024",
"project_urls": {
"Homepage": "https://github.com/dsymbol/ffutils"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "26edc82d775a43fc594c499e731f9c3e54cd5fb7ef1e3748b1aeb38c6969faff",
"md5": "1d3be0258eeb6bb872f07f6a901f9c91",
"sha256": "fdaa967022b9577a3b981d15c749a49e6a5709e09d5898a711ffed456f2fe23e"
},
"downloads": -1,
"filename": "ffutils-10.3.2024-py3-none-any.whl",
"has_sig": false,
"md5_digest": "1d3be0258eeb6bb872f07f6a901f9c91",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4441,
"upload_time": "2024-03-09T23:51:31",
"upload_time_iso_8601": "2024-03-09T23:51:31.324295Z",
"url": "https://files.pythonhosted.org/packages/26/ed/c82d775a43fc594c499e731f9c3e54cd5fb7ef1e3748b1aeb38c6969faff/ffutils-10.3.2024-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "5355df5dd8105770e57592307edb941120f64615c5fbbd41ea834e982556dc79",
"md5": "80e56005df67b29289e7bd27e6c07eb2",
"sha256": "e904ed3d8d340f8ba0d67d59c19441306384951459715388c60871d1833f2823"
},
"downloads": -1,
"filename": "ffutils-10.3.2024.tar.gz",
"has_sig": false,
"md5_digest": "80e56005df67b29289e7bd27e6c07eb2",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3989,
"upload_time": "2024-03-09T23:51:33",
"upload_time_iso_8601": "2024-03-09T23:51:33.013090Z",
"url": "https://files.pythonhosted.org/packages/53/55/df5dd8105770e57592307edb941120f64615c5fbbd41ea834e982556dc79/ffutils-10.3.2024.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-09 23:51:33",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "dsymbol",
"github_project": "ffutils",
"github_not_found": true,
"lcname": "ffutils"
}