Comments (4)
Same issue here. I'd be happy to provide a sample file for the extracted pgs subs.
from pgsrip.
Having the same issue, too, on Ubuntu 22.04/Python 3.10:
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/pgsrip/core.py", line 69, in rip_pgs
srt = PgsToSrtRipper(p, options).rip(lambda t: rules.apply(t, '')[0])
File "/usr/local/lib/python3.10/dist-packages/pgsrip/ripper.py", line 128, in __init__
max_height = max([item.height for item in self.pgs.items]) // 2
File "/usr/local/lib/python3.10/dist-packages/pgsrip/media.py", line 161, in items
self._items = self.decode(data, self.media_path)
File "/usr/local/lib/python3.10/dist-packages/pgsrip/media.py", line 182, in decode
self.dump_display_sets(display_sets)
File "/usr/local/lib/python3.10/dist-packages/pgsrip/media.py", line 189, in dump_display_sets
f.write(f'{new_line.join([str(ds) for ds in display_sets])}')
File "/usr/local/lib/python3.10/dist-packages/pgsrip/media.py", line 189, in <listcomp>
f.write(f'{new_line.join([str(ds) for ds in display_sets])}')
File "/usr/local/lib/python3.10/dist-packages/pgsrip/pgs.py", line 449, in __str__
strings.append(f'\t{s}')
File "/usr/local/lib/python3.10/dist-packages/pgsrip/pgs.py", line 206, in __str__
for k, v in self.to_json().items():
File "/usr/local/lib/python3.10/dist-packages/pgsrip/pgs.py", line 191, in to_json
return {
File "/usr/local/lib/python3.10/dist-packages/pgsrip/pgs.py", line 192, in <dictcomp>
k: to_value(getattr(self, v)) for k, v in attributes.items() if getattr(self, v) is not None
File "/usr/local/lib/python3.10/dist-packages/pgsrip/pgs.py", line 274, in window_id
return self.data[1]
IndexError: index out of range
from pgsrip.
A sample file is needed to debug this
from pgsrip.
Related Issues (15)
- Tesseract uses a maximum of only 4 threads HOT 1
- Corrupted <PgsSubtitleItem>: Found 65508 bytes for image, but x were expected HOT 6
- Difference in reliability w/ SubtitleEdit+Tesseract? HOT 5
- Support other subtitle formats like VobSub HOT 1
- Python script usage HOT 1
- Error: invalid literal for int() HOT 5
- FileNotFoundError
- Add black/whitelist support HOT 2
- version for Python 3? HOT 2
- Filtering by track name
- Problems with stylized PGS subs on some files HOT 1
- Zero byte output file and pure white png HOT 2
- Specify output folder HOT 1
- Tesseract version? HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgsrip.