Login
You're viewing the mstdn.social public feed.

Replies

  • Jun 24, 2026, 5:20 PM

    My favourite bit to code in that project was the PGS (Presentation Graphic Stream) parser, which is the format used for subtitles on Bluray discs.

    It's basically a stream of transparent images with text. It's a binary format using run length encoding for the image data. It's the first time I've processed raw binary streams with Python, and it was a lot easier than I expected.

    github.com/vkbo/Subtle/blob/ma

    #Python #Code

    💬 1🔄 3⭐ 1
  • Jun 24, 2026, 5:24 PM

    I found another Python project parsing this, but I didn't like the implementation, so I started from scratch with a blog post describing the format as a reference, as well as a few files from some Blurays in my collection. I eventually found out all the quirks and various ways the format is used in practice, I hope, so it's been a while since the parser threw any errors.

    💬 0🔄 0⭐ 0