|
1 |
| -`ffmpegio-plugin-plugin-static-ffmpeg`: A Python `ffmpegio` plugin to use FFmpeg binaries in `static-ffmpeg` package |
2 |
| -==================================================================================================================== |
| 1 | +`ffmpegio-plugin-static-ffmpeg`: A Python `ffmpegio` plugin to use FFmpeg binaries in `static-ffmpeg` package |
| 2 | +============================================================================================================= |
3 | 3 |
|
4 | 4 | |pypi| |pypi-status| |pypi-pyvers| |github-license| |github-status|
|
5 | 5 |
|
|
14 | 14 | .. |github-status| image:: https://img.shields.io/github/workflow/status/python-ffmpegio/python-ffmpegio-plugin-static-ffmpeg/Run%20Tests
|
15 | 15 | :alt: GitHub Workflow Status
|
16 | 16 |
|
17 |
| -Python `ffmpegio` package aims to bring the full capability of `FFmpeg <https://ffmpeg.org>`__ |
18 |
| -to read, write, and manipulate multimedia data to Python. FFmpeg is an open-source cross-platform |
19 |
| -multimedia framework, which can handle most of the multimedia formats available today. |
| 17 | +`Python ffmpegio <https://python-ffmpegio.github.io/python-ffmpegio/>`__ package aims to bring |
| 18 | +the full capability of `FFmpeg <https://ffmpeg.org>`__ to read, write, and manipulate multimedia |
| 19 | +data to Python. FFmpeg is an open-source cross-platform multimedia framework, which can handle |
| 20 | +most of the multimedia formats available today. |
20 | 21 |
|
21 |
| -`ffmpegio-plugin-static-ffmpeg` adds a capability to use the FFmpeg and FFprobe executable |
22 |
| -distributed in `static-ffmpeg` Python package. |
| 22 | +One caveat of FFmpeg is that there is no official program installer for Windows and MacOS (although |
| 23 | +`homebrew` could be used for the latter). `ffmpegio-plugin-static-ffmpeg` enables the `ffmpegio` package to |
| 24 | +use the build of FFmpeg distributed by the `static-ffmpeg <https://github.com/zackees/static_ffmpeg>`__ |
| 25 | +package. |
23 | 26 |
|
24 |
| -To use the plugin, it just needs to be installed via `pip`, and `ffmpegio` will automatically detect |
25 |
| -the paths to FFmpeg and FFprobe when it is imported in a Python script. |
| 27 | +Use |
| 28 | +=== |
| 29 | + |
| 30 | +Simply install the package: |
26 | 31 |
|
27 | 32 | .. code-block:: bash
|
28 | 33 |
|
29 |
| - pip install ffmpegio-plugin-static-ffmpeg |
| 34 | + pip install ffmpegio-core ffmpegio-plugin-static-ffmpeg |
| 35 | +
|
| 36 | +Then `ffmpegio` will auto-detect the plugin and `static-ffmpeg`'s executables: |
| 37 | + |
| 38 | +.. code-block:: python |
| 39 | + |
| 40 | + import ffmpegio |
| 41 | +
|
| 42 | + print(ffmpegio.path.FFMPEG_BIN) # ...\site-packages\static_ffmpeg\bin\win32\ffmpeg.exe |
| 43 | + print(ffmpegio.path.FFPROBE_BIN) # ...\site-packages\static_ffmpeg\bin\win32\ffprobe.exe |
| 44 | + |
| 45 | +Because the `static-ffmpeg` package downloads its binaries on demand, the first |
| 46 | +time importing `ffmpegio` with this plugin enabled may take a while. |
| 47 | + |
| 48 | +.. note:: |
| 49 | + `ffmpegio-plugin-static-ffmpeg` will *not* be activated if `ffmpeg` and `ffprobe` are |
| 50 | + already available on the system PATH. |
0 commit comments