<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<title>RE: [gst-devel] appsrc not getting created</title>
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=ZH-CN link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Have you set your GST_PLUGIN_PATH to the location where you install
the appsrc? Maybe you need to set it with &#8220;export GST_PLUGIN_PATH=</span><span
lang=EN-US> </span><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>/usr/local/lib/gstreamer-0.10/ .&#8221;<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Use pkg-config in the make file. For example, <o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'>CFLAGS=`pkg-config --libs --cflags gstreamer-0.10
gstreamer-base-0.10 gstreamer-interfaces-0.10`&nbsp; -L/usr/local/lib/gstreamer-0.10
-lgstphotography-0.10 -g<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> Irfan Shaikh
[mailto:irfanshaikh@tataelxsi.co.in] <br>
<b>Sent:</b> Thursday, April 29, 2010 1:14 PM<br>
<b>To:</b> Discussion of the development of GStreamer; Discussion of the
development of GStreamer<br>
<b>Subject:</b> Re: [gst-devel] appsrc not getting created<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p>

<p style='margin-bottom:12.0pt'><span lang=EN-US style='font-size:10.0pt'>Hi<br>
&nbsp;&nbsp;&nbsp;&nbsp; I have the plugin loaded and it is prperly seen when i
do gst-inspect. But i am not very sure why my application is not recognizing it<br>
<br>
For example :<br>
<br>
[root@localhost Testcode]# gst-inspect appsrc<br>
Factory Details:<br>
&nbsp; Long name:&nbsp;&nbsp;&nbsp; AppSrc<br>
&nbsp; Class:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Generic/Src<br>
&nbsp; Description:&nbsp; Allow the application to feed buffers to a pipeline<br>
&nbsp; Author(s):&nbsp;&nbsp;&nbsp; David Schleef &lt;ds@schleef.org&gt;, Wim
Taymans &lt;wim.taymans@gmail.com&gt;<br>
&nbsp; Rank:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; none (0)<br>
<br>
Plugin Details:<br>
&nbsp;
Name:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
app<br>
&nbsp; Description:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Elements used to communicate with applications<br>
&nbsp;
Filename:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
/usr/local/lib/gstreamer-0.10/libgstapp.so<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
<br>
<br>
-----Original Message-----<br>
From: Michael Smith [<a href="mailto:msmith@xiph.org">mailto:msmith@xiph.org</a>]<br>
Sent: Thu 4/29/2010 10:39 AM<br>
To: Discussion of the development of GStreamer<br>
Subject: Re: [gst-devel] appsrc not getting created<br>
<br>
On Wed, Apr 28, 2010 at 6:52 AM, Irfan Shaikh<br>
&lt;irfanshaikh@tataelxsi.co.in&gt; wrote:<br>
&gt;<br>
&gt; Hi developers,<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
I am unable to create appsrc plugin in my gstreamer<br>
&gt; application. I have the appsrc plugin already installed on my PC. I have<br>
&gt; included following files.<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
#include &lt;gst/app/gstappsrc.h&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
#include &lt;gst/app/gstappbuffer.h&gt;<br>
&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
source&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = gst_element_factory_make
(&quot;appsrc&quot;, &quot;Application<br>
&gt; source&quot;);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; //FAILS ALWAYS<br>
<br>
This means that you do NOT have the appsrc plugin (or you have it, but<br>
GStreamer is unable to load it for some reason).<br>
<br>
Perhaps you have the plugin, but not the libraries it's using. The<br>
suggestions from others about linking to various libraries are<br>
irrelevant, you should ignore those. You need to figure out if you<br>
really have appsrc, and if you do have it, why GStreamer can't load<br>
it.<br>
<br>
Mike<br>
<br>
------------------------------------------------------------------------------<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
gstreamer-devel@lists.sourceforge.net<br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a></span><span
lang=EN-US><o:p></o:p></span></p>

<pre><span lang=EN-US><o:p>&nbsp;</o:p></span></pre></div>

</body>

</html>