AniChapters v2.0
AniChapters v2.0 — Core Engine Overhaul
What's New
🔧 Audio Matching Engine — Complete Rewrite
The audio matching engine has been fully replaced with a proven, battle-tested algorithm based on Auto Chap v4.2 (librosa + scipy signal correlation).
The previous engine used an NCC-FFT approach via ffmpeg that produced inconsistent results. The new engine uses:
librosafor accurate audio loadingscipy.signal.correlatefor robust cross-correlation matching- A silence-prefix padding trick to correctly handle themes that appear at the very start of an episode
- Parallel OP/ED processing via
ThreadPoolExecutor
This results in significantly more accurate OP/ED detection across a wider range of shows.
🗂️ Theme Cache Location
Downloaded themes are now stored in a .themes folder next to your video files, making it easy to find and manage cached themes per series.
🧹 Clear Cache Improvement
The Clear Cache button now properly deletes downloaded theme files (.ogg) in addition to temporary processing files, and displays the total storage freed.
🚫 UI Cleanup
Removed an unnecessary internal log message that appeared during analysis.
Requirements
Make sure to install the new dependencies:
pip install librosa scipy audioreadFiles Changed
analyzer.py— Replaced matching logic with Auto Chap v4.2 engineapp.py— Cache clearing + anime name passing improvementscore.py— New file: Auto Chap v4.2 engine (do not modify)Requirements.txt— Addedlibrosa,scipy,audioread