Gstreamer on UBUNTU

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Gstreamer on UBUNTU

mailkamlesh
Hi
I installed gstreamer on my ubuntu 11.04 system using synaptic package manager
I have also created a basic code on gstreamer

[code]
               GstElement* gstelement;
               const gchar *nano_str;
                guint major, minor, micro, nano;
                gst_init (&argc, &argv);
                gst_version (&major, &minor, µ, &nano);
                gstelement = gst_element_factory_make("videosrc"," ");
                if (nano == 1)
                nano_str = "(CVS)";
                else if (nano == 2)
                nano_str = "(Prerelease)";
                else
                nano_str = "";
                printf ("This program is linked against GStreamer %d , %d , %d , %s\n",major, minor, micro, nano_str);
                return 0;
[/code]

The code runs perfectly fine , but when i debug the code , i get the value of
gstelement as 0x000000.

This means that my GstElement is not created. Any idea on what could be the issue
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer on UBUNTU

Marco Ballesio
Hi,

I'd suggest you to begin with something closer to the "hello world" example in:

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/index.html

and/or to replace "videosrc" with a standard element like "videotestsrc" ;)

Regards

On Mon, Sep 12, 2011 at 11:07 AM, mailkamlesh <[hidden email]> wrote:

> Hi
> I installed gstreamer on my ubuntu 11.04 system using synaptic package
> manager
> I have also created a basic code on gstreamer
>
> [code]
>               GstElement* gstelement;
>               const gchar *nano_str;
>                guint major, minor, micro, nano;
>                gst_init (&argc, &argv);
>                gst_version (&major, &minor, &micro, &nano);
>                gstelement = gst_element_factory_make("videosrc"," ");
>                if (nano == 1)
>                nano_str = "(CVS)";
>                else if (nano == 2)
>                nano_str = "(Prerelease)";
>                else
>                nano_str = "";
>                printf ("This program is linked against GStreamer %d , %d , %d ,
> %s\n",major, minor, micro, nano_str);
>                return 0;
> [/code]
>
> The code runs perfectly fine , but when i debug the code , i get the value
> of
> gstelement as 0x000000.
>
> This means that my GstElement is not created. Any idea on what could be the
> issue
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-on-UBUNTU-tp3806851p3806851.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel