<div dir="ltr"><div class="gmail_default" style><div class="gmail_default" style="color:rgb(7,55,99);font-family:'trebuchet ms',sans-serif;font-size:large">Hi Sebastian,</div><div style="color:rgb(7,55,99);font-family:'trebuchet ms',sans-serif;font-size:large"><br></div><div style="color:rgb(7,55,99);font-family:'trebuchet ms',sans-serif;font-size:large">And if I want to force a x/raw-GRAY8 to x-bayer what should I do.</div><div style="color:rgb(7,55,99);font-family:'trebuchet ms',sans-serif;font-size:large"><br></div><div style="color:rgb(7,55,99);font-family:'trebuchet ms',sans-serif;font-size:large">This pipeLine don't work : </div><div style="color:rgb(7,55,99);font-family:'trebuchet ms',sans-serif;font-size:large"><br></div><div style><div style><font color="#073763" face="trebuchet ms, sans-serif" size="4">gst-launch-1.0 -v filesrc location=VideoRef1088X870.avi ! avidemux ! capssetter caps='video/x-raw-bayer,format=gbrg</font><span style="color:rgb(7,55,99);font-family:'trebuchet ms',sans-serif;font-size:large">,width=1088, height=870' ! bayer2rgb ! glimagesink</span></div><div style><span style="color:rgb(7,55,99);font-family:'trebuchet ms',sans-serif;font-size:large"><br></span></div><div style><span style="color:rgb(7,55,99);font-family:'trebuchet ms',sans-serif;font-size:large">PS: </span><span style="color:rgb(7,55,99);font-family:'trebuchet ms',sans-serif;font-size:large">VideoRef1088X870.avi is a x-raw video (GRA8) but it contains a bayer images.</span></div><div style><span style="color:rgb(7,55,99);font-family:'trebuchet ms',sans-serif;font-size:large"><br></span></div><div style><span style="color:rgb(7,55,99);font-family:'trebuchet ms',sans-serif;font-size:large">Thanks</span></div><div style><span style="color:rgb(7,55,99);font-family:'trebuchet ms',sans-serif;font-size:large">Best Regards,</span></div><div style><span style="color:rgb(7,55,99);font-family:'trebuchet ms',sans-serif;font-size:large">Hamdi</span></div></div><div style="color:rgb(7,55,99);font-family:'trebuchet ms',sans-serif;font-size:large"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 22, 2015 at 3:01 PM, Hamdi Rakkez <span dir="ltr"><<a href="mailto:hamdi.rakez.selotec@gmail.com" target="_blank">hamdi.rakez.selotec@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763">Hi Sebastian,</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763">Thank you a lot.</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763"><br></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763">Best Regards,</div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;font-size:large;color:#073763">Hamdi</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Apr 22, 2015 at 2:49 PM, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><span>On Di, 2015-04-21 at 12:27 +0100, Hamdi Rakkez wrote:<br>
> Hi everyone,<br>
><br>
</span>> Is it possible to force gstreamer-1.0 to interpret the *video/x-bayer* as a<br>
> *video/x-raw-gray*.<br>
<br>
Yes, you can use the capssetter element to override caps. If that works<br>
or not depends of course if the caps would be correct for the actual<br>
buffer content, and elements don't read more/less data than they should.<br>
<br>
I.e. for bayer->gray8 you would have to set twice the width IIRC.<br>
<span><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd · <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
</font></span><br></div></div>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>