2017-02-24 63 views
0

使用GStreamer的過濾器根據Kurento文檔:http://doc-kurento.readthedocs.io/en/stable/mastering/kurento_API.html究竟是Kurento媒體服務器

GstreamerFilter是一個通用的過濾器接口,允許Kurento介質管道使用的GStreamer過濾器。

我試圖找到的Gstreamer對谷歌過濾,所有我發現了的Gstreamer插件。 (https://gstreamer.freedesktop.org/documentation/plugin-development/advanced/

這是否意味着我可以使用Kurento的Gstreamer過濾器,添加插件,如rtph264depay和rtmpsink呢?

WebRTC endpoint > RTP Endpoint > (rtph264depay) Gstreamer filter (rtmpsink) > RTMP server. 

所有沒有安裝的Gstreamer分開?

回答

0

GstreamerFilter允許您使用本機GStreamer過濾器配置過濾器(與使用gst-launch-1.0時相同)。 PLE,以下Kurento過濾器允許水平的媒體內KMS旋轉:

GStreamerFilter filter = new GStreamerFilter.Builder(pipeline, "videoflip method=horizontal-flip").build(); 

說,和關於你的問題,在我所知的,我想是這樣,你可以使用GstreamerFilter使用rtph264depay和rtmpsink 。

+0

太好了,謝謝澄清。 – user3172852

+0

Hello Boni,有沒有GStreamFilter提供的所有這些功能的任何文檔?正在努力尋找臉部數量。 –

+0

事實上,沒有太多關於它的文檔,對不起。據我所知,目前只有[JavaDoc](https://doc-kurento.readthedocs.io/en/latest/_static/langdoc/javadoc/index.html)和[JsDoc](https: GStreamerFilter的//doc-kurento.readthedocs.io/en/latest/_static/langdoc/jsdoc/kurento-client-js/node_modules_kurento-client-filters_lib_GStreamerFilter.js.html)。 –

1

博尼加西亞的代碼是正確的。

但是,如果您將「videoflip method = horizo​​ntal-flip」替換爲「rtmpsink location = rtmp://deque.me/live/test01」,您將收到一條錯誤消息:「給定的命令無效,填充模板不匹配」。

你可以去更深從https://github.com/Kurento/kms-filters檢查公里過濾器的源代碼,在公里濾波器/ src目錄/服務器/實施/對象/ GStreamerFilterImpl.cpp有一行:

 99  throw KurentoException (MARSHALL_ERROR, 
    100        "Given command is not valid, pad templates does not match"); 

我怕你使用GstreamerFilter發送數據到rtmp服務器,也許你應該修改源代碼。

相關問題