GNOME Bugzilla – Bug 621071
[playbin2] no playback with fakesink instead of appsink as text-sink
Last modified: 2010-06-10 11:08:59 UTC
when changing in the playbin-text icle the lins /* set appsink to get the subtitles */ app->textsink = gst_element_factory_make ("appsink", "subtitle_sink"); g_object_set (G_OBJECT (app->textsink), "emit-signals", TRUE, NULL); g_object_set (G_OBJECT (app->textsink), "ts-offset", 0 * GST_SECOND, NULL); g_signal_connect (app->textsink, "new-buffer", G_CALLBACK (have_subtitle), app); g_object_set (G_OBJECT (app->playbin), "flags", 0x45, NULL); g_object_set (G_OBJECT (app->playbin), "text-sink", app->textsink, NULL); g_object_set (G_OBJECT (app->textsink), "caps", gst_caps_from_string("text/x-pango-markup; text/plain; text/x-plain"), NULL); to instead be: app->textsink = gst_element_factory_make ("fakesink", "subtitle_sink"); g_object_set (G_OBJECT (app->textsink), "sync", TRUE, NULL); g_object_set (G_OBJECT (app->textsink), "dump", TRUE, NULL); g_object_set (G_OBJECT (app->playbin), "text-sink", app->textsink, NULL); then i get <videosink> warning: Failed to find a usable video sink logiles (6 mb) and example mkv file available upon request
logs can be found at http://www.opendreambox.org/~fraxinas/logs-textsink.tar.bz2 sample file available at http://www.opendreambox.org/~fraxinas/subtest.mkv
Thanks, found the bug and will fix it soonish.
commit 2b9670958d1afb79713b216285cf15a6d0ac2797 Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Thu Jun 10 08:47:17 2010 +0200 playbin2: If the text-sink claims to support ANY caps assume it only support Fixes bug #621071. commit ac0f387addf4df7f75a74b54040c952fd4d45333 Author: Sebastian Dröge <sebastian.droege@collabora.co.uk> Date: Thu Jun 10 08:46:50 2010 +0200 icles: Only accept plain subtitles in the playbin-text icles test