Skip to content

FFmpeg mpegCoder for Python (Linux)

Compare
Choose a tag to compare
@cainmagi cainmagi released this 19 Jul 14:37
· 5 commits to master-linux since this release

Instruction of this version

This is the first release version that contains all python built files. The details of the compilation are shown in the following table:

File FFMpeg Numpy Python GCC/G++ OS
mpegCoder_3_1_0_Linux_py39.tar.xz 4.4 1.21.1 3.9.6 8.3.0 Debian 10
mpegCoder_3_1_0_Linux_py38.tar.xz 4.4 1.21.1 3.8.11 8.3.0 Debian 10
mpegCoder_3_1_0_Linux_py37.tar.xz 4.4 1.21.1 3.7.11 8.3.0 Debian 10
mpegCoder_3_1_0_Linux_py36.tar.xz 4.4 1.19.5 3.6.14 8.3.0 Debian 10
mpegCoder_3_1_0_Linux_py35.tar.xz 4.4 1.18.5 3.5.10 8.3.0 Debian 10

Note that the above versions only show the environment when building mpegCoder. It does not mean that they are the dependencies of running mpegCoder. For example, users could use python 3.9.5 and numpy 1.19.5 to run mpegCoder.

Running the Linux version may be a little bit tricky. Users need to follow the step 5 and 6 in the instructions of the source code 📄. We copy the instructions here:

  1. Extract 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 📦 and add the lib folder to your LD_LIBRARY_PATH:

    mkdir -p /apps/ffmpeg-4.4
    cd /apps/ffmpeg-4.4
    wget -O- https://github.com/cainmagi/FFmpeg-Encoder-Decoder-for-Python/releases/download/deps-3.0.0/so-linux-ffmpeg_4_4.tar.xz | tar xJ -C "."
    echo "export LD_LIBRARY_PATH=/apps/ffmpeg-4.4/lib:\$LD_LIBRARY_PATH" >> ~/.bashrc
    export LD_LIBRARY_PATH=/apps/ffmpeg-4.4/lib:$LD_LIBRARY_PATH
  2. Running 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

    ln -sf /apps/ffmpeg-4.4/lib-fix/libm-2.31.so /lib/x86_64-linux-gnu/libm.so.6

Then, users could import the package by

import mpegCoder