This project contains a Python script loud_and_clear.py that processes video files to enhance their audio using DeepFilterNet for noise removal and ffmpeg for loudness normalization.
- Extract Audio: Extracts audio from a video file.
- AI Enhancement: Uses DeepFilterNet to remove noise and reconstruct voice.
- Loudness Boost: Normalizes audio loudness to standard levels (I=-16 LUFS) using
loudnorm. - Merge: Merges the enhanced audio back into the original video without re-encoding the video stream.
- Python 3.8+
ffmpeginstalled and available in your system path.DeepFilterNetinstalled.
- Clone the repository.
- Install dependencies:
pip install torch torchaudio deepfilternet tqdm
- Place your input video in the
mediafolder (or adjust the path in the script). - Run the script:
python loud_and_clear.py
- The output video will be saved to the specified output path.
loud_and_clear.py: Main script for audio enhancement.main.py: Sample entry point.media/: Directory for input and output media files.