Search code examples
c#directshowh.264bda

c# DirectShow example shows black screen, but sound is OK


DirectShowLib.DVB-T example "DTVViewer" plays audio, but doesn't play video, I think it's because of H.264 video compressor, which is used in our Digital television and "DTVViewer" is trying to decompress MPEG2.

I want to ask how to form Graph and what filters to use to make "DTVViewer" support H.264? CurrentGraph.

"MPEG2 DEMULTIPLEXER" pins:

(1)->BDA MPEG2 TRANSPORT INFORMATION FILTER

(2)->DScaler Mpeg2 Video Decoder->Video Renderer

(3)->AUDIO PART...

(5)->MPEG-2 SECTIONS AND TABLES

(ViPin) = AMMediaType(formatType?majorType?subType?)->Filter?->Video Renderer

Thinking, that now i only need help to configure new VideoPin correctly and add some H.264 decoder to it. Can anyone suggest something?

Thank you.


Solution

  • Try using Geraint Davies' free mpeg4 demux available at http://www.gdcl.co.uk/mpeg4/ instead of mpeg2 demultiplexer