开发者

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 be开发者_开发技巧cause 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.


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


If you are using Windows 7, you could look at using the Microsoft decoders. Take a look at the graph at this question: best way to build graph for MPEG2 transport stream.

As for what to specify for the video type, I use major type = video, subtype = H264, format type = video info.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