unarr/internal/library/mediainfo
Deivid Soto a710bc1626
Some checks failed
CI / Test (push) Failing after 6m18s
CI / Build (push) Successful in 1m32s
CI / Build-1 (push) Successful in 1m55s
CI / Build-2 (push) Successful in 1m33s
CI / Build-3 (push) Successful in 1m32s
CI / Build-4 (push) Successful in 1m35s
CI / Build-5 (push) Successful in 1m33s
CI / Lint (push) Failing after 2m50s
CI / Coverage (push) Successful in 2m58s
CI / Vet (push) Successful in 2m7s
feat(library): detección de intro/créditos post-scan (skip segments)
Tras cada scan, localiza la intro (OP) y los créditos (ED) comparando
fingerprints chromaprint entre episodios de la misma temporada —
reimplementación limpia del enfoque de Intro Skipper: índice invertido
de uint32, alineamiento por shifts, Hamming ≤6/32, región contigua más
larga (15-120s intro / 15-450s créditos). Películas: inicio de créditos
por rachas de blackframe (solo keyframes, -skip_frame nokey) que llegan
al final del fichero.

- fpcalc se auto-descarga de las releases estáticas de acoustid
  (linux/macos/windows, ~2MB) con el mismo patrón que ffmpeg/ffprobe.
- Resultados cacheados como sidecar .skipseg.json (mtime + versión de
  algoritmo); solo los ficheros nuevos trabajan.
- Submit a /api/internal/agent/skip-segments DESPUÉS del library-sync,
  en dos fases (episodios primero, películas después) para que la
  fase rápida no espere a los blackframe lentos sobre NAS.
- Agrupación por (dir + título-pre-SxxEyy + season): los títulos
  parseados arrastran nombre de episodio y tags de release.
- Gotcha cazado en vivo: fpcalc -length sale sin drenar el pipe; hay
  que cerrar nuestro read-end o ffmpeg queda bloqueado para siempre.
- config: library.skip_detect (default true, backfill) y scan_interval
  default 24h → 1h (estilo Plex).
2026-06-12 19:46:07 +02:00
..
charset.go feat(subs): resilient subtitle extraction — sidecars, charset, torrent/debrid 2026-06-08 13:04:09 +02:00
charset_test.go feat(subs): resilient subtitle extraction — sidecars, charset, torrent/debrid 2026-06-08 13:04:09 +02:00
chromaprint.go feat(library): detección de intro/créditos post-scan (skip segments) 2026-06-12 19:46:07 +02:00
chromaprint_test.go feat(library): detección de intro/créditos post-scan (skip segments) 2026-06-12 19:46:07 +02:00
ffmpeg.go feat(stream)!: retire WebRTC, HLS-only, bump 0.9.4 2026-05-26 18:04:35 +02:00
ffmpeg_download.go feat(mediainfo): ResolveFFmpeg + DownloadFFmpeg mirroring ffprobe pattern 2026-05-06 09:49:32 +02:00
ffmpeg_test.go feat(mediainfo): ResolveFFmpeg + DownloadFFmpeg mirroring ffprobe pattern 2026-05-06 09:49:32 +02:00
ffprobe.go feat(subs): resilient subtitle extraction — sidecars, charset, torrent/debrid 2026-06-08 13:04:09 +02:00
ffprobe_download.go fix(library): use native arm64 ffprobe on Apple Silicon (osx-arm-64) 2026-04-09 09:26:10 +02:00
ffprobe_download_test.go test(mediainfo): add ffprobe download unit tests 2026-04-06 10:16:27 +02:00
ffprobe_test.go feat(library): detect corrupt/incomplete files during scan 2026-06-02 19:42:00 +02:00
fpcalc.go feat(library): detección de intro/créditos post-scan (skip segments) 2026-06-12 19:46:07 +02:00
gallery_real_test.go feat(subs): resilient subtitle extraction — sidecars, charset, torrent/debrid 2026-06-08 13:04:09 +02:00
harden_linux_test.go fix(trickplay): stop scan-time sprite generation from saturating the host 2026-06-04 08:25:00 +02:00
ioprio_linux.go fix(trickplay): stop scan-time sprite generation from saturating the host 2026-06-04 08:25:00 +02:00
ioprio_other.go fix(trickplay): stop scan-time sprite generation from saturating the host 2026-06-04 08:25:00 +02:00
lang.go feat(subs): resilient subtitle extraction — sidecars, charset, torrent/debrid 2026-06-08 13:04:09 +02:00
lang_test.go feat: add migrate command, media server detection, and debrid auto-config 2026-03-29 16:54:32 +02:00
sidecar.go feat(subs): resilient subtitle extraction — sidecars, charset, torrent/debrid 2026-06-08 13:04:09 +02:00
sidecar_subs.go feat(subs): resilient subtitle extraction — sidecars, charset, torrent/debrid 2026-06-08 13:04:09 +02:00
sidecar_subs_test.go feat(subs): resilient subtitle extraction — sidecars, charset, torrent/debrid 2026-06-08 13:04:09 +02:00
sidecar_test.go fix(stream): /critico review fixes for the sidecar cache 2026-06-02 13:46:07 +02:00
trickplay.go fix(hls): los prewarms ya no desalojan la sesión del espectador + trickplay 12x 2026-06-10 00:54:50 +02:00
trickplay_lock_test.go fix(trickplay): stop scan-time sprite generation from saturating the host 2026-06-04 08:25:00 +02:00
trickplay_test.go feat(trickplay): scan-time montage sprite for the web scrubber 2026-06-03 20:30:29 +02:00
types.go feat(subs): resilient subtitle extraction — sidecars, charset, torrent/debrid 2026-06-08 13:04:09 +02:00