GNOME Bugzilla – Bug 684424
playbin: external subtitles break playback
Last modified: 2012-09-26 11:33:09 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
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