After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 684424 - playbin: external subtitles break playback
playbin: external subtitles break playback
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
1.x
Other Linux
: Normal normal
: 1.0.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-09-20 07:30 UTC by Andreas Frisch
Modified: 2012-09-26 11:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
modified version of playbin-text, takes filename instead of uri. automatically sets suburi property if an srt file is found (5.51 KB, text/x-csrc)
2012-09-20 07:30 UTC, Andreas Frisch
Details

Description Andreas Frisch 2012-09-20 07:30:38 UTC
Created attachment 224810 [details]
modified version of playbin-text, takes filename instead of uri. automatically sets suburi property if an srt file is found

this modified version of playbin-text looks for an external subtitle file (with same filename as the supplied video container parameter and just the extension replaced by ".srt")
it should then behave exactly as internal text/x-raw, dumping each subtitle line when the sample is pulled from the appsink
instead though, the video playback doesn't even start
also, it complains that there is no subtitle decoder element (if it's missing, but it shouldn't be needed since it's supposed to handle the raw text directly anyway, i think the timing format of the srt file should be handled by the ssaparse plugin)
ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin1: No decoder available for type 'application/x-subtitle'.

example files:
ftp://93.31.155.175/pub/RedFox/Plasma/DivXTest/DivXTest_v2/J_SUBTITLES/SUB-01.avi
ftp://93.31.155.175/pub/RedFox/Plasma/DivXTest/DivXTest_v2/J_SUBTITLES/SUB-01.srt
Comment 1 Wim Taymans 2012-09-26 11:33:09 UTC
I also changed the playbin-text sample to take the uri of the subtitle.

commit 701424be9b18e5c06b87ead144ab540fc7020e01
Author: Wim Taymans <wim.taymans@collabora.co.uk>
Date:   Wed Sep 26 13:19:13 2012 +0200

    typefind: send STREAM-START event
    
    Send a STREAM_START event when we are operating in pull mode.
    
    Fixes https://bugzilla.gnome.org/show_bug.cgi?id=684424