This Python script combines music videos on YouTube with local high fidelity audio files. Lyrics are automatically fetched from LRCLIB and embedded as subtitles.
- ffmpeg
- mediainfo
- Clone the repository
git clone https://github.com/JimmyJichi/HiFiMuxer.git
- Install Python packages
pip install -r requirements.txt
-
Move the audio file to the current directory. Make sure the audio codec is supported by the mp4 container (e.g. flac, m4a).
-
Run the script
python HiFiMuxer.py
You will be prompted to enter a YouTube link to download the video. Lyrics will be fetched from LRCLIB and embedded as subtitles.