Discussion:
How to preview nv12(yuv420) format video
(too old to reply)
Pamela
2006-09-14 05:53:03 UTC
Permalink
Hi all,

Now I have a usb video class device which export NV12 (yuv420) format,
but I can not make preview working in the GraphEdit.

Anyone knows how if NV12 format is supportted in the DirectX? If so,
how to setup graph?

Thanks in advance.
Geraint Davies
2006-09-15 08:43:41 UTC
Permalink
Post by Pamela
Hi all,
Now I have a usb video class device which export NV12 (yuv420) format,
but I can not make preview working in the GraphEdit.
Anyone knows how if NV12 format is supportted in the DirectX? If so,
how to setup graph?
Thanks in advance.
that's a planar format with only two planes: Y and interleaved U/V. I've
not seen a conversion for that. I do have a YUV transform that supports
several other planar formats, and adding NV12 would only be a few minutes,
so if you can't find anything else contact me and I'll see what I can do.

G
HKUST
2006-10-04 09:11:13 UTC
Permalink
I have a similar problem: I have a device which captures only UYVY or YUY2
formats. But I need YUV420P (I420) to input into an encoder.

Ever seen a conversion for this?

Thx

-Brian
Post by Geraint Davies
Post by Pamela
Hi all,
Now I have a usb video class device which export NV12 (yuv420) format,
but I can not make preview working in the GraphEdit.
Anyone knows how if NV12 format is supportted in the DirectX? If so,
how to setup graph?
Thanks in advance.
that's a planar format with only two planes: Y and interleaved U/V. I've
not seen a conversion for that. I do have a YUV transform that supports
several other planar formats, and adding NV12 would only be a few minutes,
so if you can't find anything else contact me and I'll see what I can do.
G
Geraint Davies
2006-10-04 14:03:56 UTC
Permalink
Post by HKUST
I have a similar problem: I have a device which captures only UYVY or YUY2
formats. But I need YUV420P (I420) to input into an encoder.
Ever seen a conversion for this?
Thx
-Brian
The yuv transform at http://www.gdcl.co.uk/downloads.htm should do this
conversion both ways.

G
Brian Burgess
2006-10-05 03:49:21 UTC
Permalink
Many thx!

Any suggestion for an algorithm? I'd like to put it directly into my
filter.

thx

-B
Post by Geraint Davies
Post by HKUST
I have a similar problem: I have a device which captures only UYVY or YUY2
formats. But I need YUV420P (I420) to input into an encoder.
Ever seen a conversion for this?
Thx
-Brian
The yuv transform at http://www.gdcl.co.uk/downloads.htm should do this
conversion both ways.
G
Tim Roberts
2006-10-05 04:19:19 UTC
Permalink
Post by Brian Burgess
Any suggestion for an algorithm? I'd like to put it directly into my
filter.
It's nothing more than rearranging bytes. You have the definition of the
formats, yes?
--
- Tim Roberts, ***@probo.com
Providenza & Boekelheide, Inc.
Brian Burgess
2006-10-05 05:07:39 UTC
Permalink
I can find the definition for YUY2 (I think I read it correctly), but cant
find the I420. I can find a several other 4:2:0 formats (IMC2, IMC4, YV12,
NV12) but not the I420.
Post by Tim Roberts
Post by Brian Burgess
Any suggestion for an algorithm? I'd like to put it directly into my
filter.
It's nothing more than rearranging bytes. You have the definition of the
formats, yes?
--
Providenza & Boekelheide, Inc.
Geraint Davies
2006-10-05 13:15:39 UTC
Permalink
Post by Brian Burgess
I can find the definition for YUY2 (I think I read it correctly), but cant
find the I420. I can find a several other 4:2:0 formats (IMC2, IMC4, YV12,
NV12) but not the I420.
It's a planar format, same as YV12 but with the U and V planes swapped.
Otherwise known as YU12. See http://www.fourcc.org/yuv.php#IYUV

G
Geraint Davies
2006-10-09 13:48:46 UTC
Permalink
It seems I might not have UYVY or YUY2 coming out of the capture device
after all. This is from a new Sony UMPC device that claims (on the capture
cam filter property page) that only UYVY or YUY2 is available. Frame size
is also selectable to 176X144 (the one I have chosen). But when I try to
play the dump files in a YUV Player app .. they are corrupted.
I have a single frame dump of the video .. is there a way to tell just
from this dump if the format is actually UYVY? I'm attaching the single
frame file here just in case. This frame is SUPPOSED to be UYVY at 176x144.
If needed, I can also send more frames...
No, one frame is more than enough, thanks. That dark haunting stare...

This frame is valid 176x144 UYVY. Your chosen YUV Player app is expecting
some other format I suppose.

G
Brian Burgess
2006-10-11 07:53:50 UTC
Permalink
My only choices (in the player that I have) are: 4:2:0, 4:2:2 and 4:4:4.
I have several players here actually, but none have designations such as
UYVY or YUY2 in their selection list .. :-S

Can you suggest another player then?

thx

-B
Post by Geraint Davies
It seems I might not have UYVY or YUY2 coming out of the capture device
after all. This is from a new Sony UMPC device that claims (on the capture
cam filter property page) that only UYVY or YUY2 is available. Frame size
is also selectable to 176X144 (the one I have chosen). But when I try to
play the dump files in a YUV Player app .. they are corrupted.
I have a single frame dump of the video .. is there a way to tell just
from this dump if the format is actually UYVY? I'm attaching the single
frame file here just in case. This frame is SUPPOSED to be UYVY at 176x144.
If needed, I can also send more frames...
No, one frame is more than enough, thanks. That dark haunting stare...
This frame is valid 176x144 UYVY. Your chosen YUV Player app is expecting
some other format I suppose.
G
Geraint Davies
2006-10-11 08:45:17 UTC
Permalink
Post by Brian Burgess
My only choices (in the player that I have) are: 4:2:0, 4:2:2 and 4:4:4.
I have several players here actually, but none have designations such as
UYVY or YUY2 in their selection list .. :-S
Can you suggest another player then?
It's probably expecting a planar format.

I have a dshow source filter that reads raw YUV files in a few formats.
I've not got round to putting it on the website yet, but you can have a
copy if you contact me directly.

G
Tim Roberts
2006-10-12 03:01:56 UTC
Permalink
Post by Brian Burgess
My only choices (in the player that I have) are: 4:2:0, 4:2:2 and 4:4:4.
I have several players here actually, but none have designations such as
UYVY or YUY2 in their selection list .. :-S
UYVY and YUY2 are both 4:2:2 packed formats.
--
- Tim Roberts, ***@probo.com
Providenza & Boekelheide, Inc.
Loading...