LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-28-2013, 09:57 AM   #1
sasidharjnv
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Rep: Reputation: Disabled
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

Last edited by sasidharjnv; 02-28-2013 at 09:58 AM.
 
Old 03-01-2013, 09:22 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
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:
[codethe code [/code
Example :
Code:
#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);
the older gstreamer will be in the old Ubuntu repos
Code:
sudo apt-get install gstreamer

Quote:
i downloaded the package and compiled it sucessfully
Are you 100% sure it built without errors and with all the options it needs ?
See the README and the INSTALL files in the source code for the needed prerequisites and see
Code:
./configure --help
for configure options

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

Last edited by John VV; 03-01-2013 at 09:25 PM.
 
Old 03-02-2013, 11:59 PM   #3
sasidharjnv
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Original Poster
Rep: Reputation: Disabled
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.
 
Old 03-31-2016, 05:09 AM   #4
bensch128
LQ Newbie
 
Registered: Mar 2016
Posts: 1

Rep: Reputation: Disabled
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
 
  


Reply

Tags
gstreamer, linux



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Errors while compiling gstreamer plugins base Takido Linux - Software 13 06-06-2012 09:06 AM
Gstreamer errors in 13.37 multilib + wine quiescere Slackware 5 11-07-2011 09:06 AM
GStreamer errors rezaul.akram@gmail.com Programming 1 12-19-2010 07:00 AM
Windows: Which program can track the reg updates at software install and make a reg? frenchn00b General 5 11-20-2008 04:26 PM
Nice surprise Kaffeine plays Reg 1 and Reg 2 disks 1kyle SUSE / openSUSE 1 10-10-2005 04:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration