从命令lne到C代码的Gstreamer管道 [英] Gstreamer pipeline from command lne to c code

查看:124
本文介绍了从命令lne到C代码的Gstreamer管道的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望在代码中实现该命令行.但是"src".部分=>我不知道该怎么做.在gstreamer网站上有一个tee-队列示例,但rtspsrc不能与tee元素链接.无论我在哪里删除解码器,它都会崩溃,我该如何编码?

I wish to implement that command line in code. But "src." part => I didn't understand how to do. At gstreamer website there is a tee - queue sample but rtspsrc cant be link with tee element. And wherenever I remove decodebin it crashes.How can I code that ?

gst-launch-1.0 rtspsrc location=rtsp://184.72.239.149/vod/mp4:BigBuckBunny_175k.mov latency=10 name=src src. ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! autovideosink src. ! decodebin ! audioconvert ! autoaudiosink

推荐答案

gst_parse_launch()是一个API调用,基本上将与gst-launch-1.0一起使用的字符串管道转换为可在代码中使用的管道对象.

gst_parse_launch() is an API call that basically translates your string pipeline which works with gst-launch-1.0 into a pipeline object you can use in your code.

这篇关于从命令lne到C代码的Gstreamer管道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