newby help

gotsring gotsring at live.com
Mon Mar 29 14:50:15 UTC 2021


gst-launch is good for testing pipelines, but it lacks the ability to do any
monitoring, live changes, error-handling, etc. Building pipelines in code
takes getting used to, but it allows much more flexibility and robustness.

For basic pipelines, you can use gst_parse_launch to run a pipeline similar
to how you would use gst-launch

For example, a simple pipeline with a tee can be started from the shell
using:
    gst-launch-1.0 videotestsrc ! tee name=t \
     t. ! queue ! videoconvert ! autovideosink \
     t. ! queue ! videoconvert ! autovideosink

or in C code using gst_parse_launch:
	GError* err = NULL;
	GstElement* pipeline = gst_parse_launch(
		"videotestsrc ! tee name=t "
		"t. ! queue ! videoconvert ! autovideosink "
		"t. ! queue ! videoconvert ! autovideosink"
		, &err);
	gst_element_set_state(pipeline, GST_STATE_PLAYING); // Play it


You can swap out my test pipeline for whatever you want.

Not quite sure what you're trying to do in terms of a GUI, but maybe use
GTK? Check out basic tutorial 5:
https://gstreamer.freedesktop.org/documentation/tutorials/basic/toolkit-integration.html?gi-language=c




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list