Skip to main content
Version: 3.2.x

Installation for Windows

This guide contains steps for installing or compiling the mpegCoder module manually. We recommend users who need to use mpegCoder in a project locally to install the package by this way.

Install the pre-compiled module

Download mpegCoder

First, users need to download the single module. We provide the downloading links in the following table. Please check the correct version according to your environment.

mpegCoderFFMpegNumpyPythonVSOS
3.2.05.01.22.33.10.42022 (v143)Windows 11 21H2
3.2.05.01.22.33.9.122022 (v143)Windows 11 21H2
3.2.05.01.22.33.8.132022 (v143)Windows 11 21H2
3.2.05.01.21.53.7.122022 (v143)Windows 11 21H2
3.2.05.01.19.53.6.152022 (v143)Windows 11 21H2

After extracting the tarball, we could get mpegCoder.pyd.

info

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.22.0 to run mpegCoder.

Install Numpy

To run mpegCoder, you are required to install Numpy with the correct version first. The best version for each mpegCoder release has been listed before. If your Numpy version is differnt from the best version too much, mpegCoder may not work. Here is the command for installation.

python -m pip install numpy==<version>

Download dependencies

The pre-compiled dependencies are available on our release page. The dependencies contain several .dll files. Users also need to download the tarball with the correct FFMpeg version, and extract the files.

FFMpeg
5.0

The above files are collected from the officially released FFMpeg shared libraries. Users could also find them here.

Import

To import the module, users need to place the mpegCoder.pyd and the dependencies in the same folder. For example,

.
|---mpegCoder.pyd
|---avcodec-59.dll
|---avformat-59.dll
|---avutil-57.dll
|---swresample-4.dll
`---swscale-6.dll

After that, users could enter the same folder, and import the module by

import mpegCoder

Compile the module

If users need to compile the module by themselves, please follow the instructions on Github:

Compile with VS2022