프리셋 만들기 - Amazon Elastic Transcoder

비용을 절감하고 더 많은 기능을 확보하십시오. AWS Elemental MediaConvert

MediaConvert 는 포괄적인 고급 트랜스코딩 기능을 제공하는 최신 파일 기반 비디오 트랜스코딩 서비스로, 온디맨드 요금은 분당 0.0075달러부터 시작합니다. 자세한 내용을 읽어보세요.

이미 Amazon Elastic Transcoder를 사용하고 계신가요? MediaConvert마이그레이션하는 방법은 간단합니다. 자세한 내용은 마이그레이션 프로세스에 대한 중요한 정보와 추가 리소스 링크가 포함된 이 개요를 참조하세요.

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

프리셋 만들기

설명

프리셋을 생성하려면 /2012-09-25/presets 리소스에 POST 요청을 보냅니다.

중요

Elastic Transcoder는 지정한 설정이 Elastic Transcoder 요구 사항을 충족하고 적용되는 표준을 준수하는지 확인하기 위해 지정한 설정을 확인합니다. 설정이 Elastic Transcoder에 유효하지 않은 경우, Elastic Transcoder는 HTTP 400 응답(ValidationException)을 반환하고 프리셋을 생성하지 않습니다. 설정이 Elastic Transcoder에 유효하나 표준을 엄격하게 준수하지 않은 경우, Elastic Transcoder는 프리셋을 생성하고 경고 메시지를 응답으로 반환합니다. 이를 통해 설정이 표준을 준수하는지 여부를 확인할 수 있고, Elastic Transcoder가 생성하는 파일에 대해 유연성을 높일 수 있습니다.

참고

Elastic Transcoder에는 일반적인 출력 형식의 여러 시스템 프리셋이 포함되어 있습니다. 자세한 내용은 작업 만들기 주제에서 PresetId 섹션을 참조하세요.

요청

조건

