Commit Graph

10 Commits

Author SHA1 Message Date
Tdarr Plugin Developer
b0c7ed3229 feat: Sync all plugin versions to 4.0.0 and reorganize Local directory v4.0.0-milestone 2026-01-30 05:55:19 -08:00
Tdarr Plugin Developer
5053386ca0 Fix ab-av1 ffmpeg detection with temporary wrapper scripts (v2.34)
- ab-av1 requires ffmpeg/ffprobe to be in PATH (no CLI args/env vars for custom paths)
- Create temporary wrapper scripts that call tdarr-ffmpeg
- Add temp directory to PATH when executing ab-av1
- Clean up wrappers in finally block
- No permanent symlinks or system modifications needed
2025-12-15 23:15:50 -08:00
Tdarr Plugin Developer
2a3a619eb0 Fix ab-av1 ffprobe using env vars instead of CLI args (v2.33)
- Use FFMPEG and FFPROBE environment variables instead of --ffmpeg/--ffprobe flags
- Older ab-av1 versions don't support those command-line arguments
- Sets env vars to point to tdarr-ffmpeg when executing ab-av1
2025-12-15 23:12:19 -08:00
Tdarr Plugin Developer
fe125da51a Fix ab-av1 ffprobe issue by passing tdarr-ffmpeg path explicitly (v2.32)
- ab-av1 now uses --ffmpeg and --ffprobe flags to locate tdarr-ffmpeg
- No symlinks needed - uses existing Tdarr binaries
- tdarr-ffmpeg acts as both ffmpeg and ffprobe (multi-call binary)
2025-12-15 22:33:30 -08:00
Tdarr Plugin Developer
2b40a8451b Fix ab-av1 detection in Docker environments (v2.31)
- Fixed: Binary exists but X_OK check fails on Docker mounts
- Added: 'which ab-av1' fallback detection
- Added: Better debug logging when X_OK check fails
- Binary will now be found even with permission issues
2025-12-15 21:12:56 -08:00
Tdarr Plugin Developer
4be3310d7e Implement ab-av1 crf-search execution for VMAF mode (v2.30)
- Added executeAbAv1CrfSearch() function with synchronous execution
- Parses CRF and VMAF score from ab-av1 output
- 5-minute timeout for sample encodes
- Graceful fallback to configured CRF on errors
- Updates FFmpeg command with found CRF value
- Proper logging of ab-av1 results and errors
2025-12-15 19:59:46 -08:00
Tdarr Plugin Developer
04d7ff59e9 Update plugins: VMAF mode, documentation fixes, version sync
- Added VMAF quality-targeted mode to av1_svt_converter (v2.25)
- Fixed documentation version mismatch (misc_fixes v2.8, stream_organizer v4.10, audio_standardizer v1.15)
- Updated rate control documentation with VMAF mode details
- Added vmaf_target and vmaf_samples input options
- Added ab-av1 binary detection with ABAV1_PATH env var support
2025-12-15 19:55:19 -08:00
Tdarr Plugin Developer
44fe7b50b0 Refactor stream_organizer to v4.9 - modular architecture
Major refactoring completed:
- Extracted 15+ focused helper functions from 500-line monolith
- Main plugin() function reduced from ~500 lines to ~150 lines
- Organized into logical sections: Constants, Predicates, Utilities, Analysis, Extraction, Command Building
- Zero behavior changes - all logic preserved exactly
- Improved maintainability, testability, and readability

New structure:
- categorizeStreams() - Stream analysis
- reorderStreamsByLanguage() - Language priority sorting
- analyzeSubtitleConversion() - Conversion detection
- processSubtitleExtraction() - Subtitle file extraction
- processCCExtraction() - CC handling with lock files
- buildFFmpegCommand() - Command construction
- buildCCExtractionCommand() - CC wrapper command

Benefits:
- Each function has single, clear responsibility
- Better error isolation and debugging
- Easier to understand and modify
- Prepared for future unit testing
2025-12-15 12:01:30 -08:00
Tdarr Plugin Developer
24ab5118c0 Pre-refactor checkpoint: stream_organizer v4.8
Saving state before major refactoring of stream_organizer.js.
Current version is functional - this commit allows safe rollback.
2025-12-15 12:01:16 -08:00
Tdarr Plugin Developer
aa71eb96d7 Initial commit: Tdarr plugin stack
Plugins:
- misc_fixes v2.8: Pre-processing, container remux, stream conforming
- stream_organizer v4.8: English priority, subtitle extraction, SRT conversion
- combined_audio_standardizer v1.13: AAC/Opus encoding, downmix creation
- av1_svt_converter v2.22: AV1 video encoding via SVT-AV1

Structure:
- Local/ - Plugin .js files (mount in Tdarr)
- agent_notes/ - Development documentation
- Latest-Reports/ - Error logs for analysis
2025-12-15 11:33:36 -08:00