Re: Help! (Eric Zhang)

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

Re: Help! (Eric Zhang)

李传峰
Hi, all:
        Thank you for Eric Zhang's help.
        I run the command: `gst-inspect mp3parse', and can not find the
element. Now I am reading 《Running and debugging GStreamer Applications》
form
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gst-
running.html. I found the environment variables do not be set, I hope that
is the reason.
        Can you tell me how many environment variables should be set and
their value?
        Thank you!

-----Original Message-----
Message: 1
Date: Tue, 02 Dec 2008 10:32:00 +0900
From: ??? <[hidden email]>
Subject: [gst-devel] Help!
To: [hidden email], [hidden email]
Message-ID: <4CC50AED20F74968A59D023329095C9F@vaioPC>
Content-Type: text/plain; charset="gb2312"

Hi, all

              Thank you for Eric Zhang?s help yesterday.

              I download gstreamer, gtk+, glib, libxml2 to config my Visual
Studio 2008. But when I run the following code I found something different
form it should be.

 

              GstElement *element;

              /* init GStreamer */

              gst_init (&argc, &argv);

              get_default_registry();

              /* create element */

              element = gst_element_factory_make("mp3parse", "mp3-parser");

              if (!element)

              {

                            g_print ("Failed to create element of type
'fakesrc'\n");

                            return -1;

              }

              gst_object_unref (GST_OBJECT (element));

 

              The function gst_element_factory_make("mp3parse",
"mp3-parser") return null, and then I called gst_element_factory_find() ,but
return null.

              Can someone tell me why? Maybe I need to config some plugins
but I can not find anything about this from internet specifically about the
configuration of Windows environment. I need your help.

              Thank you!

----------------------------------------------------------------------------
-----------------------
Confidentiality Notice: The information contained in this e-mail and any
accompanying attachment(s)
is intended only for the use of the intended recipient and may be
confidential and/or privileged of
Neusoft Group Ltd.,  its subsidiaries and/or its affiliates. If any reader
of this communication is
not the intended recipient, unauthorized use, forwarding, printing,
storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this
communication in error,please
immediately notify the sender by return e-mail, and delete the original
message and all copies from
your system. Thank you.
----------------------------------------------------------------------------
-----------------------
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Tue, 2 Dec 2008 10:30:55 +0800
From: "Eric Zhang" <[hidden email]>
Subject: Re: [gst-devel] Help!
To: [hidden email]
Message-ID:
        <[hidden email]>
Content-Type: text/plain; charset="gb2312"

Hi, gstreamer-devel:

    You can first run the command: `gst-inspect mp3parse' to check whether
this elements exist. If it exists, re-run your program with debug option
open: --gst-debug=3. I think you can figure out the problem in debug infos.

Eric Zhang

2008/12/2 ??? <[hidden email]>

>  Hi, all
>
>               Thank you for Eric Zhang's help yesterday.
>
>               I download gstreamer, gtk+, glib, libxml2 to config my
Visual

> Studio 2008. But when I run the following code I found something different
> form it should be.
>
>
>
>               GstElement *element;
>
>               /* init GStreamer */
>
>               gst_init (&argc, &argv);
>
>               get_default_registry();
>
>               /* create element */
>
>               element = gst_element_factory_make("mp3parse",
"mp3-parser");

