<div dir="ltr">HI, thanks Brendan, the .SUB is indeed working.<div><br></div><div>I wasn't seeing the subtitles showing up because it is far from the beginning. I modified the SUB to  have early entry now I can see. ( The video is very short ).</div>
<div><br></div><div>Your uridecode example is really helpful.</div><div><br></div><div>Next I am trying the .IDX/.SUB format subtitle ( From what I know IDX is an index file, SUB is the subtitle images ).</div><div><br></div>
<div>I tried the gst discoverer and it reports missing plugin, any idea what plugin should be used?</div><div><br></div><div><div>[w@weiyongbang-Lenovo tutorials (master)]$ gst-discoverer-0.10 uri:///home/w/vid/subtitle/1.idx </div>
<div>Analyzing uri:///home/w/vid/subtitle/1.idx</div><div>Done discovering uri:///home/w/vid/subtitle/1.idx</div><div>Missing plugins</div></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Sat, Aug 31, 2013 at 12:51 AM, Brendan Long <span dir="ltr"><<a href="mailto:self@brendanlong.com" target="_blank">self@brendanlong.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 08/30/2013 03:33 AM, Wang Wei wrote:<br>
> Hi,<br>
><br>
> I am playing with the gstreamer tutorial "subtitle management"<br>
> (<a href="http://docs.gstreamer.com/display/GstSDK/Playback+tutorial+2%3A+Subtitle+management" target="_blank">http://docs.gstreamer.com/display/GstSDK/Playback+tutorial+2%3A+Subtitle+management</a>).<br>
><br>
> SRT is working, but I downloaded a sample .SUB file<br>
> from <a href="https://raw.github.com/GNOME/gnome-subtitles/master/etc/samples/sample.sub" target="_blank">https://raw.github.com/GNOME/gnome-subtitles/master/etc/samples/sample.sub</a><br>
> and it's not working.<br>
<br>
</div>It works for me in with a uridecodebin (or filesrc + decodebin):<br>
> $ gst-launch-1.0 uridecodebin<br>
> uri=<a href="https://raw.github.com/GNOME/gnome-subtitles/master/etc/samples/sample.sub" target="_blank">https://raw.github.com/GNOME/gnome-subtitles/master/etc/samples/sample.sub</a><br>
> ! fakesink dump=true<br>
> Setting pipeline to PAUSED ...<br>
> Pipeline is PREROLLING ...<br>
> Prerolled, waiting for buffering to finish...<br>
> Pipeline is PREROLLED ...<br>
> Setting pipeline to PLAYING ...<br>
> 00000000 (0x7f33200de330): 3c 73 70 61 6e 3e 54 68 65 20 71 75 69 63<br>
> 6b 20  <span>The quick<br>
> 00000010 (0x7f33200de340): 62 72 6f 77 6e 20 66 6f 78 20 6a 75 6d 70<br>
> 73 20  brown fox jumps<br>
> 00000020 (0x7f33200de350): 6f 76 65 72 20 74 68 65 20 6c 61 7a 79 20<br>
> 64 6f  over the lazy do<br>
> 00000030 (0x7f33200de360): 67 2e 3c 2f 73 70 61 6e<br>
> 3e                       g.</span><br>
> New clock: GstSystemClock<br>
> 00000000 (0x7f3328006750): 3c 73 70 61 6e 3e 7b 59 3a 75 62 69 7d 54<br>
> 68 65  <span>{Y:ubi}The<br>
> 00000010 (0x7f3328006760): 20 71 75 69 63 6b 20 62 72 6f 77 6e 20 66<br>
> 6f 78   quick brown fox<br>
> 00000020 (0x7f3328006770): 20 6a 75 6d 70 73 20 6f 76 65 72 20 74 68<br>
> 65 20   jumps over the<br>
> 00000030 (0x7f3328006780): 6c 61 7a 79 20 64 6f 67 2e 3c 2f 73 70 61<br>
> 6e 3e  lazy dog.</span><br>
> 00000040 (0x7f3328006790): 0a 3c 73 70 61 6e 3e 53 61 6d 70 6c 65 20<br>
> 73 75  .<span>Sample su<br>
> 00000050 (0x7f33280067a0): 62 74 69 74 6c 65 20 6c 69 6e 65 20 32 2e<br>
> 3c 2f  btitle line 2.</<br>
> 00000060 (0x7f33280067b0): 73 70 61 6e<br>
> 3e                                   span><br>
> [etc.]<br>
(this also works for me with gst-launch-0.10, or gst-git gst-launch-1.0)<br>
<br>
It's possible something is wrong with your code, or with playbin.<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><br>Best regards,<br>Wang Wei
</div>