Media Foundation

Media Foundation是微軟在Windows上推出的下一代多媒體開發庫,目的是為Windows平台提供統一的多媒體影音解決方案,開發者可以透過Media Foundation播放影片和聲音文件、進行影音編碼或者多媒體文件轉碼等等工作。Media Foundation是DirectShow為主的舊式多媒體應用程序接口的替代者與繼承者,在微軟的計畫下將逐步汰換DirectShow技術。Media Foundation僅支援Windows Vista或更新的系統。

Media Foundation擅長高品質的音訊和視訊播放,高清內容(如HDTV,高清電視)和數位版權管理(DRM)訪問控制。Media Foundation在不同的Windows版本上能力不同,在Windows Vista上僅支持WMV格式,但到了Windows 7後添加了H264編碼支持。Windows 8上則多了數種更高品質的設定。

架構

Media Foundation架構

Media Foundation(以下簡稱MF)架構分為控制層(Control layer),核心層(Core layer)與平台層(Platform layer)。大部分MF功能均由核心層提供,開發者則由控制層來控制行為。一般開發者僅須了解控制層與核心層,幾乎不須接觸平台層。

Media Foundation提供了兩種編程模型,第一種是以Media Session為主的媒體管道模型(Media pipeline)。但是媒體管道模型太過複雜,且曝露過多底層細節,故微軟於Windows 7上推出第二種編成模型,內含SinkWriter、SourceReader、以及Transcode API三部分,大大簡化了MF的使用難度。

媒體管道(pipeline)分三個組成部分:媒體來源(Media Source),媒體接收器(Media Sink)和媒體平台變換(Media Foundation Transforms)。

媒體平台變換

媒體平台變換(Media Foundation Transforms)推出了一個革新式的技術DirectX Media Objects(DMOs)。混合DMO的/ MFT的對象也可以創建。應用程序可以使用MFTs內的管道,或直接使用它們作為獨立的對象。其種類如下:

  • 音訊和視訊編解碼器
  • 音訊和視訊效果
  • Multiplexers和demultiplexers
  • Tees
  • 色彩空間轉換器
  • Sample-rate converters
  • 視訊定標器(Video scalers)

微軟建議開發人員編寫MFTs,取代DirectShow篩選器[1]

增強型視訊渲染器

Media Foundation使用Enhanced Video Renderer(EVR)作為渲染器。它可以組合多達16個同步流(simultaneous streams),第一流是一個參考流(reference stream)。

與DirectShow比較

MF有以下好處:

  • 可擴展的高清晰度內容和數位版權管理保護(DRM-protected)的內容。
  • 允許DirectX視訊加速用於之外DirectShow的基礎設施。支持DXVA 2.0。
  • MF的可擴展性(extensibility),使不同的內容保護系統一起運作。
  • 使用多媒體類別計劃程序服務(MMCSS),是一個新的系統服務在Windows Vista。

而MF支持的視訊格式較DirectShow有限是其缺點。[2]

應用支援

Media Foundation首次適用於Windows Vista,可見諸於media playback applications.

注釋

  1. ^ Migrating from DirectShow to Media Foundation and comparison of the two. [2009-08-27]. (原始内容存档于2008-04-09). 
  2. ^ Supported Media Formats in Media Foundation. [2015-04-22]. (原始内容存档于2017-02-16). 

