Yes – it’s 100 % doable, and you don’t need any closed-source tools.
Below is a complete, reproducible recipe that works on an Unraid box with Docker.
We’ll use:
• vobsub2srt (GPL-3) → actually performs the SUB/IDX → SRT conversion with OCR (Tesseract).
• Tesseract OCR (Apache-2) + language packs.
• A tiny Bash wrapper so you can just drop SUB/IDX pairs in a folder and get SRTs back.
───────────────
Build / pull a Docker image
───────────────
Option A – pull a ready-made image (fastest)
bash
docker pull ghcr.io/codebrainz/vobsub2srt:latest
Option B – DIY image (useful if you want extra languages)
───────────────
2. Create the Bash helper script
───────────────
bash
#!/usr/bin/env bash
# file: convert_subidx_to_srt.sh
# Usage: ./convert_subidx_to_srt.sh /path/to/subtitles [lang_code]
set -euo pipefail
IN_DIR="${1:-/mnt/user/Media/Subtitles}"
LANG="${2:-eng}"
IMAGE="ghcr.io/codebrainz/vobsub2srt:latest" # change if you built your own
# IMAGE="my/subconv"
echo "➜ Scanning ${IN_DIR} for *.idx/*.sub pairs …"
find "$IN_DIR" -type f -name '*.idx' | while read -r IDX; do
BASE="${IDX%.idx}"
SUB="${BASE}.sub"
SRT="${BASE}.srt"
[[ -f "$SUB" ]] || { echo "✗ Missing ${SUB}; skipping"; continue; }
[[ -f "$SRT" ]] && { echo "✓ ${SRT} already exists; skipping"; continue; }
echo "→ Converting $(basename "$BASE") …"
docker run --rm \
-v "$IN_DIR":"$IN_DIR":rw \
"$IMAGE" \
vobsub2srt "${IDX}" -l "$LANG" -o "${SRT}" --overwrite
echo "✔ Created $(basename "$SRT")"
done
Make it executable:
bash
chmod +x convert_subidx_to_srt.sh
───────────────
3. Put it on Unraid & schedule it (optional)
───────────────
• Copy the script to /boot/config/plugins/user.scripts/scripts/ so it’s visible in the User Scripts plugin.
• Give Docker’s root user access to the share that stores your subtitles (/mnt/user/Media/Subtitles in the example).
• Use User Scripts or Unraid’s built-in cron (crontab -e) to run, e.g. every night:
• For every movie.idx + movie.sub pair, a movie.srt appears in the same directory.
• OCR language defaults to English; pass spa, fra, por, etc., as the 2nd parameter if needed.
• If you want multiple OCR passes, you can chain them:
bash
... vobsub2srt movie.idx -l eng+spa -o movie.srt
───────────────
5. Caveats / tips
• OCR is never 100 % perfect. Skim the resulting .srt or throw them into SubtitleEdit’s spell-check for a quick pass.
• Some DVDs use weird palettes → you can manually specify a palette with --palette if colors look off, but most discs are fine.
• Speed: a single 90-min VobSub typically finishes in 30-60 seconds on a decent CPU.