I am missing something since:<br><br>gst-launch-0.10 videotestsrc num_buffers=1 pattern=2 ! &quot;video/x-raw-yuv, format=(fourcc)YUY2, width=4, height=4&quot; ! filesink location=black.yuv  has the same result<br><br><div class="gmail_quote">
2009/4/27 Julien Isorce <span dir="ltr">&lt;<a href="mailto:julien.isorce@gmail.com">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>When I convert a pure black image to yuv using ffmpegcolorspace, then y is equal to 16, u and v are equal to 0.<br> If the input is pure white then y is equal to 251.<br><br>proof:<br>gst-launch-0.10 videotestsrc num_buffers=1 pattern=2 ! &quot;video/x-raw-rgb, bpp=24, depth=24, width=4, height=4&quot; ! ffmpegcolorspace ! &quot;video/x-raw-yuv, format=(fourcc)YUY2&quot; ! filesink location=black.yuv<br>

<br>then hexedit black.yuv -&gt; <br>(y1 u y2 v)<br>10 80 10 80 -&gt;  16 128 16 128<br>10 80 10 80<br>10 80 10 80<br>10 80 10 80<br><br>The 128 is ok but I do not understand why y is equal to 16. Why not 0 ?<br><br>Sincerely<br>
<font color="#888888">
<br>Julien<br><br><br>
</font></blockquote></div><br>