question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Advanced SSA Fonts/Typesetting are not displaying correctly

See original GitHub issue

Anime SSA subtitles often have custom fonts/typesetting that alter the video (transformation, masking, etc.) PR #742 had extracting subtitles from the original video file integrated, but commented out here.

When I built it with the line uncommented and episodeId changed to mediaItemId, the subtitles does work properly with the correct fonts now being burned into the video stream.

await ExtractFonts(dbContext, mediaItemId, ffmpegPath, cancellationToken);

Is there a reason why it was commented out? It looks like it was working completely fine.

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
ZhunCncommented, Dec 10, 2022

For various different movies and tv shows, I’ve only had this pop up.

  • TAG:mimetype=application/vnd.ms-opentype
  • TAG:mimetype=application/x-truetype-font
  • TAG:mimetype=font/ttf
  • TAG:mimetype=font/otf

I think it is covered by your PR. So LGTM. Are you going to look at cleaning up the files, or just leave it in the fonts directory?

1reaction
jasongdovecommented, Dec 8, 2022

My initial guess is that I was unhappy with dumping all attachments in a fonts folder (not just fonts). Perhaps I can run a cleanup process after extraction.

Will revisit this soon, thanks for the detailed direction.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support SSA/ASS styling · Issue #8435 · google/ExoPlayer
But the ability to display fonts and colors properly would be nice!
Read more >
Plex, anime and subtitle files and questions about other ...
I am trying to watch an anime on plex, and the files I have in the folder (it's just one season) are the...
Read more >
Why are fonts not displaying correctly in Word?
Sometimes fonts do not display correctly in Word documents. ... Click Advanced - scroll down halfway and click the Font Substitution button.
Read more >
ASS subtitles are particularly popular in anime fansubbing ...
> ASS subtitles are particularly popular in anime fansubbing as it allows for advanced typesetting. Those are just "SSA" subtitles. The difference mattered...
Read more >
Certain fonts are not displaying correctly
I'm on a Windows 10 laptop and I noticed certain fonts are not displaying correctly, looks as though there is no anti aliasing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found