GNOME Bugzilla – Bug 787942
ttmlparse: Doesn't implement default showBackground behaviour
Last modified: 2017-10-19 14:00:14 UTC
Created attachment 360130 [details] TTML file demonstrating the problem In TTML the default value of the tts:showBackground attribute is "always", meaning that region backgrounds that don't have showBackground explicitly set should be always visible, even when no text is rendered into them. However, code in ttmlparse that assigns begin/end times to regions breaks this default behaviour. Attached is a file which demonstrates the problem. The top region background should be visible at all times, even when no text is rendered into the region. You can view it with the following command: gst-launch-1.0 ttmlrender name=r videotestsrc pattern="gradient" ! video/x-raw,width=1280,height=720 ! autovideoconvert ! r.video_sink filesrc blocksize=16777216 location=showBackground-default.xml ! ttmlparse ! r.text_sink r. ! ximagesink
Created attachment 360131 [details] [review] Ensure default showBackground behaviour is observed
commit 3d2f004db23edecbdb4b0270266d3f93840d6e2a (HEAD -> master) Author: Chris Bass <floobleflam@gmail.com> Date: Tue Sep 19 15:37:42 2017 +0100 ttmlparse: Ensure default showBackground behaviour is enacted Ensure that region backgrounds are always show when tts:showBackground is not explicitly set, in accordance with the default behavour given in the TTML spec. https://bugzilla.gnome.org/show_bug.cgi?id=787942