对比Media Foundation 和DirectShow

我们已经跨入了对高清数字媒体时代。未来的数字高清将无处不在。但是他非常需要健壮的保护,而这是当前的数字媒体平台所不具备的。Media Fundation就是为了这个而存在。
        让我们审视高清数字,这个平台需要很有弹性,便于从小故障下恢复。需要考虑大量的不同品质的video 和audio.Media Foundation就是为了这个而存在。比如,支持下一代的HD技术:
  1:DirectX 视频加速(DXVA) 2.0提供了比DXVA1.0更高效率的视频加速,更稳定,最新的视频解码能力,和扩展的硬件视频加速。在DXVA2.0下,windows可以直接处理某些高清内容,并容易错误恢复。
2:Color-space能得以保存在整个视频处理流程中,所以中途可以无转换损失,用户可以享受到高逼真的画质。这个也能减少CPU等消耗。
3:增强的视频渲染器(enchanced video render EVR)增强了视频处理和时钟等。

        让我们研究一下文件保护,在用户购买了一部电影之后,他可以把电影传到他的某个设备上(一些设备支持直接在播放的时候录制),这个过程中会有多种保护模式,购买后的使用保护,播放时防录制保护,复制保护,如果某一个保护没有正确完成,就会使整套保护没有了意义。所以这需要有一个无缝的平台去相互协作。Media Foundation就是为了这个而存在。
        最后,让我们来总览一下DirectShow. DirectShow的API对这些数字高清媒体的应用程序确实是非常通用的,万能的,但是,DirectShow作为一个10多年的老技术而言已经力不从心了。比如:
   1:流程是静态static的,所以实现动态的Graph和Major format change是非常困难的。
  2:DirectShow filter的线程模型是非常复杂的,要完全理解并永不出错是太困难了。
  3:DirectShow filter只能用于DirectShow。
  4:DirectShow不支持文件保护。
  作为DirectShow的接替者,Media Foundation出现了,他不会马上替代DirectShow,作为第一步,他将在vista上慢慢展露他的影响。
  但是目前为止,Media Foundation只能在媒体保护(Proteced media process))方面大施手脚,还未向DirectShow进行足够的扩展和替代。


Appendix: Feature Comparisons

The following table compares the features of Media Foundation with those of DirectShow.

Feature
group
FeatureMedia
Foundation
DirectShow
Basic functionalityAudio and video renderingYesYes
 Event notificationYesYes
 Device enumerationNoYes
 Component enumerationYesYes
 Synchronization to reference clockYesYes
 SeekingYesYes
 Improved stress resilienceYesNo
Content protectionComponent validationYesNo
 Content protection policy negotiationYesNo
 Interoperability between content protection technologiesYesNo
 Protection against kernel-mode and user-mode threatsYesNo
 Component revocation and renewalYesNo
 Video output protection managementYesYes
Media tasksAudio captureNoYes
 Video captureNoYes
 Video editingNoYes
 DVD playback and navigationNoYes
 MPEG-2 supportNoYes
 ASF supportNoYes
 TV technologiesNoYes
 Stream buffer engine NoYes
 Encoder APINoYes
Video rendererSubstream mixing using per-pixel or planar alpha blendingYesYes
 Customizable video compositionNoYes
 Support for custom presentersYesYes
 Windowless renderingYesYes
 Multimonitor supportYesYes
 DXVAYesYes
 DirectDraw exclusive modeYesYes
 Backward compatibility with existing applicationsYesYes
 Accurate frame steppingYesYes
 Alpha blending of image dataYesYes
 Glitch resilienceYesNo
 Enhanced video fidelityYesNo
 Enhanced content protection robustnessYesNo
 Standalone useYesNo
 Standalone mixing componentYesNo
Transforms (MFT or DMO)Synchronous data processingYesYes
 Simple programming modelYesYes
 Standalone useYesYes
 Multiple inputs and multiple outputsYesYes
 Dynamic number of streamsYesNo
 Access to sample-level metadataYesNo
 In-place processingYesYes
 Dynamic format changesYesNo
 Quality adjustmentYesNo
 Rate change YesNo

The following table compares the features of Media Foundation with those of the Windows Media Format SDK.

Feature
group
FeatureMedia
Foundation
Format SDK
ASF file featuresAudio and video streamsYesYes
 Image streamsNoYes
 Arbitrary streams (text, file, Web, custom data)NoYes
 Script commandsNoYes
 Data unit extensionsYesYes
 SMPTE time code supportNoYes
 Mutual exclusionYesYes
 Stream prioritizationYesYes
 Bandwidth sharingNoYes
 IndexesYesYes
 MarkersYesYes
 Multiple bit rate streamYesYes
 Multiple language supportYesYes
Codec featuresCBR encodingYesYes
 VBR encodingYesYes
 Two-pass encodingYesYes
 High-resolution audio supportYesYes
 Low delay audioYesYes
 S/PDIF audio outputYesYes
 Video imageYesYes
 Device conformance templateYesYes
 Video complexity settingsYesYes
 Frame interpolationYesYes
 DirectX Video Acceleration YesYes
File writingVideo resizingYesYes
 Color space conversionYesYes
 Audio resamplingYesYes
 ASF file sink YesYes
 Network sinksNoYes
 Push sinksNoYes
 Watermarking supportNoYes
 Input formats, input settings, and data unit extensionsYesYes
 WMA smart recompressionNoYes
 Multichannel audioYesYes
File readingUser-allocated sample supportNoYes
 Synchronous readingNoYes
 Output format enumerationYesYes
 Multichannel audioYesYes
 MP3 supportYesYes
 Network sourcesYesYes
Metadata ID3 supportNoYes
 Custom metadataYesYes
Digital rights managementLive DRMNoYes
 DRM IndividualizationYesYes
 Back up and restore DRM licensesYesYes
 View DRM attributes in the Metadata EditorYesYes
 Output protection levelsYesYes
 License revocationYesYes
 Windows Media DRM for Network DevicesYesYes
 Secure Audio PathNoYes
 Playlist burningYesYes
 Third-party transcription supportYesNo
 Local license issuanceYesNo
 Enhanced Windows Media DRM renewabilityYesNo

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值