ratoaq2 / pgsrip

Rip your PGS subtitles
MIT License
43 stars 8 forks source link

Zero byte output file and pure white png #80

Open cbusillo opened 3 months ago

cbusillo commented 3 months ago

Hi! When using pgsrip with a BD3D, Walk, the output files are 0 bytes. After a bit of digging, it appears the PgsImage class is creating an object of all 255. The rle_data appears to contain data (I don't know how to interpret it). The pgs in the mkv appear fine since the subtitles work in a player and SubtitleEdit.

I'm stuck on troubleshooting at this point. I would appreciate any help! I use pgsrip in my 3D Blu-ray to MV-HEVC (Apple Vision Pro) converter and would love to figure out why this one (and possibly others) do not work. This issue happens across different machines and with a clean macOS install. This is running on Python 3.12 on the latest macOS.

Thank you!

ratoaq2 commented 3 months ago

You have the file. Did you try debugging in an IDE?

cbusillo commented 3 months ago

I tried to step through the code, but I got lost. The sup extracted does convert to text, you can see that below. I have a zip of the .pgsrip temp folder if you would like me to send that to you for testing. So far I have only encountered the issue on "Walk". All of the languages produce the same blank white png and zero byte srt. If you are interested at looking at the temp folder, let me know how to send them. I think posting it here would be bad since it contains copy written subtitles.

Screenshot 2024-06-22 at 3 58 30 PM