[gst-devel] [ffmpegcolorspace] rgb 2 yuv
Julien Isorce
julien.isorce at gmail.com
Mon Apr 27 16:19:42 CEST 2009
I am missing something since:
gst-launch-0.10 videotestsrc num_buffers=1 pattern=2 ! "video/x-raw-yuv,
format=(fourcc)YUY2, width=4, height=4" ! filesink location=black.yuv has
the same result
2009/4/27 Julien Isorce <julien.isorce at gmail.com>
> Hi,
>
> When I convert a pure black image to yuv using ffmpegcolorspace, then y is
> equal to 16, u and v are equal to 0.
> If the input is pure white then y is equal to 251.
>
> proof:
> gst-launch-0.10 videotestsrc num_buffers=1 pattern=2 ! "video/x-raw-rgb,
> bpp=24, depth=24, width=4, height=4" ! ffmpegcolorspace ! "video/x-raw-yuv,
> format=(fourcc)YUY2" ! filesink location=black.yuv
>
> then hexedit black.yuv ->
> (y1 u y2 v)
> 10 80 10 80 -> 16 128 16 128
> 10 80 10 80
> 10 80 10 80
> 10 80 10 80
>
> The 128 is ok but I do not understand why y is equal to 16. Why not 0 ?
>
> Sincerely
>
> Julien
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090427/590f2013/attachment.htm>
More information about the gstreamer-devel
mailing list