如何获取 gst-launch 或 gstreamer 管道编辑器创建的应用程序代码?
看看我是否通过 gst-launch commnad 制作了一个如下所示的应用程序,
gst-launch -v filesrc location=ed_hd.mkv ! matroskademux ! vorbisdec ! audioconvert ! audioresample ! autoaudiosink
当我在控制台应用程序上键入此内容时,该应用程序开始工作,但我想查看由该命令创建的该管道的源代码。
1>那么有没有什么方法可以让我获得创建的管道/应用程序代码?
看看每当我们创建任何应用程序时,我们都会得到一个可执行文件,这样通过运行我们就可以运行程序。
2>那么我如何从 gst-launch 或 gstreamer 管道编辑器创建的应用程序中获取该可执行文件?
see if i have made one application like below by 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 ?
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 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
事实上,如果您假设的是这样的话,gst-launch 不会创建任何源代码。
相反,它使用 gstreamer 函数 gst-parse-launchv 从用户通过命令行传递给 gst-launch 的字符串创建管道。
http://gstreamer .freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstParse.html#gst-parse-launchv
所以如果你不这样做如果想要手动写下用于构建 gstreamer 管道的源代码,您可以从代码中自由调用此 gstreamer 函数,并让它解析您通常在命令行上提供给 gst-launch 的任何任意管道描述。
In fact gst-launch doesnt create any sourecode if that was what you were assuming.
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.
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.