Discussion:
Better way to convert from YUY2 to RGB32?
(too old to reply)
The March Hare (MVP)
2004-06-30 18:47:38 UTC
Permalink
Searching in google groups and making several tests in GraphEdit I have noticed
- Color Converter
- Avi Decompressor
I have read Avi Decompressor is faster than "Color Space Converter", but I haven't
read anything comparing it to "Color Converter". Both of them convert to RGB32, so
from this point of view, both would be valid.
Which transform filter should I use?
To add the "Avi Decompressor" filter CLSID is CLSID_AVIDec. Which one is the
"Color Converter" CLSID?
I don't remember hearing about the Color Converter filter before but it
exists on my system in GraphEdit. I don't know if its CLSID is included in
the header files but its value is the second one in the Display Name field
for the filter in GraphEdit. You can search the headers with this value or
make up your own CLSID name with it.

Please let us know how it works compared to the AVI Decompressor and if you
find the CLSID for it.
--
1. If there are questions above, please answer them in-line. In any case,
don't top post. (Otherwise, don't expect a followup) See
http://tinyurl.com/22ubu
2. Remove this signature from your response if your newsreader isn't
intelligent enough to do it.
3. Common courtesy is to followup if someone helped you or if you found a
solution on your own.
Thore Karlsen [MVP DX]
2004-06-30 18:54:26 UTC
Permalink
On Wed, 30 Jun 2004 11:36:03 -0700, "Alberto Plato"
Hi again!
I want to create a transform filter which will use an algorithm working in RGB
format. The problem is I want to use it with video streams in YUY2 format.
"Color Space Converter" filter converts only from one RGB color type to another
RGB type, so it doesn't help.
Searching in google groups and making several tests in GraphEdit I have noticed
- Color Converter
- Avi Decompressor
I have read Avi Decompressor is faster than "Color Space Converter", but I haven't
read anything comparing it to "Color Converter". Both of them convert to RGB32, so
from this point of view, both would be valid.
Which transform filter should I use?
To add the "Avi Decompressor" filter CLSID is CLSID_AVIDec. Which one is the
"Color Converter" CLSID?
The AVI decompressor will be inserted automatically by DirectShow if you
use intelligent connect between a source that outputs YUY2 and a filter
that accepts RGB. I use it all the time, and it works well. I don't have
a filter named "Color Converter" on my system. Are you sure it's not a
third party filter?
--
New to newsgroups? Read: http://dev.6581.com/newsgroups.html
The March Hare (MVP)
2004-06-30 19:26:33 UTC
Permalink
Post by Thore Karlsen [MVP DX]
I don't have
a filter named "Color Converter" on my system. Are you sure it's not a
third party filter?
I looked at the ax file (declrds.ax in system32). It's from a company I've
never heard of called Microsoft Corporation ;)

