Commit 2f89be5
committed
Add PGS to SRT OCR subtitle extraction
Implement OCR conversion for PGS (Presentation Graphic Stream) subtitles
to SRT format using pgsrip library with auto-detection of required tools.
Features:
- Auto-detect Tesseract OCR from PATH or Subtitle Edit installations
- Auto-detect MKVToolNix (mkvextract/mkvmerge) from standard locations
- Support for multiple language codes (2-letter, 3-letter, names)
- Automatic cleanup of temporary .sup files after conversion
- Works when running FastFlix from source
Known limitation:
Due to an upstream issue in pgsrip v0.1.12, this feature does not work
in PyInstaller-built executables. Users needing PGS OCR should run
FastFlix from source with: python -m fastflix
Dependencies added:
- pgsrip (OCR engine for PGS subtitles)
- pytesseract (Tesseract OCR Python wrapper)
- babelfish (language code handling)
- cleanit, trakit (metadata handling)
- opencv-python, pysrt (image/subtitle processing)1 parent 835607e commit 2f89be5
File tree
4 files changed
+6
-71
lines changed- fastflix
- widgets
4 files changed
+6
-71
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
102 | 100 | | |
103 | 101 | | |
104 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | | - | |
| 125 | + | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 127 | + | |
137 | 128 | | |
138 | 129 | | |
139 | 130 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | 11 | | |
52 | 12 | | |
53 | 13 | | |
54 | 14 | | |
55 | 15 | | |
56 | 16 | | |
57 | | - | |
58 | 17 | | |
59 | 18 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | 19 | | |
67 | 20 | | |
68 | 21 | | |
| |||
76 | 29 | | |
77 | 30 | | |
78 | 31 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | 32 | | |
83 | 33 | | |
84 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
237 | 236 | | |
238 | 237 | | |
239 | 238 | | |
240 | 239 | | |
241 | 240 | | |
242 | | - | |
243 | 241 | | |
244 | 242 | | |
245 | 243 | | |
| |||
278 | 276 | | |
279 | 277 | | |
280 | 278 | | |
281 | | - | |
282 | | - | |
283 | 279 | | |
284 | 280 | | |
285 | 281 | | |
| |||
0 commit comments