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



我安装了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。

糟糕地寻求帮助。提前谢谢。

缺少元素: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?如果没有结果,请尝试重新安装插件。

相关内容

最新更新