GNOME Bugzilla – Bug 540131
textoverlay: no support for displaying multiple text buffers
Last modified: 2018-11-03 11:14:28 UTC
Please describe the problem: After receiving a text buffer, textoverlay waits until it has expired before accepting a new one. That way, textoverlay can only display one text event (or rather: the contents of one text buffer) at a time. Several subtitle formats have support for multiple simultaneous lines or text events, like ASS or SRT. Steps to reproduce: Just play some file with ASS or SRT subs, where there are multiple lines of text to be displayed simultaneously. Actual results: Only the text buffer that is received first is actually displayed. All others that should be displayed simultaneously are DROPPED and not displayed at all. Expected results: Textoverlay should be able to display the contents of more than one text buffer at a time. Of course, this means that it is also necessary to implement collision detection, so that multiple lines of text won't overlap. Does this happen every time? Other information: The direction of the shift for collision detection depends on the current setting for the vertical alignment. When subtitles are aligned at bottom, any additional lines of text shall be shifted upward, so that they won't overlap with what's already being displayed. When subtitles are aligned at top, additional lines shall be shifted downward. Not sure what to do with centered subtitles, but who uses that anyway? ;-)
*** Bug 559642 has been marked as a duplicate of this bug. ***
*** Bug 585689 has been marked as a duplicate of this bug. ***
This seems doable, at least in textoverlay. It uses the OverlayComposition API which supports multiple rectangle. The rest is about adding/removing the rectangle, and dealing with the placement. What is suppose to happen when there is more subtitle then space on screen ? Also, we don't seem to elipsize, are we suppose to ?
This is still a major issue when trying to watch Animé videos where there are frequently multiple ASS subtitles frames shown. I'd wanted to tackle this at hackfest but then rtmp2 got into my way :) Here's a good sample though: http://dreambox.guru/bug540131_multiple_subtitles_Bungou_Stray_Dogs_S01_E01.mkv
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/issues/15.