问题
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