Gstreamer 1.0错误:缺少元素:HTTP协议源

时间:2015-02-27 05:30:32

标签: gstreamer

我已经安装了gstreamer 1.0,包含基础,优秀,丑陋和糟糕的插件。当我使用以下命令运行以下命令时:

gst-launch-1.0 playbin     uri=http://-somr url to video src-

它给了我以下错误:

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
Missing element: HTTP protocol source
ERROR: from element /GstURIDecodeBin:uridecodebin0: No URI handler   implemented for "http".
Additional debug info:
gsturidecodebin.c(1416): gen_source_element (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0
Setting pipeline to NULL ...
Freeing pipeline ...

我是新手,并为gstreamer-0.10找到了大多数解决方案,这对我来说无效。顺便说一下,我使用的是ubuntu 14.04。

非常寻求帮助。 提前谢谢。

1 个答案:

答案 0 :(得分:1)

  

缺少元素:HTTP协议源

并且

 no_source:
  {
    /* whoops, could not create the source element, dig a little deeper to
     * figure out what might be wrong. */
    if (err != NULL && err->code == GST_URI_ERROR_UNSUPPORTED_PROTOCOL) {
      gchar *prot;

      prot = gst_uri_get_protocol (decoder->uri);
      if (prot == NULL)
        goto invalid_uri;

      gst_element_post_message (GST_ELEMENT_CAST (decoder),
          gst_missing_uri_source_message_new (GST_ELEMENT (decoder), prot));

      GST_ELEMENT_ERROR (decoder, CORE, MISSING_PLUGIN,
          (_("No URI handler implemented for \"%s\"."), prot), (NULL));

      g_free (prot);
    } else {
      GST_ELEMENT_ERROR (decoder, RESOURCE, NOT_FOUND,
          ("%s", (err) ? err->message : "URI was not accepted by any element"),
          ("No element accepted URI '%s'", decoder->uri));
    }

    g_clear_error (&err);
    return NULL;
  }

意味着您的gstreamer安装有问题,您错过了http客户端源插件。试试gst-inspect-1.0 souphttpsrc?如果没有结果,请尝试重新安装plugin-good。