>
>               if (!element)
>
>               {
>
>                             g_print ("Failed to create element of type
> 'fakesrc'\n");
>
>                             return -1;
>
>               }
>
>               gst_object_unref (GST_OBJECT (element));
>
>
>
>               The function gst_element_factory_make("mp3parse",
> "mp3-parser") return null, and then I called gst_element_factory_find()
,but
> return null.
>
>               Can someone tell me why? Maybe I need to config some plugins
> but I can not find anything about this from internet specifically about
> the configuration of Windows environment. I need your help.
>
>               Thank you!
>
>
----------------------------------------------------------------------------
-----------------------
> Confidentiality Notice: The information contained in this e-mail and any
accompanying attachment(s)
> is intended only for the use of the intended recipient and may be
confidential and/or privileged of
> Neusoft Group Ltd.,  its subsidiaries and/or its affiliates. If any reader
of this communication is
> not the intended recipient, unauthorized use, forwarding, printing,
storing, disclosure or copying
> is strictly prohibited, and may be unlawful.If you have received this
communication in error,please
> immediately notify the sender by return e-mail, and delete the original
message and all copies from
> your system. Thank you.
>
----------------------------------------------------------------------------
-----------------------
>
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


End of gstreamer-devel Digest, Vol 31, Issue 7
**********************************************

---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Group Ltd.,  its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Help! (Eric Zhang)

Eric Zhang-6
Hi, gstreamer-devel:
 
    Sorry guy, Actually I have no experiences on running gstreamer on windows. So you should dig it yourself or ask somebody else. On linux, seems there is no need to set any environment variables. I compiled gstreamer and plugins on linux and install, that's all. Everything works fine.
 
Eric Zhang

2008/12/2 李传峰 <[hidden email]>
Hi, all:
       Thank you for Eric Zhang's help.
       I run the command: `gst-inspect mp3parse', and can not find the
element. Now I am reading 《Running and debugging GStreamer Applications》
form
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gst-
running.html
. I found the environment variables do not be set, I hope that
is the reason.
       Can you tell me how many environment variables should be set and
their value?
       Thank you!

-----Original Message-----
Message: 1
Date: Tue, 02 Dec 2008 10:32:00 +0900
From: ??? <[hidden email]>
Subject: [gst-devel] Help!
To: [hidden email], [hidden email]
Message-ID: <4CC50AED20F74968A59D023329095C9F@vaioPC>
Content-Type: text/plain; charset="gb2312"

Hi, all

             Thank you for Eric Zhang?s help yesterday.

             I download gstreamer, gtk+, glib, libxml2 to config my Visual
Studio 2008. But when I run the following code I found something different
form it should be.



             GstElement *element;

             /* init GStreamer */

             gst_init (&argc, &argv);

             get_default_registry();

             /* create element */

             element = gst_element_factory_make("mp3parse", "mp3-parser");

             if (!element)

             {

                           g_print ("Failed to create element of type
'fakesrc'\n");

                           return -1;

             }

             gst_object_unref (GST_OBJECT (element));



             The function gst_element_factory_make("mp3parse",
"mp3-parser") return null, and then I called gst_element_factory_find() ,but
return null.

             Can someone tell me why? Maybe I need to config some plugins
but I can not find anything about this from internet specifically about the
configuration of Windows environment. I need your help.

             Thank you!

----------------------------------------------------------------------------
-----------------------
Confidentiality Notice: The information contained in this e-mail and any
accompanying attachment(s)
is intended only for the use of the intended recipient and may be
confidential and/or privileged of
Neusoft Group Ltd.,  its subsidiaries and/or its affiliates. If any reader
of this communication is
not the intended recipient, unauthorized use, forwarding, printing,
storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this
communication in error,please
immediately notify the sender by return e-mail, and delete the original
message and all copies from
your system. Thank you.
----------------------------------------------------------------------------
-----------------------
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 2
Date: Tue, 2 Dec 2008 10:30:55 +0800
From: "Eric Zhang" <[hidden email]>
Subject: Re: [gst-devel] Help!
To: [hidden email]
Message-ID:
       <[hidden email]>
Content-Type: text/plain; charset="gb2312"

Hi, gstreamer-devel:

   You can first run the command: `gst-inspect mp3parse' to check whether
this elements exist. If it exists, re-run your program with debug option
open: --gst-debug=3. I think you can figure out the problem in debug infos.

Eric Zhang

2008/12/2 ??? <[hidden email]>

>  Hi, all
>
>               Thank you for Eric Zhang's help yesterday.
>
>               I download gstreamer, gtk+, glib, libxml2 to config my
Visual
> Studio 2008. But when I run the following code I found something different
> form it should be.
>
>
>
>               GstElement *element;
>
>               /* init GStreamer */
>
>               gst_init (&argc, &argv);
>
>               get_default_registry();
>
>               /* create element */
>
>               element = gst_element_factory_make("mp3parse",
"mp3-parser");
>
>               if (!element)
>
>               {
>
>                             g_print ("Failed to create element of type
> 'fakesrc'\n");
>
>                             return -1;
>
>               }
>
>               gst_object_unref (GST_OBJECT (element));
>
>
>
>               The function gst_element_factory_make("mp3parse",
> "mp3-parser") return null, and then I called gst_element_factory_find()
,but
> return null.
>
>               Can someone tell me why? Maybe I need to config some plugins
> but I can not find anything about this from internet specifically about
> the configuration of Windows environment. I need your help.
>
>               Thank you!
>
>
----------------------------------------------------------------------------
-----------------------
> Confidentiality Notice: The information contained in this e-mail and any
accompanying attachment(s)
> is intended only for the use of the intended recipient and may be
confidential and/or privileged of
> Neusoft Group Ltd.,  its subsidiaries and/or its affiliates. If any reader
of this communication is
> not the intended recipient, unauthorized use, forwarding, printing,
storing, disclosure or copying
> is strictly prohibited, and may be unlawful.If you have received this
communication in error,please
> immediately notify the sender by return e-mail, and delete the original
message and all copies from
> your system. Thank you.
>
----------------------------------------------------------------------------
-----------------------
>
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


End of gstreamer-devel Digest, Vol 31, Issue 7
**********************************************

---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)
is intended only for the use of the intended recipient and may be confidential and/or privileged of
Neusoft Group Ltd.,  its subsidiaries and/or its affiliates. If any reader of this communication is
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or copying
is strictly prohibited, and may be unlawful.If you have received this communication in error,please
immediately notify the sender by return e-mail, and delete the original message and all copies from
your system. Thank you.
---------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Help! (Eric Zhang)

Damien Lespiau
In reply to this post by 李传峰
2008/12/2 李传峰 <[hidden email]>:

> Hi, all:
>        Thank you for Eric Zhang's help.
>        I run the command: `gst-inspect mp3parse', and can not find the
> element. Now I am reading 《Running and debugging GStreamer Applications》
> form
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gst-
> running.html. I found the environment variables do not be set, I hope that
> is the reason.
>        Can you tell me how many environment variables should be set and
> their value?

GStreamer needs to known where its plugins are, you can either :

- use the --gst-plugin-path="xxxx" switch of gst-inspect-0.10.exe
- set the GST_PLUGIN_PATH environment variable either using Windows' GUI or
by setting it by hand at the start of your program (eg. using g_setenv :
http://library.gnome.org/devel/glib/unstable/glib-Miscellaneous-Utility-Functions.html#g-setenv)

eg.
gst-inspect-0.10.exe --gst-plugin-path="c:\\install
path\\lib\\gstreamer-0.10" plugin_name

I can't remember if you need to escape '\' in the path above, but you
may have to.

HTH,

--
Damien
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel