# 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": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "dsymbol",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/eb/6d/5936f5e9e611c51fdbe395815bacdf881a0575cd944201c1679fd882c9e9/ffutils-2024.11.16.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": "2024.11.16",
"project_urls": {
"Homepage": "https://github.com/dsymbol/ffutils"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "f7262e7a4cbab72ed218fde2b2636150d0e44a0db707d2d64227a90e9083f66a",
"md5": "d8f13b361944436b21c401bf57d761e2",
"sha256": "e46d7ed41b35194c0f28e390036b62ba47b97e5a553688be18c490c14305c74b"
},
"downloads": -1,
"filename": "ffutils-2024.11.16-py3-none-any.whl",
"has_sig": false,
"md5_digest": "d8f13b361944436b21c401bf57d761e2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 5206,
"upload_time": "2024-11-16T17:22:05",
"upload_time_iso_8601": "2024-11-16T17:22:05.555677Z",
"url": "https://files.pythonhosted.org/packages/f7/26/2e7a4cbab72ed218fde2b2636150d0e44a0db707d2d64227a90e9083f66a/ffutils-2024.11.16-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "eb6d5936f5e9e611c51fdbe395815bacdf881a0575cd944201c1679fd882c9e9",
"md5": "beb6d60997aaaa03655e5128caad71f1",
"sha256": "a8b8bd756033f03ea7e08d9c046aa71b2fdb715af94f87d8dba66fab94afa849"
},
"downloads": -1,
"filename": "ffutils-2024.11.16.tar.gz",
"has_sig": false,
"md5_digest": "beb6d60997aaaa03655e5128caad71f1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4294,
"upload_time": "2024-11-16T17:22:06",
"upload_time_iso_8601": "2024-11-16T17:22:06.645826Z",
"url": "https://files.pythonhosted.org/packages/eb/6d/5936f5e9e611c51fdbe395815bacdf881a0575cd944201c1679fd882c9e9/ffutils-2024.11.16.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-16 17:22:06",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "dsymbol",
"github_project": "ffutils",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "ffutils"
}