| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 29b6f09 commit cb9d400
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -81,9 +81,11 @@ Real-world signal graphs can get a heck of a lot more complex, but `ffmpeg-pytho | |||
| 81 | 81 | ||
| 82 | 82 | ## Installation | |
| 83 | 83 | ||
| 84 | + ### Installing `ffmpeg-python` | ||
| 85 | + | ||
| 84 | 86 | The latest version of `ffmpeg-python` can be acquired via a typical pip install: | |
| 85 | 87 | ||
| 86 | - ``` | ||
| 88 | + ```bash | ||
| 87 | 89 | pip install ffmpeg-python | |
| 88 | 90 | ``` | |
| 89 | 91 | ||
@@ -93,6 +95,24 @@ git clone git@github.com:kkroening/ffmpeg-python.git | |||
| 93 | 95 | pip install -e ./ffmpeg-python | |
| 94 | 96 | ``` | |
| 95 | 97 | ||
| 98 | + > **Note**: `ffmpeg-python` makes no attempt to download/install FFmpeg, as `ffmpeg-python` is merely a pure-Python wrapper - whereas FFmpeg installation is platform-dependent/environment-specific, and is thus the responsibility of the user, as described below. | ||
| 99 | + | ||
| 100 | + ### Installing FFmpeg | ||
| 101 | + | ||
| 102 | + Before using `ffmpeg-python`, FFmpeg must be installed and accessible via the `$PATH` environment variable. | ||
| 103 | + | ||
| 104 | + There are a variety of ways to install FFmpeg, such as the [official download links](https://ffmpeg.org/download.html), or using your package manager of choice (e.g. `sudo apt install ffmpeg` on Debian/Ubuntu, `brew install ffmpeg` on OS X, etc.). | ||
| 105 | + | ||
| 106 | + Regardless of how FFmpeg is installed, you can check if your environment path is set correctly by running the `ffmpeg` command from the terminal, in which case the version information should appear, as in the following example (truncated for brevity): | ||
| 107 | + | ||
| 108 | + ``` | ||
| 109 | + $ ffmpeg | ||
| 110 | + ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers | ||
| 111 | + built with gcc 9 (Ubuntu 9.3.0-10ubuntu2) | ||
| 112 | + ``` | ||
| 113 | + | ||
| 114 | + > **Note**: The actual version information displayed here may vary from one system to another; but if a message such as `ffmpeg: command not found` appears instead of the version information, FFmpeg is not properly installed. | ||
| 115 | + | ||
| 96 | 116 | ## [Examples](https://github.com/kkroening/ffmpeg-python/tree/master/examples) | |
| 97 | 117 | ||
| 98 | 118 | When in doubt, take a look at the [examples](https://github.com/kkroening/ffmpeg-python/tree/master/examples) to see if there's something that's close to whatever you're trying to do. | |
@@ -197,7 +217,7 @@ When in doubt, refer to the [existing filters](https://github.com/kkroening/ffmp | |||
| 197 | 217 | ||
| 198 | 218 | **Why do I get an import/attribute/etc. error from `import ffmpeg`?** | |
| 199 | 219 | ||
| 200 | - Make sure you ran `pip install ffmpeg-python` and not `pip install ffmpeg` or `pip install python-ffmpeg`. | ||
| 220 | + Make sure you ran `pip install ffmpeg-python` and _**not**_ `pip install ffmpeg` (wrong) or `pip install python-ffmpeg` (also wrong). | ||
| 201 | 221 | ||
| 202 | 222 | **Why did my audio stream get dropped?** | |
| 203 | 223 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments