【问题标题】:Gstreamer 1.0 error: Missing element: HTTP protocol sourceGstreamer 1.0 错误:缺少元素:HTTP 协议源
【发布时间】:2015-02-27 05:30:32
【问题描述】:

我已经安装了带有基本、好、丑和坏插件的 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。

急于寻求帮助。 提前致谢。

【问题讨论】:

    标签: gstreamer


    【解决方案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。

    【讨论】:

    • 其实问题出在安装上。如果您没有安装它们的依赖项,则某些插件不会在 make 期间编译。运行 autogen.sh 后,您必须检查哪些插件已安装,哪些未安装。再次感谢 cxphong 的评论。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-05-17
    • 2014-10-22
    • 2016-09-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多