从命令lne到C代码的Gstreamer管道

时间:2018-10-23 14:21:07

标签: c++ gstreamer

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

list = [no beta stupid motorbike yes big_boom]
if 'no' and 'yes' exist:
    myVar = 1
#some code to convert list into something like new_list
new_list = ['no', 'beta', 'stupid', 'motorbike', 'yes', 'big_boom']
if myVar = 1:
    #code to delete 'no' from the list, or multiple variables from list
final_list = ['beta', 'stupid', 'motorbike', 'yes', 'big_boom']

#some code to convert back into something like the original list
okay_this_is_the_last_list = [beta stupid motorbike yes big_boom]

print(okay_this_is_the_last_list)

#this should print to the console:
#beta stupid motorbike yes big_boom

1 个答案:

答案 0 :(得分:1)

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstParse.html#gst-parse-launch

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