[Bug 758232] Add support for EBU-TT-D / TTML subtitles

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Aug 19 11:01:59 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=758232

Sanjay <sanjayg417 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sanjayg417 at gmail.com

--- Comment #34 from Sanjay <sanjayg417 at gmail.com> ---
Hi Chris,
Compiled this plugin with gst-plugins-bad-1.8.1 and tried to run the following
pipeline:
#gst-launch-1.0 souphttpsrc
location="http://dash.edgesuite.net/dash264/TestCases/4b/qualcomm/1/English_track.xml"
! ttmlparse ! ttmlrender

Getting the following error:

Setting pipeline to PAUSED ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
any_doc_name:41: parser error : AttValue: " or ' expected
                        <p begin="00:04:27:00" end=
                                                   ^
any_doc_name:41: parser error : attributes construct error
                        <p begin="00:04:27:00" end=
                                                   ^
any_doc_name:41: parser error : Couldn't find end of Start Tag p line 41
                        <p begin="00:04:27:00" end=
                                                   ^
any_doc_name:41: parser error : Premature end of data in tag div line 16
                        <p begin="00:04:27:00" end=
                                                   ^
any_doc_name:41: parser error : Premature end of data in tag body line 15
                        <p begin="00:04:27:00" end=
                                                   ^
any_doc_name:41: parser error : Premature end of data in tag tt line 2
                        <p begin="00:04:27:00" end=
                                                   ^
any_doc_name:1: parser error : Start tag expected, '<' not found
"00:04:28:28" tts:textAlign="center">Well, don't you ever get tired of
this?</p>
^
any_doc_name:1: parser error : Start tag expected, '<' not found
00:07:36:27" tts:textAlign="center">Well can you tell me that?</p>

This xml url is basically the ttml subtitle url taken from Dash mpd url
"http://dash.edgesuite.net/dash264/TestCases/4b/qualcomm/1/ED_OnDemand_5SecSeg_Subtitles.mpd". 
Further debugging shows that souphttpsrc is reading this xml network file and
sending the read data downstream in GstBuffer and ttmlparse element is unable
to parse this buffer data because buffer contains partial xml file without
closing tags. in this case, if complete file is read and send into gstbuffer
then this will be valid xml file.
is it expected to handle this use case in ttmlparse element? how to deal with
this use case? Please let me know if you want more details.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list