Comment 0 for bug 534561

Revision history for this message
Onkar Shinde (onkarshinde) wrote :

Even though the kate decoder plugin is installer it is not detected by gstreamer and/or dependent applications. The file I was trying to play is at [1].

onkar@iBook:~$ gst-inspect-0.10 katedec|head -35

(gst-inspect-0.10:28957): GLib-WARNING **: g_set_prgname() called multiple times
Factory Details:
  Long name: Kate stream text decoder
  Class: Codec/Decoder/Subtitle
  Description: Decodes Kate text streams
  Author(s): Vincent Penquerc'h <email address hidden>
  Rank: none (0)

Plugin Details:
  Name: kate
  Description: Kate plugin
  Filename: /usr/lib/gstreamer-0.10/libgstkate.so
  Version: 0.10.14
  License: LGPL
  Source module: gst-plugins-bad
  Binary package: GStreamer Bad Plugins (Ubuntu)
  Origin URL: https://launchpad.net/distros/ubuntu/+source/gst-plugins-bad0.10

GObject
 +----GstObject
       +----GstElement
             +----GstKateDec

Pad Templates:
  SINK template: 'sink'
    Availability: Always
    Capabilities:
      subtitle/x-kate

  SRC template: 'src'
    Availability: Always
    Capabilities:
      text/plain
      text/x-pango-markup
      video/x-dvd-subpicture

Here is the output I get when trying to play the file with subtitles in kate format using playbin.
onkar@iBook:~/programs$ gst-launch-0.10 playbin2 uri=file:///home/onkar/Desktop/Stephen_Fry-Happy_Birthday_GNU-nq_600px_425kbit.ogv

(gst-launch-0.10:23528): GLib-WARNING **: g_set_prgname() called multiple times
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
WARNING: from element /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0: No decoder available for type 'subtitle/x-kate'.
Additional debug info:
gsturidecodebin.c(627): unknown_type_cb (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0
WARNING: from element /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0: No decoder available for type 'subtitle/x-kate'.
Additional debug info:
gsturidecodebin.c(627): unknown_type_cb (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstPulseSinkClock

Also find attached the screenshot of totem's plugin search when I try to play the file.

The problem seems to be because katedec does not have a rank assigned. Hence playbin does not automatically plug the decoder. This was changed in upstream git at [2]. If someone can confirm that this works in latest updated Lucid, I will work on SRU for karmic.

[1] http://stallman.org/fry/Stephen_Fry-Happy_Birthday_GNU-nq_600px_425kbit.ogv
[2] http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=23e07bc1974bfa67878013fe7325eb60b0b757ab

ProblemType: Bug
Architecture: powerpc
Date: Mon Mar 8 23:56:02 2010
DistroRelease: Ubuntu 9.10
Package: gstreamer0.10-plugins-bad 0.10.14-4ubuntu1
ProcEnviron:
 LANG=en_IN
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-19.56-powerpc
SourcePackage: gst-plugins-bad0.10
Uname: Linux 2.6.31-19-powerpc ppc