Skip to content

Build Program

jlw4049 edited this page Jul 19, 2022 · 3 revisions

How to Build

Build with Windows

  1. List of required files
  • Latest version of Python (Python 3.8.8 (or under to maintain windows 7/8 support))
  • Something to build the program, I use Pyinstaller
    • Open CMD Prompt and use run command pip install PyInstaller to install Pyinstaller
  1. Install requirements with the command pip install -r /path/to/requirements.txt

  2. With all the required files/programs installed correctly you can use your favorite terminal to build the program

  • Navigate to FFMPEG Audio Encoder folder in what ever terminal/console you are using
  • Your directory should look like this https://i.imgur.com/UYXCi0E.png
  • You'll then run the command pyinstaller -F --add-data "C:\Users\USERNAME\AppData\Local\Programs\Python\Python38\Lib\site-packages\pymediainfo\MediaInfo.dll";. -w --onefile --icon="LOCATION TO\icon.ico" "LOCATION TO\FFMPEGAudioEncoder.py"
  • You'll get several new files in the directory, you are only interested in the Dist folder, which is where your compressed .exe file will be
  • Move the new FFMPEGAudioEncoder.exe file into a seperate folder, copy the Apps and Runtime folder into the folder where you moved FFMPEG...exe and the program will run.
  • If you have done everything correctly your folder structure will look like this https://i.imgur.com/29ePmxV.png
Clone this wiki locally