简体   繁体   English

如何获取由gst-launch或gstreamer管道编辑器创建的应用程序代码?

[英]How can i get the application code created by gst-launch or gstreamer pipeline editor?

see if i have made one application like below by gst-launch commnad 看看我是否通过gst-launch commnad创建了一个类似下面的应用程序

gst-launch -v filesrc location=ed_hd.mkv ! matroskademux ! vorbisdec ! audioconvert ! audioresample ! autoaudiosink

when ever i type this on my console application start to work but i want to see the source code of this pipeline created by this command. 什么时候我在我的控制台应用程序上键入它开始工作,但我想看到此命令创建此管道的源代码。

1> So is there any way so i get the created pipeline/application code ? 1>那么有没有办法让我获得创建的管道/应用程序代码?

see when ever we create any application we got one executable file so by running that we can run program. 看我们什么时候创建任何应用程序,我们有一个可执行文件,所以通过运行我们可以运行程序。

2> so how can i get that executable file from application created by gst-launch or gstreamer pipeline editor ? 2>那么如何从gst-launch或gstreamer管道编辑器创建的应用程序中获取该可执行文件?

In fact gst-launch doesnt create any sourecode if that was what you were assuming. 实际上gst-launch不会创建任何sourecode,如果这是你所假设的。

Instead it uses the gstreamer function gst-parse-launchv to create the pipeline from the string the user passed to gst-launch via the commandline. 相反,它使用gstreamer函数gst-parse-launchv从用户通过命令行传递给gst-launch的字符串创建管道。

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstParse.html#gst-parse-launchv http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstParse.html#gst-parse-launchv

So if you dont want to manually write down the sourcecode for constructing a gstreamer pipeline you are free to call this gstreamer function from your code and let it parse any arbitrary pipeline description that you would normally give to gst-launch on the commandline. 因此,如果您不想手动写下用于构造gstreamer管道的源代码,您可以自由地从代码中调用此gstreamer函数,并让它解析您通常在命令行上为gst-launch提供的任意管道描述。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM