After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 540131 - textoverlay: no support for displaying multiple text buffers
textoverlay: no support for displaying multiple text buffers
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other All
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
playback
: 559642 585689 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-06-25 10:34 UTC by Benjamin Schmitz
Modified: 2018-11-03 11:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Benjamin Schmitz 2008-06-25 10:34:45 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? ;-)
Comment 1 Tim-Philipp Müller 2009-08-09 00:54:55 UTC
*** Bug 559642 has been marked as a duplicate of this bug. ***
Comment 2 Sebastian Dröge (slomo) 2011-05-20 06:41:16 UTC
*** Bug 585689 has been marked as a duplicate of this bug. ***
Comment 3 Nicolas Dufresne (ndufresne) 2015-07-24 21:57:02 UTC
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 ?
Comment 4 Andreas Frisch 2016-12-07 07:45:28 UTC
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
Comment 5 GStreamer system administrator 2018-11-03 11:14:28 UTC
-- 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.