sliver97
Newbie

Posts: 9
|
 |
« on: May 14, 2008, 09:31:07 am » |
|
Hello, I am writing a program in VC++ (MFC) to decode UDP Multicast MPEG2TS. I can add and configure the NWSource-Plus filter without issue, and I have been able to add and configure the Push Demultiplexer as well. I then get the IMPEG2Demultiplexer interface, create a new pin, get the IMPEG2PIDMap of the pin and Map my PID (0x3e8) to the pin. This all works as evidenced by GraphEdit (through the ROT). I then add the Elecard AVC decoder and add it to my newly created pin, that works fine, but I cannot render the output of the decoder??? Here is the media type for the pin I created (it is H.264 Video on PID 0x3e8): AM_MEDIA_TYPE media_type; ZeroMemory(&media_type, sizeof(AM_MEDIA_TYPE)); media_type.majortype = MEDIATYPE_Video; media_type.subtype = MEDIASUBTYPE_AVC;
This is the output pin parameters (from graphedit) when I run the graph: Major Type: Video - Sub Type: YUY2 - Format: YUY2 0x0, 16 bits, Aspect Ratio: 4x3, Interlace format: Frames rcSrc=(-842150451,-842150451,-842150451,-842150451) rcDst=(-842150451,-842150451,-842150451,-842150451) Major Type: Video - Sub Type: UYVY - Format: UYVY 0x0, 16 bits, Aspect Ratio: 4x3, Interlace format: Frames rcSrc=(-842150451,-842150451,-842150451,-842150451) rcDst=(-842150451,-842150451,-842150451,-842150451) Major Type: Video - Sub Type: RGB32 - Format: RGB 0x0, 32 bits, Aspect Ratio: 4x3, Interlace format: Frames rcSrc=(-842150451,-842150451,-842150451,-842150451) rcDst=(-842150451,-842150451,-842150451,-842150451) Major Type: Video - Sub Type: RGB24 - Format: RGB 0x0, 24 bits, Aspect Ratio: 4x3, Interlace format: Frames rcSrc=(-842150451,-842150451,-842150451,-842150451) rcDst=(-842150451,-842150451,-842150451,-842150451) Major Type: Video - Sub Type: RGB565 - Format: BITF 0x0, 16 bits, Aspect Ratio: 4x3, Interlace format: Frames rcSrc=(-842150451,-842150451,-842150451,-842150451) rcDst=(-842150451,-842150451,-842150451,-842150451) Major Type: Video - Sub Type: RGB555 - Format: BITF 0x0, 16 bits, Aspect Ratio: 4x3, Interlace format: Frames rcSrc=(-842150451,-842150451,-842150451,-842150451) rcDst=(-842150451,-842150451,-842150451,-842150451) Major Type: Video - Sub Type: YV12 - Format: YV12 0x0, 12 bits, Aspect Ratio: 4x3, Interlace format: Frames rcSrc=(-842150451,-842150451,-842150451,-842150451) rcDst=(-842150451,-842150451,-842150451,-842150451) Major Type: Video - Sub Type: YUY2 - Format: YUY2 0x0, 16 bits rcSrc=(-842150451,-842150451,-842150451,-842150451) rcDst=(-842150451,-842150451,-842150451,-842150451) Major Type: Video - Sub Type: UYVY - Format: UYVY 0x0, 16 bits rcSrc=(-842150451,-842150451,-842150451,-842150451) rcDst=(-842150451,-842150451,-842150451,-842150451) Major Type: Video - Sub Type: RGB32 - Format: RGB 0x0, 32 bits rcSrc=(-842150451,-842150451,-842150451,-842150451) rcDst=(-842150451,-842150451,-842150451,-842150451)
Obviously something has gone seriously wrong... What am I doing wrong?
Thanks-
|