GNOME Bugzilla – Bug 721055
textoverlay: support out-of-video subtitles
Last modified: 2018-11-03 11:27:11 UTC
Subtitles in the black bars - are easier to read - don't obscure the video totem insists on rendering the subtitles into the video
This is a limitation of playbin in GStreamer.
That actually depends on the video sink. Which one is used here and is the video sink adding the black borders? cluttersink and xvimagesink will do that, and then GStreamer has no way to draw over the black borders. For sinks that don't do that (ximagesink for example), this could be fixed by putting the subtitle overlaying after the videoscale in playsink. Just that this seems not very useful these days as all useful sinks do the black borders and scaling themselves. For cluttersink, totem could implement its own text-sink and overlay the text itself via clutter API.
This ultimately depends on API to move the overlaying into the application.
(In reply to comment #2) > For cluttersink, totem could implement its own text-sink and overlay the text > itself via clutter API. The clutter sink could also implement an overlaying mechanism similar to what we do (or used to do) in VA sink. This let the sink negotiate proper buffer size with the text renderer.
We could technically do this with the overlaying system. textoverlay knows the target screen resolution, so you could specify coordinates that exceed the video size and end up out of "video". The problem is right now it's discarded.
-- 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/99.