POST /2012-09-25/presets HTTP/1.1 Content-Type: application/json; charset=UTF-8 Accept: */* Host: elastictranscoder.Elastic Transcoder endpoint.amazonaws.com:443 x-amz-date: 20130114T174952Z Authorization: AWS4-HMAC-SHA256 Credential=AccessKeyID/request-date/Elastic Transcoder endpoint/elastictranscoder/aws4_request, SignedHeaders=host;x-amz-date;x-amz-target, Signature=calculated-signature Content-Length: number of characters in the JSON string { "Name":"preset name", "Description":"preset description", "Container":"flac|flv|fmp4|gif|mp2|mp3|mp4|mpg|mxf|oga|ogg|ts|wav|webm", "Audio":{ "Codec":"AAC|flac|mp2|mp3|pcm|vorbis", "CodecOptions":{ "Profile":"auto|AAC-LC|HE-AAC|HE-AACv2", "BitDepth":"8|16|24|32", "Signed":"Signed|Unsigned", "BitOrder":"LittleEndian" }, "SampleRate":"auto|22050|32000|44100|48000|96000", "BitRate":"audio bit rate of output file in kilobits/second", "Channels":"auto|0|1|2", "AudioPackingMode":"SingleTrack|OneChannelPerTrack| OneChannelPerTrackWithMosTo8Tracks" }, "Video":{ "Codec":"gif|H.264|mpeg2|vp8|vp9", "CodecOptions":{ "Profile":"baseline|main|high|0|1|2|3", "Level":"1|1b|1.1|1.2|1.3|2|2.1|2.2|3|3.1|3.2|4|4.1", "MaxReferenceFrames":"maximum number of reference frames", "MaxBitRate":"maximum bit rate", "BufferSize":"maximum buffer size", "InterlacedMode":"Progressive|TopFirst|BottomFirst|Auto", "ColorSpaceConversion":"None|Bt709ToBt601|Bt601ToBt709|Auto", "ChromaSubsampling":"yuv420p|yuv422p", "LoopCount":"Infinite|[0,100]" }, "KeyframesMaxDist":"maximum frames between key frames", "FixedGOP":"true|false", "BitRate":"auto|video bit rate of output file in kilobits/second", "FrameRate":"auto|10|15|23.97|24|25|29.97|30|50|60", "MaxFrameRate":"10|15|23.97|24|25|29.97|30|50|60", "MaxWidth":"auto|[128,4096]", "MaxHeight":"auto|[96,3072]", "SizingPolicy":"Fit|Fill|Stretch|Keep|ShrinkToFit|ShrinkToFill", "PaddingPolicy":"Pad|NoPad", "DisplayAspectRatio":"auto|1:1|4:3|3:2|16:9", "Resolution":"auto|width in pixelsxheight in pixels" <not recommended>, "AspectRatio":"auto|1:1|4:3|3:2|16:9" <not recommended>, "Watermarks":[ { "Id":"unique identifier up to 40 characters", "MaxWidth":"[16,Video:MaxWidth]px|[0,100]%", "MaxHeight":"[16,Video:MaxHeight]px|[0,100]%", "SizingPolicy":"Fit|Stretch|ShrinkToFit", "HorizontalAlign":"Left|Right|Center", "HorizontalOffset":"[0,100]%|[0,Video:MaxWidth]px", "VerticalAlign":"Top|Bottom|Center", "VerticalOffset":"[0,100]%|[0,Video:MaxHeight]px", "Opacity":"[0,100]", "Target":"Content|Frame" }, {...} ] }, "Thumbnails":{ "Format":"jpg|png", "Interval":"number of seconds between thumbnails", "MaxWidth":"auto|[32,4096]", "MaxHeight":"auto|[32,3072]", "SizingPolicy":"Fit|Fill|Stretch|Keep|ShrinkToFit|ShrinkToFill", "PaddingPolicy":"Pad|NoPad", "Resolution":"width in pixelsxheight in pixels" <not recommended>, "AspectRatio":"auto|1:1|4:3|3:2|16:9" <not recommended> } }

요청 파라미터

이 작업은 요청 파라미터를 사용하지 않습니다.

요청 헤더

이 작업은 모든 작업에 일반적인 요청 헤더만 사용합니다. 일반적인 요청 헤더에 대한 내용은 HTTP 헤더 콘텐츠 섹션을 참조하세요.

요청 본문

요청 본문의 JSON 문자열에는 CreatePreset 작업에 대한 입력 객체가 포함되어 있습니다. 입력 객체에 대한 자세한 내용은 Elastic Transcoder 프리셋을 생성할 때 지정하는 설정 섹션을 참조하세요.

응답

조건

Status: 201 Created x-amzn-RequestId: c321ec43-378e-11e2-8e4c-4d5b971203e9 Content-Type: application/json Content-Length: number of characters in the response Date: Mon, 14 Jan 2013 06:01:47 GMT { "Preset":{ "Id":"Id for the new preset", "Type":"Custom|System", "Name":"preset name", "Description":"preset description", "Container":"flac|flv|fmp4|gif|mp2|mp3|mp4|mpg|mxf|oga|ogg|ts|wav|webm", "Audio":{ "Codec":"AAC|flac|mp2|mp3|pcm|vorbis", "CodecOptions":{ "Profile":"auto|AAC-LC|HE-AAC|HE-AACv2", "BitDepth":"8|16|24|32", "Signed":"Signed|Unsigned", "BitOrder":"LittleEndian" }, "SampleRate":"auto|22050|32000|44100|48000|96000", "BitRate":"audio bit rate of output file in kilobits/second", "Channels":"auto|0|1|2", "AudioPackingMode":"SingleTrack|OneChannelPerTrack| OneChannelPerTrackWithMosTo8Tracks" }, "Video":{ "Codec":"gif|H.264|mpeg2|vp8|vp9", "CodecOptions":{ "Profile":"baseline|main|high|0|1|2|3", "Level":"1|1b|1.1|1.2|1.3|2|2.1|2.2|3|3.1|3.2|4|4.1", "MaxReferenceFrames":maximum number of reference frames, "MaxBitRate":"maximum bit rate", "BufferSize":"maximum buffer size", "InterlacedMode":"Progressive|TopFirst|BottomFirst|Auto", "ColorSpaceConversionMode":"None|Bt709ToBt601|Bt601ToBt709|Auto", "ChromaSubsampling":"yuv420p|yuv422p", "LoopCount":"Infinite|[0,100]" }, "KeyframesMaxDist":maximum frames between key frames, "FixedGOP":"true|false", "BitRate":"auto|video bit rate of output file in kilobits/second", "FrameRate":"auto|10|15|23.97|24|25|29.97|30|50|60", "MaxFrameRate":"10|15|23.97|24|25|29.97|30|50|60", "MaxWidth":"auto|[128,4096]", "MaxHeight":"auto|[96,3072]", "SizingPolicy":"Fit|Fill|Stretch|Keep|ShrinkToFit|ShrinkToFill", "PaddingPolicy":"Pad|NoPad", "DisplayAspectRatio":"auto|1:1|4:3|3:2|16:9", "Resolution":"width in pixelsxheight in pixels" <not recommended>, "AspectRatio":"auto|1:1|4:3|3:2|16:9" <not recommended> "Watermarks":[ { "Id":"unique identifier up to 40 characters", "MaxWidth":"[16,Video:MaxWidth]px|[0,100]%", "MaxHeight":"[16,Video:MaxHeight]px|[0,100]%", "SizingPolicy":"Fit|Stretch|ShrinkToFit", "HorizontalAlign":"Left|Right|Center", "HorizontalOffset":"[0,100]%|[0,Video:MaxWidth]px", "VerticalAlign":"Top|Bottom|Center", "VerticalOffset":"[0,100]%|[0,Video:MaxHeight]px", "Opacity":"[0,100]", "Target":"Content|Frame" } ] }, "Thumbnails":{ "Format":"jpg|png", "Interval":"number of seconds between thumbnails", "MaxWidth":"auto|[32,4096]", "MaxHeight":"auto|[32,3072]", "SizingPolicy":"Fit|Fill|Stretch|Keep|ShrinkToFit|ShrinkToFill", "PaddingPolicy":"Pad|NoPad", "Resolution":"width in pixelsxheight in pixels", "AspectRatio":"auto|1:1|4:3|3:2|16:9" } }, "Warning":"message about codec compatibility" }

응답 헤더

이 작업은 대부분의 응답에 일반적인 응답 헤더만 사용합니다. 일반적인 응답 헤더에 대한 내용은 HTTP 응답 섹션을 참조하세요.

응답 본문

작업을 만들면 Elastic Transcoder는 사용자가 요청에 지정한 값을 반환합니다. 자세한 내용은 요청 본문 섹션을 참조하세요.

또한 Elastic Transcoder는 다음 값을 반환합니다.

(자동) Id

새로운 프리셋의 식별자입니다. 이 값을 사용하여 프리셋의 설정을 가져오거나 프리셋을 삭제할 수 있습니다.

(자동) Type

프리셋이 Elastic Transcoder가 제공하는 기본 프리셋(System) 또는 사용자가 정의한 프리셋(Custom)인지 여부입니다.

(자동) Warning

프리셋에 대한 설정이 Codec의 표준과 호환되지는 않지만 해당 설정이 허용 가능한 출력을 생성할 수 있는 경우 Elastic Transcoder는 프리셋을 생성하고 프리셋 설정이 호환되지 않는 이유를 설명하는 경고를 포함합니다.

오류

Elastic Transcoder 예외 및 오류 메시지에 대한 자세한 내용은 Elastic Transcoder에서의 오류 처리 섹션을 참조하세요.

예시

다음 예제 요청은 DefaultPreset이라는 프리셋을 생성합니다.

예제 요청

POST /2012-09-25/presets HTTP/1.1 Content-Type: application/json; charset=UTF-8 Accept: */* Host: elastictranscoder.Elastic Transcoder endpoint.amazonaws.com:443 x-amz-date: 20130114T174952Z Authorization: AWS4-HMAC-SHA256 Credential=AccessKeyID/request-date/Elastic Transcoder endpoint/elastictranscoder/aws4_request, SignedHeaders=host;x-amz-date;x-amz-target, Signature=calculated-signature Content-Length: number of characters in the JSON string { "Name":"DefaultPreset", "Description":"Use for published videos", "Container":"mp4", "Audio":{ "Codec":"AAC", "CodecOptions":{ "Profile":"AAC-LC" }, "SampleRate":"44100", "BitRate":"96", "Channels":"2" }, "Video":{ "Codec":"H.264", "CodecOptions":{ "Profile":"main", "Level":"2.2", "MaxReferenceFrames":"3", "MaxBitRate":"", "BufferSize":"", "InterlacedMode":"Progressive", "ColorSpaceConversionMode":"None" }, "KeyframesMaxDist":"240", "FixedGOP":"false", "BitRate":"1600", "FrameRate":"auto", "MaxFrameRate":"30", "MaxWidth":"auto", "MaxHeight":"auto", "SizingPolicy":"Fit", "PaddingPolicy":"Pad", "DisplayAspectRatio":"auto", "Watermarks":[ { "Id":"company logo", "MaxWidth":"20%", "MaxHeight":"20%", "SizingPolicy":"ShrinkToFit", "HorizontalAlign":"Right", "HorizontalOffset":"10px", "VerticalAlign":"Bottom", "VerticalOffset":"10px", "Opacity":"55.5", "Target":"Content" } ] }, "Thumbnails":{ "Format":"png", "Interval":"120", "MaxWidth":"auto", "MaxHeight":"auto", "SizingPolicy":"Fit", "PaddingPolicy":"Pad" } }

샘플 응답

Status: 201 Created x-amzn-RequestId: c321ec43-378e-11e2-8e4c-4d5b971203e9 Content-Type: application/json Content-Length: number of characters in the response Date: Mon, 14 Jan 2013 06:01:47 GMT { "Preset":{ "Id":"5555555555555-abcde5", "Type":"Custom", "Name":"DefaultPreset", "Description":"Use for published videos", "Container":"mp4", "Audio":{ "Codec":"AAC", "CodecOptions":{ "Profile":"AAC-LC" }, "SampleRate":"44100", "BitRate":"96", "Channels":"2" }, "Video":{ "Codec":"H.264", "CodecOptions":{ "Profile":"main", "Level":"2.2", "MaxReferenceFrames":"3", "MaxBitRate":"", "BufferSize":"", "InterlacedMode":"Progressive", "ColorSpaceConversionMode":"None|Bt709ToBt601|Bt601ToBt709|Auto" }, "KeyframesMaxDist":"240", "FixedGOP":"false", "BitRate":"1600", "FrameRate":"auto", "MaxFrameRate":"30", "MaxWidth":"auto", "MaxHeight":"auto", "SizingPolicy":"Fit", "PaddingPolicy":"Pad", "DisplayAspectRatio":"auto", "Watermarks":[ { "Id":"company logo", "MaxWidth":"20%", "MaxHeight":"20%", "SizingPolicy":"ShrinkToFit", "HorizontalAlign":"Right", "HorizontalOffset":"10px", "VerticalAlign":"Bottom", "VerticalOffset":"10px", "Opacity":"55.5", "Target":"Content" } ] }, "Thumbnails":{ "Format":"png", "Interval":"120", "MaxWidth":"auto", "MaxHeight":"auto", "SizingPolicy":"Fit", "PaddingPolicy":"Pad" } }, "Warning":"" }