The version on the file is 9.00.00.2980. It's description is "Microsoft
Color Converter". I don't know if it's part of the DX distribution or of
WMP.
--
1. If there are questions above, please answer them in-line. In any case,
don't top post. (Otherwise, don't expect a followup) See
http://tinyurl.com/22ubu
2. Remove this signature from your response if your newsreader isn't
intelligent enough to do it.
3. Common courtesy is to followup if someone helped you or if you found a
solution on your own.
Thore Karlsen [MVP DX]
2004-06-30 19:40:14 UTC
Permalink
On Wed, 30 Jun 2004 13:26:33 -0600, "The March Hare (MVP)"
Post by The March Hare (MVP)
Post by Thore Karlsen [MVP DX]
I don't have
a filter named "Color Converter" on my system. Are you sure it's not a
third party filter?
I looked at the ax file (declrds.ax in system32). It's from a company I've
never heard of called Microsoft Corporation ;)
The version on the file is 9.00.00.2980. It's description is "Microsoft
Color Converter". I don't know if it's part of the DX distribution or of
WMP.
Is this under "DirectShow Filters"? Still don't see it listed under
"Microsoft Color Converter", so it doesn't appear to be a part of the DX
distribution.
--
New to newsgroups? Read: http://dev.6581.com/newsgroups.html
Chris P. [MVP]
2004-06-30 19:51:19 UTC
Permalink
Post by Thore Karlsen [MVP DX]
On Wed, 30 Jun 2004 13:26:33 -0600, "The March Hare (MVP)"
Post by The March Hare (MVP)
Post by Thore Karlsen [MVP DX]
I don't have
a filter named "Color Converter" on my system. Are you sure it's
not a third party filter?
I looked at the ax file (declrds.ax in system32). It's from a
company I've never heard of called Microsoft Corporation ;)
The version on the file is 9.00.00.2980. It's description is
"Microsoft Color Converter". I don't know if it's part of the DX
distribution or of WMP.
Is this under "DirectShow Filters"? Still don't see it listed under
"Microsoft Color Converter", so it doesn't appear to be a part of the
DX distribution.
I have it here to, not sure where it came from. My clean XP test machine
that has DX 9.0b on it doesn't have this file.
@device:sw:{083863F1-70DE-11D0-BD40-00A0C911CE86}\{637E3E39-462F-477E-9DAF-F
07B9B1C00D2}
Alberto Plato
2004-07-01 06:49:02 UTC
Permalink
Post by Chris P. [MVP]
Post by Thore Karlsen [MVP DX]
On Wed, 30 Jun 2004 13:26:33 -0600, "The March Hare (MVP)"
Post by The March Hare (MVP)
Post by Thore Karlsen [MVP DX]
I don't have
a filter named "Color Converter" on my system. Are you sure it's
not a third party filter?
I looked at the ax file (declrds.ax in system32). It's from a
company I've never heard of called Microsoft Corporation ;)
The version on the file is 9.00.00.2980. It's description is
"Microsoft Color Converter". I don't know if it's part of the DX
distribution or of WMP.
The only difference with the filter on my system is that mine has version 7.01.00.3055.
Post by Chris P. [MVP]
Post by Thore Karlsen [MVP DX]
Is this under "DirectShow Filters"? Still don't see it listed under
"Microsoft Color Converter", so it doesn't appear to be a part of the
DX distribution.
Yes, it is under "DirectShow Filters", just before the "Color Space Converter" filter.
Post by Chris P. [MVP]
I have it here to, not sure where it came from. My clean XP test machine
that has DX 9.0b on it doesn't have this file.
@device:sw:{083863F1-70DE-11D0-BD40-00A0C911CE86}\{637E3E39-462F-477E-9DAF-F
07B9B1C00D2}
I have the same here:
@device:sw:{083863F1-70DE-11D0-BD40-00A0C911CE86}\{637E3E39-462F-477E-9DAF-F07B9B1C00D2}
Lupo
2004-07-01 09:27:15 UTC
Permalink
Hi again!
I want to create a transform filter which will use an algorithm working in RGB
format. The problem is I want to use it with video streams in YUY2 format.
"Color Space Converter" filter converts only from one RGB color type to another
RGB type, so it doesn't help.
Check out the Geraint Davies' YUVXfm filter

http://www.gdcl.co.uk/downloads.htm

Regards,

Piotr
Thore Karlsen [MVP DX]
2004-07-01 12:30:36 UTC
Permalink
Post by Lupo
I want to create a transform filter which will use an algorithm working in RGB
format. The problem is I want to use it with video streams in YUY2 format.
"Color Space Converter" filter converts only from one RGB color type to another
RGB type, so it doesn't help.
Check out the Geraint Davies' YUVXfm filter
http://www.gdcl.co.uk/downloads.htm
What's the benefit of this over MSYUV as used by the AVI decompressor?
--
New to newsgroups? Read: http://dev.6581.com/newsgroups.html
Lupo
2004-07-01 17:48:14 UTC
Permalink
\cut
Post by Thore Karlsen [MVP DX]
Post by Lupo
Check out the Geraint Davies' YUVXfm filter
http://www.gdcl.co.uk/downloads.htm
What's the benefit of this over MSYUV as used by the AVI decompressor?
It is necessary to insert the Color Space Converter between AVI
decompressor and VMR. The YUVXfm filter can be connected directly to a
renderer.

I have just spotted this filter on the GDCL website and used it once
or twice. I think that Geraint can best answer you this question.

Piotr
Thore Karlsen [MVP DX]
2004-07-01 17:56:25 UTC
Permalink
Post by Lupo
Post by Thore Karlsen [MVP DX]
Post by Lupo
Check out the Geraint Davies' YUVXfm filter
http://www.gdcl.co.uk/downloads.htm
What's the benefit of this over MSYUV as used by the AVI decompressor?
It is necessary to insert the Color Space Converter between AVI
decompressor and VMR.
No, not generally. I have it connected directly to the VMR converting
from YUY2 (output from capture source) to RGB32 (input to VMR). What are
your media types?
Post by Lupo
The YUVXfm filter can be connected directly to a renderer.
Same thing with the AVI decompressor. It's connected directly to all the
renderers I've tried it with.
--
New to newsgroups? Read: http://dev.6581.com/newsgroups.html
Lupo
2004-07-02 07:56:27 UTC
Permalink
Post by Thore Karlsen [MVP DX]
Post by Lupo
Post by Thore Karlsen [MVP DX]
Post by Lupo
Check out the Geraint Davies' YUVXfm filter
http://www.gdcl.co.uk/downloads.htm
What's the benefit of this over MSYUV as used by the AVI decompressor?
It is necessary to insert the Color Space Converter between AVI
decompressor and VMR.
No, not generally. I have it connected directly to the VMR converting
from YUY2 (output from capture source) to RGB32 (input to VMR). What are
your media types?
It seems that I have found one configuration in which it is
neccessary:

