video/x-raw-yuv, format=(fourcc)HDYC

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

video/x-raw-yuv, format=(fourcc)HDYC

Julien Isorce
Hi,

(I send this mail again, because gmail was waitting etc... so I am not sure it was sent)

Any plan to support HDYC format in gstreamer ?

(We have a Video Capture Device that delivers HDYC 1920*1080 only)

Some docs here:  http://www.fourcc.org/yuv.php#HDYC

It seems that the difference bettween UYVY and HDYC is just the  coefficients used in the yuv to rgb conversion.
T470 coefficients in UYVY to rgb conversion (SD likes) and
BT709 coefficients in HDYC to rgb conversion (HD likes)

Sincerely

J. I.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: video/x-raw-yuv, format=(fourcc)HDYC

Edward Hervey
Administrator
Hi,

On Tue, 2008-09-09 at 18:21 +0200, Julien Isorce wrote:
> Hi,
>
> (I send this mail again, because gmail was waitting etc... so I am not
> sure it was sent)

  You're too impatient :)

>
> Any plan to support HDYC format in gstreamer ?

   If you have elements that support that format... you can already do
it now. After all, it's just a matter of creating a caps (like
"video/x-raw-yuv,format=(fourcc)HDYC").

   The *real* problem is having elements that can convert (properly)
from that colourspace/layout to other ones (like the ones used by video
sinks or encoders).

   I don't know if anybody's planning that, but that wouldn't be the
only issue with colourspaces in GStreamer (Anyone heard of chroma
placement in subsampled video ?).

   It all comes down to having:
   * A proper definition of colourspaces in raw video caps
   * An element that *properly* does that conversion taking into account
the correct conversion coefficients/clamping and chroma placement. Oh,
and preferably with readable code (unlike ffmpegcolorspace).

     Patches welcome :)

       Edward


>
> (We have a Video Capture Device that delivers HDYC 1920*1080 only)
>
> Some docs here:  http://www.fourcc.org/yuv.php#HDYC
>
> It seems that the difference bettween UYVY and HDYC is just the
> coefficients used in the yuv to rgb conversion.
> T470 coefficients in UYVY to rgb conversion (SD likes) and
> BT709 coefficients in HDYC to rgb conversion (HD likes)
>
> Sincerely
>
> J. I.
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: video/x-raw-yuv, format=(fourcc)HDYC

Julien Isorce


2008/9/9 Edward Hervey <[hidden email]>

> Any plan to support HDYC format in gstreamer ?

  If you have elements that support that format... you can already do
it now. After all, it's just a matter of creating a caps (like
"video/x-raw-yuv,format=(fourcc)HDYC").

  The *real* problem is having elements that can convert (properly)
from that colourspace/layout to other ones (like the ones used by video
sinks or encoders).

  I don't know if anybody's planning that, but that wouldn't be the
only issue with colourspaces in GStreamer (Anyone heard of chroma
placement in subsampled video ?).

  It all comes down to having:
  * A proper definition of colourspaces in raw video caps
  * An element that *properly* does that conversion taking into account
the correct conversion coefficients/clamping and chroma placement. Oh,
and preferably with readable code (unlike ffmpegcolorspace).

Ok. I have some basic knowledges but I think I have not the background to make a such gst element (colorspace converter).
It requires to know a lot of video formats in order to start good abstractions. And use appropriate libraries (liboil ?)
For now I can start to add the HDYC to RGB convertion in the ffmegcolorspace element. (just to not forget this format ...)

Is there any thing about HDYC in the ffmpeg libs ?
 


    Patches welcome :)

      Edward

Thx

Julien
 



>
> (We have a Video Capture Device that delivers HDYC 1920*1080 only)
>
> Some docs here:  http://www.fourcc.org/yuv.php#HDYC
>
> It seems that the difference bettween UYVY and HDYC is just the
> coefficients used in the yuv to rgb conversion.
> T470 coefficients in UYVY to rgb conversion (SD likes) and
> BT709 coefficients in HDYC to rgb conversion (HD likes)
>
> Sincerely
>
> J. I.
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: video/x-raw-yuv, format=(fourcc)HDYC

Edward Hervey
Administrator
On Wed, 2008-09-10 at 00:11 +0200, Julien Isorce wrote:

>
>
> 2008/9/9 Edward Hervey <[hidden email]>
>        
>         > Any plan to support HDYC format in gstreamer ?
>        
>        
>           If you have elements that support that format... you can
>         already do
>         it now. After all, it's just a matter of creating a caps (like
>         "video/x-raw-yuv,format=(fourcc)HDYC").
>        
>           The *real* problem is having elements that can convert
>         (properly)
>         from that colourspace/layout to other ones (like the ones used
>         by video
>         sinks or encoders).
>        
>           I don't know if anybody's planning that, but that wouldn't
>         be the
>         only issue with colourspaces in GStreamer (Anyone heard of
>         chroma
>         placement in subsampled video ?).
>        
>           It all comes down to having:
>           * A proper definition of colourspaces in raw video caps
>           * An element that *properly* does that conversion taking
>         into account
>         the correct conversion coefficients/clamping and chroma
>         placement. Oh,
>         and preferably with readable code (unlike ffmpegcolorspace).
>
> Ok. I have some basic knowledges but I think I have not the background
> to make a such gst element (colorspace converter).
> It requires to know a lot of video formats in order to start good
> abstractions. And use appropriate libraries (liboil ?)
> For now I can start to add the HDYC to RGB convertion in the
> ffmegcolorspace element. (just to not forget this format ...)
>
> Is there any thing about HDYC in the ffmpeg libs ?

  There is one mention of HDYC in the source code (liabvcodec/raw.c) ...
and that's to say it's UYVY422 (sigh). So they don't make a difference
between YUY2, Y422, UYVY and HDYC.

>  
>        
>        
>             Patches welcome :)
>        
>               Edward
>
> Thx
>
> Julien
>  
>
>        
>        
>        
>         >
>         > (We have a Video Capture Device that delivers HDYC 1920*1080
>         only)
>         >
>         > Some docs here:  http://www.fourcc.org/yuv.php#HDYC
>         >
>         > It seems that the difference bettween UYVY and HDYC is just
>         the
>         > coefficients used in the yuv to rgb conversion.
>         > T470 coefficients in UYVY to rgb conversion (SD likes) and
>         > BT709 coefficients in HDYC to rgb conversion (HD likes)
>         >
>         > Sincerely
>         >
>         > J. I.
>         >
>        
>         >
>         -------------------------------------------------------------------------
>         > This SF.Net email is sponsored by the Moblin Your Move
>         Developer's challenge
>         > Build the coolest Linux based applications with Moblin SDK &
>         win great prizes
>         > Grand prize is a trip for two to an Open Source event
>         anywhere in the world
>         > http://moblin-contest.org/redirect.php?banner_id=100&url=/
>         > _______________________________________________
>         gstreamer-devel mailing list
>         [hidden email]
>         https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>        
>        
>         -------------------------------------------------------------------------
>         This SF.Net email is sponsored by the Moblin Your Move
>         Developer's challenge
>         Build the coolest Linux based applications with Moblin SDK &
>         win great prizes
>         Grand prize is a trip for two to an Open Source event anywhere
>         in the world
>         http://moblin-contest.org/redirect.php?banner_id=100&url=/
>         _______________________________________________
>         gstreamer-devel mailing list
>         [hidden email]
>         https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel