playbin2 "suburi" subtitle format support

Wang Wei wang0109 at gmail.com
Sun Sep 1 18:33:54 PDT 2013


HI, thanks Brendan, the .SUB is indeed working.

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 ).

Your uridecode example is really helpful.

Next I am trying the .IDX/.SUB format subtitle ( From what I know IDX is an
index file, SUB is the subtitle images ).

I tried the gst discoverer and it reports missing plugin, any idea what
plugin should be used?

[w at weiyongbang-Lenovo tutorials (master)]$ gst-discoverer-0.10
uri:///home/w/vid/subtitle/1.idx
Analyzing uri:///home/w/vid/subtitle/1.idx
Done discovering uri:///home/w/vid/subtitle/1.idx
Missing plugins




On Sat, Aug 31, 2013 at 12:51 AM, Brendan Long <self at brendanlong.com> wrote:

> On 08/30/2013 03:33 AM, Wang Wei wrote:
> > Hi,
> >
> > I am playing with the gstreamer tutorial "subtitle management"
> > (
> http://docs.gstreamer.com/display/GstSDK/Playback+tutorial+2%3A+Subtitle+management
> ).
> >
> > SRT is working, but I downloaded a sample .SUB file
> > from
> https://raw.github.com/GNOME/gnome-subtitles/master/etc/samples/sample.sub
> > and it's not working.
>
> It works for me in with a uridecodebin (or filesrc + decodebin):
> > $ gst-launch-1.0 uridecodebin
> > uri=
> https://raw.github.com/GNOME/gnome-subtitles/master/etc/samples/sample.sub
> > ! fakesink dump=true
> > Setting pipeline to PAUSED ...
> > Pipeline is PREROLLING ...
> > Prerolled, waiting for buffering to finish...
> > Pipeline is PREROLLED ...
> > Setting pipeline to PLAYING ...
> > 00000000 (0x7f33200de330): 3c 73 70 61 6e 3e 54 68 65 20 71 75 69 63
> > 6b 20  <span>The quick
> > 00000010 (0x7f33200de340): 62 72 6f 77 6e 20 66 6f 78 20 6a 75 6d 70
> > 73 20  brown fox jumps
> > 00000020 (0x7f33200de350): 6f 76 65 72 20 74 68 65 20 6c 61 7a 79 20
> > 64 6f  over the lazy do
> > 00000030 (0x7f33200de360): 67 2e 3c 2f 73 70 61 6e
> > 3e                       g.</span>
> > New clock: GstSystemClock
> > 00000000 (0x7f3328006750): 3c 73 70 61 6e 3e 7b 59 3a 75 62 69 7d 54
> > 68 65  <span>{Y:ubi}The
> > 00000010 (0x7f3328006760): 20 71 75 69 63 6b 20 62 72 6f 77 6e 20 66
> > 6f 78   quick brown fox
> > 00000020 (0x7f3328006770): 20 6a 75 6d 70 73 20 6f 76 65 72 20 74 68
> > 65 20   jumps over the
> > 00000030 (0x7f3328006780): 6c 61 7a 79 20 64 6f 67 2e 3c 2f 73 70 61
> > 6e 3e  lazy dog.</span>
> > 00000040 (0x7f3328006790): 0a 3c 73 70 61 6e 3e 53 61 6d 70 6c 65 20
> > 73 75  .<span>Sample su
> > 00000050 (0x7f33280067a0): 62 74 69 74 6c 65 20 6c 69 6e 65 20 32 2e
> > 3c 2f  btitle line 2.</
> > 00000060 (0x7f33280067b0): 73 70 61 6e
> > 3e                                   span>
> > [etc.]
> (this also works for me with gst-launch-0.10, or gst-git gst-launch-1.0)
>
> It's possible something is wrong with your code, or with playbin.
>
>


-- 

Best regards,
Wang Wei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130902/7f1d896e/attachment.html>


More information about the gstreamer-devel mailing list