Skip to content

AniChapters v2.0

Choose a tag to compare

@56cla 56cla released this 05 Mar 15:08
· 10 commits to main since this release
07af4d0

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:

  • librosa for accurate audio loading
  • scipy.signal.correlate for 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 audioread

Files Changed

  • analyzer.py — Replaced matching logic with Auto Chap v4.2 engine
  • app.py — Cache clearing + anime name passing improvements
  • core.py — New file: Auto Chap v4.2 engine (do not modify)
  • Requirements.txt — Added librosa, scipy, audioread