Development
Setup
1. Clone the repository
2. Install FFmpeg locally (recommended)
Using local FFmpeg is optional but recommended for speeding up the video encoding process.
Install FFmpeg
Download and install FFmpeg from the official website:
- Download FFmpeg
- Ensure FFmpeg is in your system PATH
Download and install FFmpeg from the official website:
- Download FFmpeg
- Follow the installation instructions for your platform
3. Setting up the project environment
We recommend using uv to manage your project environment since audim was developed using uv,
and you can replicate the same environment by just running:
But, feel free to use any python based environment and package manager of your choice.
About uv
uv is a fast, simple, and secure Python package manager.
It is recommended to use uv to manage your project environment.
3.1 Installing uv
Note
If you are using conda base environment as the default base environment for your python projects, run the below command to activate the base environment.
If not, skip this step and continue with the next step.
If you don't have uv installed, you can install it by running:
4. Create input and output directories
Create a test.py or run.py to test your python script using audim.
ideally, if done correctly, the setup should be like this:
Note
- You would dump your input files in the
inputdirectory. - The output files will be dumped in the
outputdirectory. - See Usage for more details or see sample scripts to get some inspiration.
Code Quality
Before committing, please ensure that the code is formatted and styled correctly. Run the following commands to check and fix code style issues:
Run the project
feel free to create a run.py or test.py file to test the project.
They will be untracked by git.
implement your usage logic in the run.py file.
Run the script with:
Build and serve the documentation
You can build and serve the documentation by running: