MediaEncodingProfile Class
오디오 또는 비디오 파일의 인코딩 프로필에 대해 설명합니다. 인코딩 프로필에는 오디오 및 비디오 인코딩 형식에 대한 설명과 미디어 컨테이너에 대한 설명이 포함됩니다.
구문
var mediaEncodingProfile = new Windows.Media.MediaProperties.MediaEncodingProfile();
특성
- ActivatableAttribute(NTDDI_WIN8)
- DualApiPartitionAttribute()
- MarshalingBehaviorAttribute(Agile)
- StaticAttribute(Windows.Media.MediaProperties.IMediaEncodingProfileStatics, NTDDI_WIN8)
- ThreadingAttribute(MTA)
- VersionAttribute(NTDDI_WIN8)
구성원
MediaEncodingProfile클래스에는 다음과 같은 유형의 구성원이 있습니다.
생성자
MediaEncodingProfile클래스에는 다음 생성자가 있습니다.
| 생성자 | 설명 |
|---|---|
| MediaEncodingProfile | Creates a new instance of the MediaEncodingProfile class. |
메서드
The MediaEncodingProfile 클래스 다음 메서드가 있습니다. C#, Visual Basic 및 C++에서는 다음에서 메서드를 상속합니다. Object 클래스.
| 메서드 | 설명 |
|---|---|
| CreateFromFileAsync | Creates an encoding profile from an existing media file. |
| CreateFromStreamAsync | Creates an encoding profile from a stream that contains media data. |
| CreateM4a | Creates an encoding profile for AAC audio. |
| CreateMp3 | Creates an encoding profile for MP3 (MPEG-1 layer 3) audio. |
| CreateMp4 | Creates an encoding profile for H.264 video. |
| CreateWma | Creates an encoding profile for Windows Media Audio (WMA). |
| CreateWmv | Creates an encoding profile for Windows Media Video (WMV). |
속성
MediaEncodingProfile클래스 다음 속성이 있습니다.
| 속성 | 액세스 유형 | 설명 |
|---|---|---|
| 읽기/쓰기 | Gets or sets the encoding properties for the audio stream. | |
| 읽기/쓰기 | Gets or sets the properties of the media container. | |
| 읽기/쓰기 | Gets or sets the encoding properties for the video stream. |
예제
다음 예제에서는 이 클래스의 인스턴스를 만들고 오디오 스트림, 미디어 컨테이너 및 동영상 스트림의 인코딩 속성을 가져옵니다.
function getAudioProperties() { var mediaProfile = new Windows.Media.MediaProperties.MediaEncodingProfile(); // Get the encoding properties for the audio stream. var audioProps = mediaProfile.audio; // Set the channel count. audioProps.channelCount = count; // Get the encoding properties for the media container. var containerProps = mediaProfile.container; // Set the container subtype. containerProps.subtype = "MP3"; // Get the encoding properties for the video stream. var videoProps = mediaProfile.video; // Get the frame rate. var d_value = videoProps.frameRate.denominator; var n_value = videoProps.frameRate.numerator; }
요구 사항
|
지원되는 최소 클라이언트 | Windows 8 [Windows 스토어 앱, 데스크톱 앱] |
|---|---|
|
지원되는 최소 서버 | Windows Server 2012 [Windows 스토어 앱, 데스크톱 앱] |
|
네임스페이스 |
|
|
메타데이터 |
|