外部連結

  • Microsoft Media Foundation SDK
  • Media Foundation Development Forum
  • Media Source Metadata (页面存档备份,存于互联网档案馆
  • Media Foundation Pipeline (页面存档备份,存于互联网档案馆
  • Media Foundation Architecture (页面存档备份,存于互联网档案馆
  • About the Media Session (页面存档备份,存于互联网档案馆
  • About the Media Foundation SDK (页面存档备份,存于互联网档案馆
  • Enhanced Video Renderer
圖形介面
音樂與音效
多媒體
Web
資料存取
網路
通訊
  • 訊息API英语Messaging Application Programming Interface
  • 電話API
  • WCF
管理
元件與模型
函式庫
驱动程序
安全性
.NET
软件工廠
  • EFx Factory英语EFx Factory
  • Enterprise Library英语Microsoft Enterprise Library
  • 複合使用者介面英语Composite UI Application Block
  • CCF英语Microsoft Customer Care Framework
  • CSF英语Microsoft Connected Services Framework
行程間通訊
可協助性
  • Active Accessibility英语Microsoft Active Accessibility
  • 使用者介面自動化英语Microsoft UI Automation
文字與多語系支援
  • DirectWrite
  • 文本服务框架英语Text Services Framework
  • 文本对象模型英语Text Object Model
  • 输入法编辑器
  • 語言介面套件英语Language Interface Pack
  • 多語系使用者介面英语Multilingual User Interface
  • Uniscribe
遊戲開發
Microsoft Windows
  • 组件
  • 歷史
  • 批評
基於MS-DOS
Windows 9x
Windows NT
專用
Windows Embedded
Windows Mobile
Windows Phone
取消版本
相關
人物
創始人
  • 薩蒂亞·納德拉(董事长兼首席执行官)
  • 迪娜·杜伯倫
  • 瑪利亞·克拉維
  • David Marquardt英语David Marquardt
  • Charles Noski英语Charles Noski
  • Helmut Panke英语Helmut Panke
  • Mason Morfit英语Mason Morfit
  • John W. Stanton英语John W. Stanton
高層領導團隊
公司副總裁
  • Gabe Aul英语Gabe Aul (副總裁)
  • 理查德·拉希德(高級副總裁)
  • S. Somasegar英语S. Somasegar(高級副總裁)
部門
產品系列
網絡
大會
  • Build
  • Inspire
  • MIX英语MIX (Microsoft)
  • PDC
  • Ignite英语Microsoft Ignite
  • WinHEC
批評
訴訟
  • 阿爾卡特-朗訊訴微軟英语Alcatel-Lucent v. Microsoft Corp.
  • 蘋果訴微軟英语Apple Computer, Inc. v. Microsoft Corp.
  • 歐盟微軟競爭案英语Microsoft Corp v Commission
  • 微軟訴Lindows英语Microsoft Corp. v. Lindows.com, Inc.
  • 微軟訴MikeRoweSoft
  • 微軟訴Shah英语Microsoft Corp. v. Shah
  • 合众国诉微软案
收購英语List of mergers and acquisitions by Microsoft
  • 6Wunderkinder
  • 动视暴雪
    • 收购案英语Acquisition of Activision Blizzard by Microsoft
  • Altamira Software英语Altamira Software
  • AltspaceVR英语AltspaceVR
  • aQuantive
  • Azyxxi
  • Mixer
  • The Blue Ribbon SoundWorks英语The Blue Ribbon SoundWorks
  • Bungie
  • Calista Technologies英语Calista Technologies
  • Colloquis英语Colloquis
  • Connectix英语Connectix
  • Consumers Software英语Consumers Software
  • Danger英语Danger Inc.
  • Farecast英语MSN Travel
  • FASA Studio
  • Fast Search & Transfer英语Microsoft Development Center Norway
  • Fast Search & Transfer英语Fast Search & Transfer
  • 螢火蟲英语Firefly (website)
  • Forethought英语Forethought, Inc.
  • GIANT Company Software
  • GitHub
  • GreenButton英语GreenButton
  • Groove Networks英语Groove Networks
  • High Heat Major League Baseball英语High Heat Major League Baseball
  • Hotmail
  • Jellyfish.com英语Jellyfish.com
  • 領英
  • LinkExchange英语LinkExchange
  • Lionhead Studios
  • Massive Incorporated英语Massive Incorporated
  • Mobile Data Labs英语MileIQ
  • Mojang Studios
  • 诺基亚设备和服务
  • Nuance Communications
  • Onfolio
  • Pando Networks英语Pando Networks
  • 感知像素
  • PlaceWare英语PlaceWare
  • Powerset
  • ProClarity英语ProClarity
  • Rare
  • Revolution Analytics英语Revolution Analytics
  • ScreenTonic英语ScreenTonic
  • Secure Islands英语Secure Islands
  • Simplygon英语Simplygon
  • Skype
  • Sunrise Atelier英语Sunrise Calendar
  • Winternals Software
  • SwiftKey
  • Winternals Software英语Sysinternals
  • Teleo英语Teleo
  • Telekinesys Research
  • Tellme Networks英语Tellme Networks
  • Twisted Pixel Games
  • Vermeer Technologies英语Vermeer Technologies
  • Visio Corporation英语Visio Corporation
  • Vivaty英语Flux (software)(解散)
  • VoloMetrix英语VoloMetrix
  • VXtreme英语NetShow
  • WebTV Networks
  • Xamarin
  • Yammer
  • Yupi英语Yupi
  • ZeniMax Media
  • 分类 分类
  • 共享资源页面 共享資源
  • 微軟主题
  • 歷史
Windows Live
網路服務
應用軟件
手机服務
  • 我的Windows Phone
  • Messenger Mobile
開發者服務
  • Live Connect
已經停止的服務
实现
架構
共同語言基礎架構
CLI支持語言
共同語言1
其他語言2
Core家族3
元件
比較
即將推出
  • "Acropolis"
  • "Jasper"
1微软在Visual Studio.NET Framework中提供了或者将提供支持的语言
2被多數使用者使用,且非教學或研究型的語言。
3具有跨平台(Windows, Mac OSX, Linux)能力的開發框架。
微軟開發工具
開發環境
  • Code
  • Express
  • Lab Management英语Visual Studio Lab Management
  • Team System Profiler英语VSTS Profiler
  • Test Professional
  • Tools for Applications英语Visual Studio Tools for Applications
  • Tools for Office英语Visual Studio Tools for Office
其他
语言
主要API和框架
(完整列表)
数据库
管理
  • Management Studio英语SQL Server Management Studio
  • Business Intelligence Development Studio英语Business Intelligence Development Studio
SQL服务
  • Analysis英语Microsoft Analysis Services
  • Reporting
  • Integration英语SQL Server Integration Services
  • Notification英语SQL Server Notification Services
其他
源代码控制
交付

Microsoft Office
  • 歷史
Office套件
Windows
Mac OS
其他
應用
(列表)
桌面應用
伺服器
  • Skype for Business Server英语Skype for Business Server
  • SharePoint
    • Excel Services英语Excel Services
    • Project Server英语Microsoft Project Server
    • Search Server英语Microsoft Search Server
移動應用
  • Outlook Groups英语Outlook Groups
  • Outlook Mobile英语Outlook Mobile
  • Lens英语Office Lens
  • Remote英语Office Remote
線上應用
  • 日曆
  • Classroom英语Microsoft Classroom
  • Delve
  • Docs.com英语Docs.com
  • Forms
  • 人脉
  • OneDrive
  • Outlook.com
  • Outlook Web App英语Outlook Web App
  • Planner英语Microsoft Planner
  • Sway
  • Tasks英语Outlook Tasks
  • Teams
  • Video英语Office 365 Video
工具
  • 共享工具
  • Ribbon Hero英语Ribbon Hero
  • Ribbon Hero 2英语Ribbon Hero 2
停止開發
已独立分拆
技術
其他主题
  • 微软产品啟動英语Microsoft Product Activation
  • Office Genuine Advantage英语Office Genuine Advantage
  • Office檔案格式名稱英语List of Microsoft Office filename extensions
  • Microsoft Office密码保护英语Microsoft Office password protection
  • 分类 分类
  • 共享资源页面 共享资源
  • 维基百科图书 教科书
  • 维基学院页面 学院
Microsoft Expression Studio组件(已停产)
已弃用
  • Design
  • Encoder英语Microsoft Expression Encoder
  • Web英语Microsoft Expression Web
已重建英语Rebranded
  • Media英语Phase One Media Pro
  • Blend英语Microsoft Blend
管理工具
應用程式
Shell
服務
文件系統
伺服器
架構
安全性
兼容性
API
已經终止
应用程序
其他