Skip to content

Tips and Tricks

Best Practices

Directory Organization

Organize your files consistently:

TV Shows/
├── Show Name/
│   ├── Season 1/
│   │   ├── episode1.mkv
│   │   └── episode2.mkv
│   └── Season 2/
│       ├── episode1.mkv
│       └── episode2.mkv

Performance & Accuracy

  1. Confidence Threshold

    # Increase matching accuracy (default: 0.7)
    mkv-match --show-dir "/path/to/show" --confidence 0.8
    
    Start with a higher value and decrease if needed. Lower values may result in false positives.

  2. Batch Processing with Progress The tool now shows detailed progress for each season:

    mkv-match --show-dir "/path/to/show"
    

  3. Speech Recognition

  4. Uses Whisper for audio analysis
  5. Processes files in parallel for speed
  6. Shows real-time progress with completion estimates

Advanced Usage

Testing Changes

Always use dry-run first:

mkv-match --show-dir "/path/to/show" --dry-run true

Debug Output

Enable verbose logging:

mkv-match --show-dir "/path/to/show" -v

Log Files

Check the logs at:

~/.mkv-episode-matcher/logs/
├── stdout.log  # General operation logs
└── stderr.log  # Error and warning logs

Troubleshooting

Common Issues

  1. File Permission Errors

    # Check file permissions
    chmod -R 644 "/path/to/show"
    

  2. API Rate Limits

  3. Use rate limiting in configuration
  4. Implement exponential backoff

  5. Speech Recognition

  6. GPU recommended for faster processing
  7. Processing happens in 30s intervals
  8. More accurate than OCR-based methods

  9. Low Confidence Matches

  10. Increase confidence threshold
  11. Check reference subtitles for accuracy

  12. No Matches Found

  13. Verify file organization
  14. Check reference subtitles
  15. Enable verbose output

  16. Performance Issues

  17. Process one season at a time
  18. Check available disk space
  19. Monitor system resources