<br><br><div class="gmail_quote">2009/7/21 Albert Costa <span dir="ltr">&lt;<a href="mailto:costa_albert@yahoo.fr">costa_albert@yahoo.fr</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: &#39;times new roman&#39;,&#39;new york&#39;,times,serif; font-size: 12pt;"><div>Hi Julien,</div><div>I&#39;ve followed the last advice, and did put the interface query once all the elements have been added, and finally got it to work!!! And it still works as well with conventional &quot;1-element&#39; capture filter (like usb webcam).</div>
</div></div></blockquote><div><br>Cool ! DirectShow owned once more !<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-family: &#39;times new roman&#39;,&#39;new york&#39;,times,serif; font-size: 12pt;">
<div></div><div>I&#39;ll now put things more cleanly in my code, and certainly submit a patch to gstreamer so that other people can also use xbars.</div></div></div></blockquote><div><br>Do not make the patch right now. I am currently refactoring the dshowsrcwrapper that is in the git repository.<br>
More over it does not contain the improvement I made but they are in the gstreamer winBuilds.<br>I will ping you in time.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: &#39;times new roman&#39;,&#39;new york&#39;,times,serif; font-size: 12pt;"><div></div><div>Thanks a very lot anyway, I couldn&#39;t have solved the problem (at least in reasonable time) without your precious help,</div>
</div></div></blockquote><div><br>No problem.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-family: &#39;times new roman&#39;,&#39;new york&#39;,times,serif; font-size: 12pt;">
<div></div><div>Best Regards,</div><div>Al </div></div></div></blockquote><div><br>++<br>Julien <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-family: &#39;times new roman&#39;,&#39;new york&#39;,times,serif; font-size: 12pt;"><div></div><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<font face="Tahoma" size="2"><div class="im"><hr size="1"><b><span style="font-weight: bold;">De :</span></b> Julien Isorce &lt;<a href="mailto:julien.isorce@gmail.com" target="_blank">julien.isorce@gmail.com</a>&gt;<br><b><span style="font-weight: bold;">À :</span></b> Discussion of the development of GStreamer &lt;<a href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a>&gt;<br>
</div><b><span style="font-weight: bold;">Envoyé le :</span></b> Mardi, 21 Juillet 2009, 11h32mn 04s<br><b><span style="font-weight: bold;">Objet :</span></b> Re: [gst-devel] Re : Re : Re : Re : Re : Re : Re : Re : Re : Grabbing analog video source with gstreamer<br>
</font><div><div></div><div class="h5"><br><br><br><div class="gmail_quote">2009/7/21 Albert Costa <span dir="ltr">&lt;<a rel="nofollow" href="mailto:costa_albert@yahoo.fr" target="_blank">costa_albert@yahoo.fr</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-size: 12pt;"><div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"><span style="font-size: medium;">Hello Julien,</span></font></div>
<div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"><span style="font-size: medium;">I&#39;ve replaced the IID_IFilterGraph by </span></font><code><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"><span style="font-size: medium;">IID_IGraphBuilder in the hres = CoCreateInstance (&amp;CLSID_FilterGraph, ..</span></font></code></div>

<div><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"><span style="font-size: medium;">I&#39;ve also added
 the creation of the capturegraphbuilder2 element, and added the </span></font><span style="white-space: pre-wrap;"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"><span style="font-size: medium;">SetFiltergraph after both are created (I also changed the type of the filtergraph, such that the setfiltergraph won&#39;t warn about incompatible types: IGraphBuilder/*IFilterGraph*/ *filter_graph)</span></font></span></div>

<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Now, when I launch the pipeline, I still have the &#39;not connected&#39; error when calling the run method. </div>

<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"></div></div></div></blockquote><div><br>ok. <br>The doc says : &quot;You cannot directly create this filter with <b>CoCreateInstance</b>. The <a rel="nofollow" href="http://msdn.microsoft.com/en-us/library/dd376359%28VS.85%29.aspx" target="_blank"><b>ICaptureGraphBuilder2</b></a> interface automatically adds this filter to the graph as needed.&quot;<br>

<br>so maybe the cross will not be added until the findinterface work.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-size: 12pt;">

<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">I&#39;ve
 tried to check if I could use the piece of code from the IAMCrossbar, including this:</div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div><span style="white-space: pre;">                </span>hres = ICaptureGraphBuilder2_FindInterface(</div>

<div><span style="white-space: pre;">                        </span>src-&gt;capture_graph, </div><div><span style="white-space: pre;">                        </span>&amp;LOOK_UPSTREAM_ONLY, </div><div><span style="white-space: pre;">                        </span>NULL, </div><div><span style="white-space: pre;">                        </span>src-&gt;video_cap_filter, </div>

<div><span style="white-space: pre;">                        </span>&amp;IID_IAMCrossbar, </div><div><span style="white-space: pre;">                        </span>(void**)&amp;pXBar1</div><div><span style="white-space: pre;">                        </span>);</div><div>after I
 created the capture_graph object (would be your pBuild in the example). </div><div>But this failed with error code 0x80004005 (E_FAIL).</div></div></div></div></blockquote><div><br>try to call it after : &quot;hres = IFilterGraph_AddFilter (src-&gt;filter_graph, src-&gt;video_cap_filter,&quot; (and  sure after <span style="white-space: pre-wrap;"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"><span style="font-size: medium;">SetFiltergraph)<br>

<br>try also to replace </span></font></span><span style="white-space: pre;"></span>&amp;LOOK_UPSTREAM_ONLY bu NULL.<br><span style="white-space: pre-wrap;"><font face="&#39;times new roman&#39;, &#39;new york&#39;, times, serif"><span style="font-size: medium;"><br>

if it still does not work. You can try to remove all your changes and just create the cross bar with CoCreateInstance<b></b></span></font></span><b></b>. (maybe the doc is just wrong in the case we are not using the capturegraphbuilder2)<br>

<br>If you can retrieve the crossbar in some way, then <br>you have to check that the crossbar is connected to the src-&gt;video_cap_filter.<br>Make the connection if it does not exist.<br><br>Finally, I join to this mail a screenshot: a capture card that does not need to have the crossbar connected, in order to play. (Note that a lot of capture cards does not support the crossbar)<br>

<br><br>Julien<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-size: 12pt;">
<div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div></div></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">

Regards,</div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">Al</div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">

<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><div><hr size="1"><b><span style="font-weight: bold;">De :</span></b> Julien Isorce &lt;<a rel="nofollow" href="mailto:julien.isorce@gmail.com" target="_blank">julien.isorce@gmail.com</a>&gt;<br>

<b><span style="font-weight: bold;">À :</span></b> Discussion of the development of GStreamer
 &lt;<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a>&gt;<br></div><b><span style="font-weight: bold;">Envoyé le :</span></b> Lundi, 20 Juillet 2009, 18h25mn 22s<br>

<b><span style="font-weight: bold;">Objet :</span></b> Re: [gst-devel] Re : Re : Re : Re : Re : Re : Re : Re : Grabbing analog video source with gstreamer<br></font><div><div></div><div><br>ok you can try two things in dshowvideosrc.c,:<br>

<br>just replace IID_IFilterGraph by <code>IID_IGraphBuilder</code><br>(IGraphBuilder inherit from IFilterGraph)<br><br>I think it will not resolve the problem so you also can try:<br>
 <br>in dshowvideosrc.c before &quot;hres = CoCreateInstance (&amp;CLSID_FilterGraph, ...&quot;<br>create first a capture graph builder 2:<br><br><pre style="white-space: pre-wrap;"><code>H<font size="2">RESULT hr = CoCreateInstance(CLSID_CaptureGraphBuilder2, NULL, <br>

        CLSCTX_INPROC_SERVER, IID_ICaptureGraphBuilder2, (void**)&amp;pBuild );<br><br><br>then if it fails report an error.<br><br>
after &quot;</font></code><font size="2">&quot;hres = CoCreateInstance (&amp;CLSID_FilterGraph, ...&quot;<br><br>do this:<br><code><br>       <br>pBuild-&gt;SetFiltergraph(pGraph);<br><br>(other infos:<br><br></code><code>IGraphBuilder *pGraph = NULL;<br>


ICaptureGraphBuilder2 *pBuild = NULL;<br><br><a rel="nofollow" href="http://msdn.microsoft.com/en-us/library/dd373396%28VS.85%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/dd373396(VS.85).aspx</a><br>)<br>

</code><br><code><br></code>++<br>
<br>Julien</font><br><code>         <br></code></pre><br><br><div class="gmail_quote">2009/7/20 Albert Costa <span dir="ltr">&lt;<a rel="nofollow" href="mailto:costa_albert@yahoo.fr" target="_blank">costa_albert@yahoo.fr</a>&gt;</span><br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-size: 12pt;"><div>Hi,</div><div>nope, the xbar is not added automatically when rendering the pin. It only creates the videorenderer, but not the crossbar (and there no &#39;render pin&#39; option for the analog input pin). I&#39;ve downloaded the whole winbuilds source&amp;project files, and I&#39;m able to recompile the complete gstreamer. So in theory I can modify the dshow plugin (I started by ading some log lines, it works...). But I&#39;m not an expert (not yet dx friendly as you say :-) ), so I&#39;m sure I want to step ahead in that hell...</div>


<div>Regards,</div><div>Al</div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><div>


<hr size="1"><b><span style="font-weight: bold;">De
 :</span></b> Julien Isorce &lt;<a rel="nofollow" href="mailto:julien.isorce@gmail.com" target="_blank">julien.isorce@gmail.com</a>&gt;<br><b><span style="font-weight: bold;">À :</span></b> Discussion of the development of GStreamer &lt;<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a>&gt;<br>


</div><b><span style="font-weight: bold;">Envoyé le :</span></b> Lundi, 20 Juillet 2009, 15h30mn 32s<br><b><span style="font-weight: bold;">Objet :</span></b> Re: [gst-devel] Re : Re : Re : Re : Re : Re : Re : Grabbing analog video source with gstreamer<br>


</font><div><div></div><div><br><br><br><div class="gmail_quote">2009/7/20 Albert Costa <span dir="ltr">&lt;<a rel="nofollow" href="mailto:costa_albert@yahoo.fr" target="_blank">costa_albert@yahoo.fr</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-size: 12pt;"><div>Hi Julien,</div><div>unfortunately, that doesn&#39;t work. As soon as I remove the link from the x-bar to the analog capture element, trying to play fails with &#39;no connected device&#39; message. </div>



<div>Regards,</div><div>Al</div></div></div></blockquote><div><br>Ok.<br>The crossbar filter is added automatically when clicking on &quot;render pin&quot; on the capture filter &#39;s ouput pin in graphedit ?<br><br>According to : <a rel="nofollow" href="http://msdn.microsoft.com/en-us/library/dd390991%28VS.85%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/dd390991(VS.85).aspx</a><br>



the crossbar is automatically added by the CaptureGraphBuilder2<br><br>But dshowvideosrc does not uses  CaptureGraphBuilder2.<br><br>If you are directshow friendly and if you are able to compile dshowvideosrc, then you could try to<br>



create the capturegraphbuilder2 then use SetFilterGraph on it to set the FilterGraph instance.<br>Then it should work.<br><br>It&#39;s just a matter of few code lines.<br><br>You are just entering in the directshow hell <img style="margin: 0pt 0.2ex; vertical-align: middle;" src="cid:1.852694962@web28410.mail.ukl.yahoo.com"><br>



<br>Julien<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-size: 12pt;">
<div></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><div>
<hr size="1"><b><span style="font-weight: bold;">De :</span></b> Julien Isorce &lt;<a rel="nofollow" href="mailto:julien.isorce@gmail.com" target="_blank">julien.isorce@gmail.com</a>&gt;<br><b><span style="font-weight: bold;">À :</span></b> Discussion of the development of GStreamer &lt;<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a>&gt;<br>



</div><b><span style="font-weight: bold;">Envoyé le :</span></b> Lundi, 20 Juillet 2009, 11h39mn 11s<br><b><span style="font-weight: bold;">Objet :</span></b> Re: [gst-devel] Re : Re : Re : Re : Re : Re : Grabbing analog video source with gstreamer<br>



</font><div><div></div><div><br>hmm, could you try to create again the same graph than the one in the screenshot.<br>But, just before to click on play, try to disconnect the crossbar from the capture filtre.<br>
Then click play and tell me if that works.<br>
<br>if yes, try to do the same steps, except you just remove the crossbar before to play.<br><br>If that works, it means that there is no default &quot;route&quot; and so a physical input has to be set before to play the graph.<br>




<br>Julien<br><br><div class="gmail_quote">2009/7/20 Julien Isorce <span dir="ltr">&lt;<a rel="nofollow" href="mailto:julien.isorce@gmail.com" target="_blank">julien.isorce@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




Hi,<br><br>First, the&quot; missing&quot; element you was talking about is a classic &quot;crossbar&quot; directshow filter.<br>Drivers of capture devices that contain a tuner, usually implement the crossbar interface.<br>





So it&#39;s not something weird.<br><br>Second, the not normal thing is that the capture filter needs to be connected to the crossbar in order to start.<br>(and that&#39;s why you got &quot;not connected device&quot;)<br>





<br>I have no tuner capture device here so I cannot send you a screenshot.<br><br>Well, it should have a way to avoid the use of the crossbar filter.<br><font color="#888888"><br>Julien</font><div><div></div><div>
<br><br><div class="gmail_quote">2009/7/17 Albert Costa <span dir="ltr">&lt;<a rel="nofollow" href="mailto:costa_albert@yahoo.fr" target="_blank">costa_albert@yahoo.fr</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-size: 12pt;">

<div>Hi,</div><div>I send the screenshot of the working graph. As you can see (and as I explained in my last post), it needs 2 elements to capture the source, which is why the dshowvideosrc element cannot work with this device (because it only expects/adds one element).</div>





<div>Regards,</div><div>Al</div><div><br></div><div><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">





<font face="Tahoma" size="2"><div><hr size="1"><b><span style="font-weight: bold;">De :</span></b> Julien Isorce &lt;<a rel="nofollow" href="mailto:julien.isorce@gmail.com" target="_blank">julien.isorce@gmail.com</a>&gt;<br>



<b><span style="font-weight: bold;">À :</span></b> Discussion of the development of GStreamer &lt;<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a>&gt;<br>





</div><b><span style="font-weight: bold;">Envoyé le :</span></b> Vendredi, 17 Juillet 2009, 17h18mn 27s<br><b><span style="font-weight: bold;">Objet :</span></b> Re: [gst-devel] Re : Re : Re : Re : Re : Grabbing analog video source with gstreamer<br>





</font><div><div></div><div><br><br><br><div class="gmail_quote">2009/7/17 Albert Costa <span dir="ltr">&lt;<a rel="nofollow" href="mailto:costa_albert@yahoo.fr" target="_blank">costa_albert@yahoo.fr</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-size: 12pt;"><div>Hi Julien,</div><div>thanks for your patient help! I&#39;ve followed your advice. I have connected the graphedit to the running thread of virtualdub acquisition, so I have seen the full graph running. </div>






</div></div></blockquote><div> </div><div>ok cool<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-size: 12pt;">






<div>There was a missing element when I tried previously to build the chain myself. So now I&#39;m also able to grab from graphedit, using the correct elements.</div></div></div></blockquote><div><br>What was exactly the missing element ? could you send us a screenshot ?<br>






right click on the output pin, then &quot;render pin&quot; does not insert this element ?<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div><div style="font-size: 12pt;"><div> Now, from the gstreamer point of view, how can I know which elements the plugin really tries to put in the graph? (and yes, the reported error means &#39;no connected device&#39;).</div>






</div></div></blockquote><div><br>dshowvideosrc just builds a directshow graph that contains a &quot;video capture source filter&quot; and<br>a &quot;custom directshow fakesink filter&quot; (this fakesink has nothing to deal with the gstreamer one, and you cannot instanciate it in graphedit)<br>






<br>But this &quot;custom directshow fakesink filter&quot; accepts any pin caps.<br><br>So the following should works:<br><br>gst-launch-0.10 dshowvideosrc device-name=&quot;your device name that you see in graphedit in video capture source category&quot; ! fakesink<br>






<br>Any infos on the missing element that resolved the &quot;no connected device&quot; may help.<br><br>Have you also tried to update the driver of you device ?<br><br>Julien<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div><div style="font-size: 12pt;"><div></div><div>Regards,</div><div>Al</div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><div><hr size="1"><b><span style="font-weight: bold;">De :</span></b> Julien Isorce &lt;<a rel="nofollow" href="mailto:julien.isorce@gmail.com" target="_blank">julien.isorce@gmail.com</a>&gt;<br>






<b><span style="font-weight: bold;">À :</span></b> Discussion of the development of GStreamer &lt;<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a>&gt;<br>





</div>
<b><span style="font-weight: bold;">Envoyé le :</span></b> Vendredi, 17 Juillet 2009, 15h42mn 42s<br><b><span style="font-weight: bold;">Objet :</span></b> Re: [gst-devel] Re : Re : Re : Re : Grabbing analog video source with gstreamer<br>






</font><div><div></div><div><br><br><br><div class="gmail_quote">2009/7/17 Albert Costa <span dir="ltr">&lt;<a rel="nofollow" href="mailto:costa_albert@yahoo.fr" target="_blank">costa_albert@yahoo.fr</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-size: 12pt;"><div>Hi again,</div><div>I&#39;ve moved a bit forward, but not enought yet to achieve grabbing with gstreamer. First thing I did was to check I could acquire from WinMovieMaker, and that worked. I even successed with virtualdub.</div>







</div></div></blockquote><div><br>ok but still does not work with graphedit ? if yes this is really strange. You have to figure out what is going on because dshowvideosrc builds a directshow graph as graphedit does.<br> </div>







<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-size: 12pt;">
<div></div><div>Then I noticed was that my grabber source was emiting in YUY2 format. When I gst-inspected my dshowvideosrc I realized it was not a supported format (was version 0.10.10), which explained the &#39;could not link elements&#39; message I had with a simple dshowvideosrc ! fakesink pipeline. </div>







<div>I have installed latest winbuilds version (now 0.10.4-prerelease). This one handles YUY2. But now I get a new error &quot;gstdshowvideosrc.c:653:gst_dshowvideosrc_change_state: Can&#39;t RUN the directshow capture graph (error=-2147023729)&quot;</div>







</div></div></blockquote><div><br>I think this is the same error as you got in graphedit (&quot;device not connected&quot;)<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">







<div><div style="font-size: 12pt;"><div></div><div>I have tried to check
 on the web possible problems, but found nothing relevant. Only thing was to check directx version, and I have 9.0c.</div><div>It feels frustrating to see all components but gstreamer able to acquire my video...</div></div>







</div></blockquote><div><br>You could report the graphedit problem to the device company. They often uses it.<br>If you resolve the graphedit pb then dshowvideosrc will work. That&#39;s all I can do without having the device in my hands.<br>







 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-size: 12pt;">
<div></div><div>Regards,</div><div>Al</div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><div>







<hr size="1"><b><span style="font-weight: bold;">De :</span></b> Julien Isorce &lt;<a rel="nofollow" href="mailto:julien.isorce@gmail.com" target="_blank">julien.isorce@gmail.com</a>&gt;<br><b><span style="font-weight: bold;">À :</span></b> Discussion of the development of GStreamer &lt;<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a>&gt;<br>







</div><b><span style="font-weight: bold;">Envoyé le :</span></b> Jeudi, 16 Juillet 2009, 15h32mn 55s<br><b><span style="font-weight: bold;">Objet :</span></b> Re: [gst-devel] Re : Re : Re : Grabbing analog video source with gstreamer<br>







</font><div><div></div><div><br><br><br><div class="gmail_quote">2009/7/16 Albert Costa <span dir="ltr">&lt;<a rel="nofollow" href="mailto:costa_albert@yahoo.fr" target="_blank">costa_albert@yahoo.fr</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div style="font-size: 12pt;"><br><div>In graphedit, the property page for the element shows video decoder options (mainly PAL and SECAM formats). The output pin also reports the decoder options, plus the image format. </div>








</div></div></blockquote><div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-size: 12pt;">
<div>And if I connect a video renderer and try to play, it says no peripheral is connected.</div></div></div></blockquote><div><br> So it&#39;s not a GStreamer problem. <br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div><div style="font-size: 12pt;"><div></div><div>There is a software provided with the hardware, I tested it at home it did allow the grabbing. But I don&#39;t know if there&#39;s a way to use the hw without the sw...</div>








</div></div></blockquote><div><br>From my experience, if you can see the hw in graphedit then you can use it without the sw. If not, you can&#39;t.<br><br>Try to grab using  &quot;Window Movie Maker&quot; that is installed by default on winxp<br>








(select &quot;capture from video device&quot;)<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-size: 12pt;">








<div></div><div>Regards,</div><div>Al</div></div></div></blockquote><div><br>Julien<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div><div style="font-size: 12pt;"><div></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<font face="Tahoma" size="2"><div><hr size="1"><b><span style="font-weight: bold;">De :</span></b> Julien Isorce &lt;<a rel="nofollow" href="mailto:julien.isorce@gmail.com" target="_blank">julien.isorce@gmail.com</a>&gt;<br>







</div>
<b><span style="font-weight: bold;">À :</span></b> Gstreamer &lt;<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a>&gt;<br><b><span style="font-weight: bold;">Envoyé le :</span></b> Jeudi, 9 Juillet 2009, 17h12mn 45s<br>








<b><span style="font-weight: bold;">Objet :</span></b> Re: [gst-devel] Re : Re : Grabbing analog video source with gstreamer<br></font><div><div></div><div><br>(reply to the gst list)<br><br>Note that you should have the same error doing:<br>








<br>set GST_DEBUG=1<br>gst-launch dshowvideosrc ! fakesink<br><br>About the reason of the error, you should have this error only if you disconnect the usb link.<br>
<br>--&gt;Anything with right bouton on the capture filter in graphedit, to open the property page ?<br>--&gt;property page on the ouput pin ?<br>--&gt;Is there a software joined to the device ? does it work ?<br><br>Julien<br>









<br><div class="gmail_quote">2009/7/9 Albert Costa <span dir="ltr">&lt;<a rel="nofollow" href="mailto:costa_albert@yahoo.fr" target="_blank">costa_albert@yahoo.fr</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div><div style="font-size: 12pt;"><div>Hi,</div><div>ok it does appear in the list. I wanted to add a renderer and see if it plays, but...</div><div>
Problem is then that it does not see that I have a source physically connected to it. I guess that&#39;s also why gstreamer plugin does not recognize it.</div><div>See attached pict.</div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">









Al</div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><div><hr size="1">









<b><span style="font-weight: bold;">De :</span></b> Julien Isorce &lt;<a rel="nofollow" href="mailto:julien.isorce@gmail.com" target="_blank">julien.isorce@gmail.com</a>&gt;<br><b><span style="font-weight: bold;">À :</span></b> Discussion of the development of GStreamer
 &lt;<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a>&gt;<br></div><b><span style="font-weight: bold;">Envoyé le :</span></b> Jeudi, 9 Juillet 2009, 14h51mn 42s<br>









<b><span style="font-weight: bold;">Objet :</span></b> Re: [gst-devel] Re : Grabbing analog video source with gstreamer<br></font><div><div></div><div><br>dshowvideosrc handles a capture device only if the device driver implements the directshow capture interfaces.<br>









To check if you driver associated with your &quot;SvideoToUsb device&quot;, implements those interfaces or not,<br>
you can use &quot;graphedit&quot; (you can find it on the web).<br>Then if you see your device in &quot;Video Capture Device&quot; category, then it should be ok.<br><br>Julien<br><br><div class="gmail_quote">2009/7/9 Albert Costa <span dir="ltr">&lt;<a rel="nofollow" href="mailto:costa_albert@yahoo.fr" target="_blank">costa_albert@yahoo.fr</a>&gt;</span><br>










<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-size: 12pt;">
<div>Hi, </div><div>thanks for the tips. I actually already use the winbuilds binaries, so I got this one (though I&#39;m on winbuild version 0.10.2, not 0.10.3).</div><div>However, I cannot see my grabber input with it. It works fine with a simple usb webcam, but looks like the Svideo to USB grabber is not handled the same way, pitty...</div>










<div>Regards,</div><div>Al</div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1">










<b><span style="font-weight: bold;">De :</span></b> Julien Isorce &lt;<a rel="nofollow" href="mailto:julien.isorce@gmail.com" target="_blank">julien.isorce@gmail.com</a>&gt;<br><b><span style="font-weight: bold;">À :</span></b> Discussion of the development of GStreamer
 &lt;<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a>&gt;<br><b><span style="font-weight: bold;">Envoyé le :</span></b> Jeudi, 9 Juillet 2009, 11h53mn 54s<br>










<b><span style="font-weight: bold;">Objet :</span></b> Re: [gst-devel] Grabbing analog video source with gstreamer<br></font><div><div></div><div><br>Hi,<br><br>You can try dshowvideosrc from there:<br><br><a rel="nofollow" href="http://www.gstreamer-winbuild.ylatuya.es/doku.php?id=download" target="_blank">http://www.gstreamer-winbuild.ylatuya.es/doku.php?id=download</a><br>










<br>which is different from the one who is in gst-plugins-bad<br>
<br>see <a rel="nofollow" href="http://bugzilla.gnome.org/show_bug.cgi?id=517203" target="_blank">http://bugzilla.gnome.org/show_bug.cgi?id=517203</a> for more informations.<br><br>Julien<br><br><div class="gmail_quote">










2009/7/8 Philip Jägenstedt <span dir="ltr">&lt;<a rel="nofollow" href="mailto:philip@foolip.org" target="_blank">philip@foolip.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I&#39;ve done capture with GStreamer using v4l2src, but if you&#39;re on XP<br>
have a look at <a rel="nofollow" href="http://asabil.wordpress.com/2007/05/20/directshowvideosrc-for-gstreamer/" target="_blank">http://asabil.wordpress.com/2007/05/20/directshowvideosrc-for-gstreamer/</a><br>
Apparently it&#39;s dshowsrcwrapper in gst-plugins-bad.<br>
<br>
Philip<br>
<div><div></div><div><br>
On Wed, Jul 8, 2009 at 14:41, Albert Costa&lt;<a rel="nofollow" href="mailto:costa_albert@yahoo.fr" target="_blank">costa_albert@yahoo.fr</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt; I would like to know if anyone has already used GStreamer to get video from<br>
&gt; an analog source? For some reasons, I may have to use a S-Video camera for a<br>
&gt; project. So I&#39;ll need to get the video from it. Has anyone experienced using<br>
&gt; gst with a frame grabber ? (btw, I&#39;m under winXP)<br>
&gt; I&#39;ve tried a S-Video to USB converter, but I cannot see which plugin I could<br>
&gt; use : ksvideosrc does not see it.<br>
&gt; Any help or advice would be welcomed,<br>
&gt; Regards,<br>
&gt; Al<br>
&gt;<br>
</div></div>&gt; ------------------------------------------------------------------------------<br>
&gt; Enter the BlackBerry Developer Challenge<br>
&gt; This is your chance to win up to $100,000 in prizes! For a limited time,<br>
&gt; vendors submitting new applications to BlackBerry App World(TM) will have<br>
&gt; the opportunity to enter the BlackBerry Developer Challenge. See full prize<br>
&gt; details at: <a rel="nofollow" href="http://p.sf.net/sfu/Challenge" target="_blank">http://p.sf.net/sfu/Challenge</a><br>
&gt; _______________________________________________<br>
&gt; gstreamer-devel mailing list<br>
&gt; <a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; <a rel="nofollow" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Philip Jägenstedt<br>
<br>
------------------------------------------------------------------------------<br>
Enter the BlackBerry Developer Challenge<br>
This is your chance to win up to $100,000 in prizes! For a limited time,<br>
vendors submitting new applications to BlackBerry App World(TM) will have<br>
the opportunity to enter the BlackBerry Developer Challenge. See full prize<br>
details at: <a rel="nofollow" href="http://p.sf.net/sfu/Challenge" target="_blank">http://p.sf.net/sfu/Challenge</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a rel="nofollow" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br>
</div></div></div></div><div></div></div><br>



      </div><br>------------------------------------------------------------------------------<br>
Enter the BlackBerry Developer Challenge<br>
This is your chance to win up to $100,000 in prizes! For a limited time,<br>
vendors submitting new applications to BlackBerry App World(TM) will have<br>
the opportunity to enter the BlackBerry Developer Challenge. See full prize<br>
details at: <a rel="nofollow" href="http://p.sf.net/sfu/Challenge" target="_blank">http://p.sf.net/sfu/Challenge</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a rel="nofollow" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>
</div></div></div></div><div></div></div><br>



      </div></blockquote></div><br>
</div></div></div></div><div></div></div><br>



      </div><br>------------------------------------------------------------------------------<br>
Enter the BlackBerry Developer Challenge<br>
This is your chance to win up to $100,000 in prizes! For a limited time,<br>
vendors submitting new applications to BlackBerry App World(TM) will have<br>
the opportunity to enter the BlackBerry Developer Challenge. See full prize<br>
details at: <a rel="nofollow" href="http://p.sf.net/sfu/Challenge" target="_blank">http://p.sf.net/sfu/Challenge</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a rel="nofollow" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>
</div></div></div></div><div></div></div><br>



      </div><br>------------------------------------------------------------------------------<br>
Enter the BlackBerry Developer Challenge<br>
This is your chance to win up to $100,000 in prizes! For a limited time,<br>
vendors submitting new applications to BlackBerry App World(TM) will have<br>
the opportunity to enter the BlackBerry Developer Challenge. See full prize<br>
details at: <a rel="nofollow" href="http://p.sf.net/sfu/Challenge" target="_blank">http://p.sf.net/sfu/Challenge</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a rel="nofollow" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>
</div></div></div></div><div></div></div><br>



      </div><br>------------------------------------------------------------------------------<br>
Enter the BlackBerry Developer Challenge<br>
This is your chance to win up to $100,000 in prizes! For a limited time,<br>
vendors submitting new applications to BlackBerry App World(TM) will have<br>
the opportunity to enter the BlackBerry Developer Challenge. See full prize<br>
details at: <a rel="nofollow" href="http://p.sf.net/sfu/Challenge" target="_blank">http://p.sf.net/sfu/Challenge</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a rel="nofollow" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>
</div></div></div></div><div></div></div><br>



      </div><br>------------------------------------------------------------------------------<br>
Enter the BlackBerry Developer Challenge<br>
This is your chance to win up to $100,000 in prizes! For a limited time,<br>
vendors submitting new applications to BlackBerry App World(TM) will have<br>
the opportunity to enter the BlackBerry Developer Challenge. See full prize<br>
details at: <a rel="nofollow" href="http://p.sf.net/sfu/Challenge" target="_blank">http://p.sf.net/sfu/Challenge</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a rel="nofollow" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></div></div><div></div></div><br>



      </div><br>------------------------------------------------------------------------------<br>
Enter the BlackBerry Developer Challenge<br>
This is your chance to win up to $100,000 in prizes! For a limited time,<br>
vendors submitting new applications to BlackBerry App World(TM) will have<br>
the opportunity to enter the BlackBerry Developer Challenge. See full prize<br>
details at: <a rel="nofollow" href="http://p.sf.net/sfu/Challenge" target="_blank">http://p.sf.net/sfu/Challenge</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a rel="nofollow" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>
</div></div></div></div><div></div></div><br>



      </div><br>------------------------------------------------------------------------------<br>
Enter the BlackBerry Developer Challenge<br>
This is your chance to win up to $100,000 in prizes! For a limited time,<br>
vendors submitting new applications to BlackBerry App World(TM) will have<br>
the opportunity to enter the BlackBerry Developer Challenge. See full prize<br>
details at: <a rel="nofollow" href="http://p.sf.net/sfu/Challenge" target="_blank">http://p.sf.net/sfu/Challenge</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a rel="nofollow" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>
</div></div></div></div><div></div></div><br>



      </div><br>------------------------------------------------------------------------------<br>
Enter the BlackBerry Developer Challenge<br>
This is your chance to win up to $100,000 in prizes! For a limited time,<br>
vendors submitting new applications to BlackBerry App World(TM) will have<br>
the opportunity to enter the BlackBerry Developer Challenge. See full prize<br>
details at: <a rel="nofollow" href="http://p.sf.net/sfu/Challenge" target="_blank">http://p.sf.net/sfu/Challenge</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a rel="nofollow" href="mailto:gstreamer-devel@lists.sourceforge.net" target="_blank">gstreamer-devel@lists.sourceforge.net</a><br>
<a rel="nofollow" href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>
</div></div></div></div><div></div></div><br>



      </div><br>------------------------------------------------------------------------------<br>
Enter the BlackBerry Developer Challenge<br>
This is your chance to win up to $100,000 in prizes! For a limited time,<br>
vendors submitting new applications to BlackBerry App World(TM) will have<br>
the opportunity to enter the BlackBerry Developer Challenge. See full prize<br>
details at: <a href="http://p.sf.net/sfu/Challenge" target="_blank">http://p.sf.net/sfu/Challenge</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>