update 1


minor fix and also here FFMPEG file location for download  https://github.com/BtbN/FFmpeg-Builds/releases


Changes Made to the Code:

1. Subtitle Format Detection

  • Added is_text_based_subtitle() function to distinguish text-based (SRT, ASS, SSA, WebVTT) from image-based (PGS, VobSub) subtitles
  • Display warning [IMAGE - Cannot convert to SRT] for image-based formats in track list

2. Pre-Extraction Validation

  • Check if selected track is text-based before attempting extraction
  • Show warning if user selects image-based subtitle format

3. Better FFmpeg Error Handling

  • Added CREATE_NO_WINDOW flag for Windows (hides console window)
  • Better parsing of FFmpeg stderr output
  • Verify output file exists and is not empty after extraction
  • Specific error messages for common issues (corrupted tracks, unsupported codecs)

4. Optimized FFmpeg Commands

  • Use -c:s copy for SRT files (faster, no conversion)
  • Use -c:s srt only for other text formats (ASS, SSA, WebVTT)

5. Improved User Experience

  • More detailed status messages showing text-based vs total subtitle count
  • Better error messages with helpful suggestions
  • Proper handling of JSON parsing errors from ffprobe

Key Fix: The main issue was using -c:s srt for all subtitle types, which fails for image-based subtitles (PGS, VobSub) that cannot be converted to text without OCR.

Files

SRT_Subtitle_Extractor.exe 10 MB
30 days ago

Get SRT subtitles extractor

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.