playbin2 "suburi" subtitle format support
Brendan Long
self at brendanlong.com
Fri Aug 30 09:51:08 PDT 2013
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 555 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130830/d3bb341c/attachment.pgp>
More information about the gstreamer-devel
mailing list