
Security News
Feross on TBPN: Socket's Series C and the State of Software Supply Chain Security
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.
vobsub-to-srt
Advanced tools
Convert VobSub (IDX/SUB) subtitle files to SRT format using FFmpeg and Mac System OCR.
Convert VobSub (IDX/SUB) subtitle files to SRT format using FFmpeg and Mac System OCR. This approach has some benefits over vobsub2srt and vobsubocr in that Mac System OCR is generally more fast, accurate and built-in.
This tool provides a complete solution for converting VobSub bitmap subtitles (commonly found on DVDs) to text-based SRT subtitle files. It handles the entire workflow:
npm install -g vobsub-to-srt
After global installation, you can use the vobsub-to-srt command anywhere:
vobsub-to-srt -i input.idx -o output.srt
npm install vobsub-to-srt
Then run using npx:
npx vobsub-to-srt -i input.idx -o output.srt
vobsub-to-srt -i path/to/subtitles.idx -o path/to/output.srt
vobsub-to-srt -i subtitles.idx -o subtitles.srt -v
| Option | Short | Description | Required |
|---|---|---|---|
--input | -i | Path to the input IDX file | ✅ Yes |
--output | -o | Path for the output SRT file | ✅ Yes |
--quality | -q | OCR quality: 'fast' or 'accurate' (default: fast) | ❌ No |
--verbose | -v | Enable verbose logging | ❌ No |
--help | -h | Show help information | ❌ No |
VobSub to SRT Decoder
=====================
Input IDX file: /path/to/movie.idx
Output SRT file: /path/to/movie.srt
Verbose logging: enabled
Reading IDX file...
Video size: 720x480
Palette: 16 colors
Language: en
Parsed 342 subtitle entries
Extracting subtitle frames using FFmpeg...
Extracted 342 subtitle frames
Starting batch OCR processing...
Processing 342 frames with MacOCR batch processing...
OCR batch processing completed. Processing results...
✅ Conversion complete!
📊 Statistics:
- Parsed 342 timing entries from IDX
- Extracted 342 subtitle frames using FFmpeg
- Generated 338 SRT entries via OCR
📁 SRT Output: /path/to/movie.srt
Your VobSub files should include both:
The SUB file must be in the same directory as the IDX file and have the same filename (e.g., movie.idx and movie.sub).
HH:MM:SS,mmm)You can also use this package programmatically:
import { VobSubDecoder } from "@bigtimebuddy/vobsub-to-srt";
const decoder = new VobSubDecoder({
idxFile: "subtitles.idx",
subFile: "subtitles.sub",
verbose: true,
});
// Parse IDX file
await decoder.parse();
// Process with OCR (timeline and frame extraction are handled internally)
const srtEntries = await decoder.processFrames({
tempDir: "/tmp/frames",
quality: "fast",
});
// Generate SRT file
await decoder.generate(srtEntries, "output.srt");
"Cannot access SUB file"
movie.idx and movie.sub)"No text could be extracted"
-v) to see processing details"This tool is only supported on macOS"
git clone https://github.com/bigtimebuddy/vobsub-to-srt.git
cd vobsub-to-srt
npm install
npm test
MIT
Contributions are welcome! Please feel free to submit issues and pull requests.
FAQs
Convert VobSub (IDX/SUB) subtitle files to SRT format using FFmpeg and Mac System OCR.
We found that vobsub-to-srt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.

Security News
OSV withdrew 157 OSV malware reports after automated false positives incorrectly flagged trusted npm and PyPI packages, sending bad records into tools that rely on OSV data.

Research
/Security News
TrapDoor crypto stealer hits 36 malicious packages across npm, PyPI, and Crates.io, targeting crypto, DeFi, AI, and security developers.