使用Microsoft DTV-DVD Video Decoder播放H264视频
我正在尝试在 Windows 7 32 位上使用 graphedit 播放 H264 视频。 Graphedit 无法渲染该文件。 我尝试使用 Microsoft DTV-DVD 视频解码器(也称为 Microsoft MPEG-2 视频编码器)手动安装图表,但无法连接过滤器。 这是我尝试过的管道:
文件源>> Microsoft DTV-DVD 视频解码器 >>视频渲染器(或VMR9)
我也尝试过:
文件源>> MPEG-2 解复用器>> Microsoft DTV-DVD 视频解码器 >>视频渲染器(或VMR9)
在任何一种情况下,我都无法将任何内容连接到文件源过滤器。 我尝试播放的 H264 视频是我从此处下载的 Serenity 预告片:http://www.h264info。 com/clips.html
您知道如何通过图形编辑来播放 h264 视频文件吗?
谢谢
I am trying to play an H264 video with graphedit on Windows 7 32bit.
Graphedit is unable to render the file.
I tried to mount the graph manually using the Microsoft DTV-DVD Video Decoder (also know as Microsoft MPEG-2 Video Encoder) but I could not connected the filters.
Here is the pipeline I tried :
File Source >> Microsoft DTV-DVD Video Decoder >> Video Renderer (or VMR9)
I also tried this :
File Source >> MPEG-2 Demultiplexer >> Microsoft DTV-DVD Video Decoder >> Video Renderer (or VMR9)
In either case, I could not connect anything to the file source filter.
The H264 video I am trying to play is the Serenity trailer I downloaded from here : http://www.h264info.com/clips.html
Do you have any idea how I could play the h264 video file with graph edit?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
首先。该文件是 mp4,因此您需要 mpeg4 解复用器过滤器,而 Microsoft 并未为 DirectShow 提供该过滤器。 MediaFoundation 本身支持它,但该功能未向 DirectShow 公开。有商业 DirectShow 过滤器可用,或者开源“ffdshow”加上“Haali Media Splitter”即可实现。如果您的项目可以使用开源产品,那也将提供具有广泛兼容性的解码器。
假设您不想使用 ffdshow 而是从其他地方获取解复用器,它可能会或可能不会与 Microsoft DTV-DVD 视频解码器一起使用。我已经看到了不稳定的结果。很多内容就是不想玩。
另一件事是,您可能希望使用 Win7 中的增强视频渲染器而不是 VMR9。 VMR9在Win7中被阉割(与XP相比)。它不再兼容 dxva 硬件加速,并且缩放仅限于最丑模式。
For starters. That file is an mp4, so you need an mpeg4 demuxer filter, which Microsoft does not provide for DirectShow. MediaFoundation supports it natively, but that functionality is not exposed to DirectShow. There are commercial DirectShow filters available or the open-source "ffdshow" plus "Haali Media Splitter" will do it. If your project can use the open source products, that will also provide a decoder with wide-ranging compatibility.
Assuming you don't want to use ffdshow and instead get a demuxer from elsewhere, it may or may not work with the Microsoft DTV-DVD Video Decoder. I've seen erratic results with it. A lot of content it just doesn't want to play.
One other thing is that you will likely want to use the Enhanced Video Renderer in Win7 instead of VMR9. VMR9 is neutered in Win7 (compared to XP). It's no longer compatible with dxva hardware acceleration, and the scaling is limited to the ugliest mode.
使用文件源,但将其连接到 Geraint Davies 的免费 mpeg4 解复用器,网址为 http://www.gdcl .co.uk/mpeg4/
如果您随后渲染解复用器的输出引脚,视频解码器将自动插入。我刚刚尝试了你提到的视频,效果很好。
Use the File source but connect it to Geraint Davies' free mpeg4 demux available at http://www.gdcl.co.uk/mpeg4/
If you then render the output pins of the demux, the video decoder will automatically be inserted. I just tried it with the video you mentioned and it works fine.