共用方式為


IMFTranscodeProfile::GetVideoAttributes 方法 (mfidl.h)

取得目前在轉碼設定檔中設定的視訊資料流程設定。

語法

HRESULT GetVideoAttributes(
  [out] IMFAttributes **ppAttrs
);

參數

[out] ppAttrs

接收包含目前影片資料流程設定之屬性存放區之 IMFAttributes 介面的指標。 呼叫端必須釋放介面指標。

傳回值

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

備註

如果轉碼設定檔中沒有設定容器屬性, GetVideoAttributes 方法會成功, 且 ppAttrs 會收到 Null

若要取得特定屬性值,呼叫端必須根據屬性的資料類型呼叫適當的 IMFAttributes 方法,並指定屬性名稱。 下列清單顯示影片屬性:

需求

   
最低支援的用戶端 Windows 7 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 R2 [僅限傳統型應用程式]
目標平台 Windows
標頭 mfidl.h

另請參閱

Media Foundation 中的屬性

IMFTranscodeProfile

轉碼 API