c# DirectShow 示例显示黑屏,但声音正常
DirectShowLib.DVB-T 示例“DTVViewer”播放音频,但不播放视频,我认为这是因为我们的数字电视中使用的 H.264 视频压缩器,而“DTVViewer”正在尝试解压缩 MPEG2。
我想问如何形成Graph以及使用什么过滤器使“DTVViewer”支持H.264? 当前图。
“MPEG2 DEMULTIPLEXER”引脚:
(1)->BDA MPEG2 传输信息过滤器
(2)->DScaler Mpeg2 视频解码器->视频渲染器
(3)->AUDIO PART...
(5)->MPEG -2 部分和表格
(ViPin) = AMMediaType(formatType?majorType?subType?)->Filter?->Video Renderer
思考,现在我只需要帮助来正确配置新的 VideoPin 并向其添加一些 H.264 解码器。谁能建议一下吗?
谢谢。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试使用 Geraint Davies 的免费 mpeg4 解复用器,网址为 http://www.gdcl.co.uk/mpeg4/ 代替 mpeg2 解复用器
Try using Geraint Davies' free mpeg4 demux available at http://www.gdcl.co.uk/mpeg4/ instead of mpeg2 demultiplexer
如果您使用的是 Windows 7,您可以考虑使用 Microsoft 解码器。看看这个问题的图表:构建的最佳方法MPEG2 传输流图。
至于视频类型指定什么,我使用major type = video,subtype = H264,format type = video info。
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.