GStreamer tutorial not working

I am working on the GStreamer documentation. I work on OSX 10.8.5 and I can initialize GStreamer using the sample code 4.1 ( http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-init.html ) from the command line viagcc eg41.c -o eg41 -framework GStreamer -I/Library/Frameworks/GStreamer.framework/Versions/1.0/Headers

and similar, for example, 4.2. Now I want to work with the tutorials that come with the SDK. I copied the entire tutorials folder and can compile the first one withgcc basic-tutorial-1.c -o basic1 -framework GStreamer -I/Library/Frameworks/GStreamer.framework/Versions/1.0/Headers

However, when I try to run the basic1 file, I get the following error message:

(basic1:62265): GStreamer-CRITICAL **: GstStateChangeReturn gst_element_set_state(GstElement *, GstState): assertion 'GST_IS_ELEMENT (element)' failed

(basic1:62265): GStreamer-CRITICAL **: GstBus *gst_element_get_bus(GstElement *): assertion 'GST_IS_ELEMENT (element)' failed

(basic1:62265): GStreamer-CRITICAL **: GstMessage *gst_bus_timed_pop_filtered(GstBus *, GstClockTime, GstMessageType): assertion 'GST_IS_BUS (bus)' failed

(basic1:62265): GStreamer-CRITICAL **: void gst_object_unref(gpointer): assertion 'object != NULL' failed

(basic1:62265): GStreamer-CRITICAL **: GstStateChangeReturn gst_element_set_state(GstElement *, GstState): assertion 'GST_IS_ELEMENT (element)' failed

(basic1:62265): GStreamer-CRITICAL **: void gst_object_unref(gpointer): assertion 'object != NULL' failed

What am I missing here?

Many thanks!

+4
source share
1 answer

( , ...)

GStreamer SDK ( ) - Gstreamer 0.10. playbin2: Gstreamer 1.0, playbin - .

API 0.10 1.0, .

+7

Source: https://habr.com/ru/post/1541061/


All Articles