Gstreamer pipeline from command lne to c code [closed]

不打扰是莪最后的温柔 提交于 2019-12-11 15:45:11

问题


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

回答1:


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

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.



来源:https://stackoverflow.com/questions/52951411/gstreamer-pipeline-from-command-lne-to-c-code

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!