Gstreamer errors reg.
Hi,
I am new to gstreamer, i downloaded the package and compiled it sucessfully but while running a sample application i am getting some errors. I am using UBUNTU 10.04 And the process i followed to do all these is Installed the package gstreamer-1.0.5.tar.xz by >> tar -xf gstreamer-1.0.5.tar.xz >> cd gstreamer-1.0.5 >> ./configure >> make >> sudo make install And the Plugins i installed are gst-plugins-base-1.0.5, gst-plugins-good-1.0.5 The application i am running is #include <gst/gst.h> int main(int argc, char *argv[]) { GstElement *pipeline; GstBus *bus; GstMessage *msg; /* Initialize GStreamer */ gst_init (&argc, &argv); /* Build the pipeline */ pipeline = gst_parse_launch ("playbin2 uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm", NULL); /* Start playing */ gst_element_set_state (pipeline, GST_STATE_PLAYING); /* Wait until error or EOS */ bus = gst_element_get_bus (pipeline); msg = gst_bus_timed_pop_filtered (bus, GST_CLOCK_TIME_NONE, (GstMessageType)(GST_MESSAGE_ERROR | GST_MESSAGE_EOS)); /* Free resources */ if (msg != NULL) gst_message_unref (msg); gst_object_unref (bus); gst_element_set_state (pipeline, GST_STATE_NULL); gst_object_unref (pipeline); return 0; } i cross compiled the application as $libtool --mode=link gcc `pkg-config --cflags --libs gstreamer-1.0` -o tut1 tut1.c It displayed libtool: link: gcc -pthread -I/usr/local/include/gstreamer-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -pthread -o tut1 tut1.c -L/usr/local/lib /usr/local/lib/libgstreamer-1.0.so /usr/local/lib/libgobject-2.0.so /usr/local/lib/libgmodule-2.0.so /usr/local/lib/libgthread-2.0.so -lrt /usr/local/lib/libglib-2.0.so -pthread $./tut1 I am getting the errors as (tut1:9112): GStreamer-CRITICAL **: gst_element_set_state: assertion `GST_IS_ELEMENT (element)' failed (tut1:9112): GStreamer-CRITICAL **: gst_element_get_bus: assertion `GST_IS_ELEMENT (element)' failed (tut1:9112): GStreamer-CRITICAL **: gst_bus_timed_pop_filtered: assertion `GST_IS_BUS (bus)' failed (tut1:9112): GStreamer-CRITICAL **: gst_object_unref: assertion `object != NULL' failed (tut1:9112): GStreamer-CRITICAL **: gst_element_set_state: assertion `GST_IS_ELEMENT (element)' failed (tut1:9112): GStreamer-CRITICAL **: gst_object_unref: assertion `object != NULL' failed Please suggest me how to run the application successfully |
Hi and welcome
Now you are aware that Ubuntu 10.04 is not supported any longer The current is Ubuntu 12.10 also as to posting Please use the BB "code tags" PHP Code:
Code:
Code:
sudo apt-get install gstreamer Quote:
See the README and the INSTALL files in the source code for the needed prerequisites and see Code:
./configure --help for that current version i am betting that a LOT of ubuntu 10 will need newer versions of EVERY prerequisites to be built and installed "out of the tree " and manually linked to that new version basically it will be easier to install Ubuntu 12.10 and use that gstreamer than to build gstreamer-1.0.5.tar.xz and get it working on 10.04 |
Hi johnVV
Thanks for your reply..Now I installed gstreamer-1.0.5.tar.xz in Ubuntu 12.10 in the same process previously which i followed and run the same appllication but still i am getting the same errors. can you please guide me how can i run this application successfully. |
Easy fix
Hi,
I don't know if you are still interested but I found an easy fix is to replace playbin2 with playbin. Then it works. Cheers Ben |
All times are GMT -5. The time now is 01:03 AM. |