Hi,<br>Sorry,<br>2) with a v4l2src element, I can do that :<br> v4l2src ! video/x-raw-yuv ! ffmpegcolorspace ! ximagesink<br>3) but i can&#39;t do that :<br>
v4l2src ! video/x-raw-rgb ! ffmpegcolorspace ! ximagesink<br><br>I will test your command after my job<br><br><div style="text-align: left;" id="result_box" dir="ltr">for now, I made the requests gst_pad_get_caps() or the request gst_pad_get_allowed_caps() on the sources&#39;s src pad <br>
before the device is in PLAYING state.<br>With the result of the query , I select my caps with a filterCaps.<br><br></div>thanks<br><br><div class="gmail_quote">2009/4/27 Tim-Philipp Müller <span dir="ltr">&lt;<a href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</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 class="im">On Sun, 2009-04-26 at 22:55 +0200, marc doz wrote:<br>
<br>
&gt; 2) with a v4l2src element, I can do that :<br>
&gt; v4l2src ! video/x-raw-rgb ! ffmpegcolorspace ! ximagesink<br>
&gt; 3) but i can&#39;t do that :<br>
&gt; v4l2src ! video/x-raw-rgb ! ffmpegcolorspace ! ximagesink<br>
<br>
</div>Hrm? Those two pipelines look identical to me.<br>
<div class="im"><br>
<br>
&gt; 4) So I have built a tiny program that i use to print allowed caps of<br>
&gt; the pad between v4l2src and ffmpegcolorspace<br>
&gt; ./main v4l2src src ffmpegcolorspace sink<br>
</div>&gt;   (...)<br>
<div class="im">&gt; my pad can use x-raw-rgb (and I would like use video/x-raw-rgb, bpp: 8) but i can&#39;t use rgb format ... with gst-launch<br>
<br>
</div>The &#39;allowed&#39; caps / template caps are the caps that the element(s)<br>
might support in theory. The caps actually supported in practice are<br>
likely to be a small subset of these. Something like:<br>
<br>
GST_DEBUG=v4l2src:5 gst-launch-0.10 v4l2src num-buffers=1 ! fakesink<br>
2&gt;&amp;1 | grep probed<br>
<br>
should show you what is actually support by your camera/drivers. You can<br>
query this programmatically by doing a gst_pad_get_caps() on the<br>
sources&#39;s src pad once the device is open (which is in PLAYING state I<br>
think - but it might be earlier, I can never remember).<br>
<br>
Cheers<br>
 -Tim<br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Crystal Reports &amp;#45; New Free Runtime and 30 Day Trial<br>
Check out the new simplified licensign option that enables unlimited<br>
royalty&amp;#45;free distribution of the report engine for externally facing<br>
server and web deployment.<br>
<a href="http://p.sf.net/sfu/businessobjects" target="_blank">http://p.sf.net/sfu/businessobjects</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>
</blockquote></div><br>