You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. Get the shared version of the Linux FFMpeg. We support three different approaches for this step:
26
+
2. Install the pre-requisite packages. The following script could be used by ubuntu or debian. If users are using other Linux distribution, they should install `gcc` and `g++` by themselves.
27
+
28
+
```shell
29
+
chmod +rwx ./apt-requirements.sh
30
+
./apt-requirements.sh
31
+
```
32
+
33
+
We strongly suggest that users should also install the python dependencies (optional):
34
+
35
+
```shell
36
+
python -m pip install -r requirements.txt
37
+
```
38
+
39
+
3. Get the shared version of the Linux FFMpeg. We support three different approaches for this step:
27
40
* Build the shared libs of FFMpeg from the source codes by yourself. We provide [a compiling script :page_with_curl:](https://github.com/cainmagi/FFmpeg-Encoder-Decoder-for-Python/blob/deps/install-ffmpeg-4_4.sh) in the deps branch. You could download and build it by the following commands:
28
41
29
42
```shell
@@ -51,26 +64,25 @@ The following instructions are used for building the project on Windows with Vis
51
64
* The dependencies could be also downloaded by the automatic script, you just need to run
52
65
53
66
```shell
54
-
python -m pip install -r requirements.txt
55
67
python webtools.py
56
68
```
57
69
58
70
This script requires users to install `urllib3`. The `tqdm` is also recommended to be installed.
59
71
60
-
3. Building `mpegCoder` requires `GLIBC>=2.29`. This requirement is not satisfied in some cases. However, if you have built FFMpeg by our script, the requirement would be fulfilled (i.e. you could skip this step). If users are using our pre-built dependencies, users may need to solve this problem by
72
+
4. Building `mpegCoder` requires `GLIBC>=2.29`. This requirement is not satisfied in some cases. However, if you have built FFMpeg by our script, the requirement would be fulfilled (i.e. you could skip this step). If users are using our pre-built dependencies, users may need to solve this problem by
4. Build `mpegCoder` by running the following script. The built file would be stored in`./build`. If you has not fetched the dependencies in the step 2, running the `setup.py` may trigger an event for fetching the online dependencies.
79
+
5. Build `mpegCoder` by running the following script. The built file would be stored in`./build`. If you has not fetched the dependencies in the step 2, running the `setup.py` may trigger an event for fetching the online dependencies.
68
80
69
81
```shell
70
82
python setup.py build
71
83
```
72
84
73
-
5. Rename the built module as `mpegCoder.so`, then you could import it in the same directory. If you have built FFMpeg by our script, you do not need any other dependencies when importing the libs. However, if not, you may need to download [the lib dependencies :package:](https://github.com/cainmagi/FFmpeg-Encoder-Decoder-for-Python/releases/download/deps-3.0.0/so-linux-ffmpeg_4_4.tar.xz) and add the `lib` folder to your `LD_LIBRARY_PATH`:
85
+
6. Rename the built module as `mpegCoder.so`, then you could import it in the same directory. If you have built FFMpeg by our script, you do not need any other dependencies when importing the libs. However, if not, you may need to download [the lib dependencies :package:](https://github.com/cainmagi/FFmpeg-Encoder-Decoder-for-Python/releases/download/deps-3.0.0/so-linux-ffmpeg_4_4.tar.xz) and add the `lib` folder to your `LD_LIBRARY_PATH`:
0 commit comments