DV camera - DV video decoder - YUV Gray (some YUV processing, third
party filter) - AVI decompressor - Color Space Converter - VMR9

YUV Gray can accept and deliver YUY2 or YVUY formats (here it is
YUY2). Graph Edit refuses to connect AVI decompressor directly to VMR9
(no problem with other renderers). Color space converter is required
to convert from RGB32 to ARGB32 (does 'A' stand for 'Alpha channel'?)

Piotr
Thore Karlsen [MVP DX]
2004-07-02 13:37:22 UTC
Permalink
Post by Lupo
Post by Thore Karlsen [MVP DX]
Post by Lupo
It is necessary to insert the Color Space Converter between AVI
decompressor and VMR.
No, not generally. I have it connected directly to the VMR converting
from YUY2 (output from capture source) to RGB32 (input to VMR). What are
your media types?
It seems that I have found one configuration in which it is
DV camera - DV video decoder - YUV Gray (some YUV processing, third
party filter) - AVI decompressor - Color Space Converter - VMR9
YUV Gray can accept and deliver YUY2 or YVUY formats (here it is
YUY2). Graph Edit refuses to connect AVI decompressor directly to VMR9
(no problem with other renderers). Color space converter is required
to convert from RGB32 to ARGB32 (does 'A' stand for 'Alpha channel'?)
Yes, A is alpha. It seems your graphics card can't create textures
without an alpha channel, and the AVI decompressor can't output ARGB32.
My graphics cards can use RGB32 textures, so the VMR9 connects directly
to the AVI decompressor. What graphics card do you have?
--
New to newsgroups? Read: http://dev.6581.com/newsgroups.html
Lupo
2004-07-02 19:09:40 UTC
Permalink
Post by Thore Karlsen [MVP DX]
Post by Lupo
Post by Thore Karlsen [MVP DX]
Post by Lupo
It is necessary to insert the Color Space Converter between AVI
decompressor and VMR.
No, not generally. I have it connected directly to the VMR converting
from YUY2 (output from capture source) to RGB32 (input to VMR). What are
your media types?
It seems that I have found one configuration in which it is
DV camera - DV video decoder - YUV Gray (some YUV processing, third
party filter) - AVI decompressor - Color Space Converter - VMR9
YUV Gray can accept and deliver YUY2 or YVUY formats (here it is
YUY2). Graph Edit refuses to connect AVI decompressor directly to VMR9
(no problem with other renderers). Color space converter is required
to convert from RGB32 to ARGB32 (does 'A' stand for 'Alpha channel'?)
Yes, A is alpha. It seems your graphics card can't create textures
without an alpha channel, and the AVI decompressor can't output ARGB32.
My graphics cards can use RGB32 textures, so the VMR9 connects directly
to the AVI decompressor. What graphics card do you have?
Radeon 9100.
Why in such a configuration VMR9 does not accept RGB32 which is
returned by the AVI decompressor?

Piotr
Tim Reago
2004-07-03 14:00:34 UTC
Permalink
I had a request to for IYUV 12 bit video mode for MouseHead
http://www.spitbit.com/mousehead.

My question is, what are the most common widely-in-use video web cam
formats?

Thanks,
Tim
Tim Roberts
2004-07-04 07:41:31 UTC
Permalink
Post by Tim Reago
I had a request to for IYUV 12 bit video mode for MouseHead
http://www.spitbit.com/mousehead.
Must have been for one of the Intel web cams. IYUV and I420 are two names
for the same 4:1:1 planar YUV format that Intel decided it would prefer as
its intermediate format. It's kind of a silly choice, since there are no
actual camera chips that produce it. Their drivers have to convert
whatever the camera actually produces to that format.
Post by Tim Reago
My question is, what are the most common widely-in-use video web cam
formats?
In my experience, they are motion JPEG, RGB, YUY2, and UYVY.
--
- Tim Roberts, ***@probo.com
Providenza & Boekelheide, Inc
Loading...