如何为 AWS mediaconvert 设置分辨率
How to set resoutlion for AWS media convert
我正计划使用 aws mediaconvert 通过 aws sdk 制作具有不同分辨率的视频的多个不同副本,我注意到示例中不包括分辨率,所以我如何能够指定它(告诉例如 1920 x 1080)?
"Outputs" => [
[
"VideoDescription" => [
??? "Resolution" => "DEFAULT", ???
"ScalingBehavior" => "DEFAULT",
"TimecodeInsertion" => "DISABLED",
"AntiAlias" => "ENABLED",
"Sharpness" => 50,
"CodecSettings" => [
"Codec" => "H_264",
"H264Settings" => [
...
未测试,但如果您查看工作请求 json,它有“宽度”和“高度”参数。这些将在“VideoDescription”对象中。您可以尝试看看是否有效:
"VideoDescription": {
"ScalingBehavior": "DEFAULT",
"TimecodeInsertion": "DISABLED",
"AntiAlias": "ENABLED",
"Sharpness": 50,
"CodecSettings": {
"Codec": "H_264",
"H264Settings": {
"InterlaceMode": "PROGRESSIVE",
"NumberReferenceFrames": 3,
"Bitrate": 5000000
...
}
},
"AfdSignaling": "NONE",
"DropFrameTimecode": "ENABLED",
"RespondToAfd": "NONE",
"ColorMetadata": "INSERT",
"Width": 1920,
"Height": 1080
}
我正计划使用 aws mediaconvert 通过 aws sdk 制作具有不同分辨率的视频的多个不同副本,我注意到示例中不包括分辨率,所以我如何能够指定它(告诉例如 1920 x 1080)?
"Outputs" => [
[
"VideoDescription" => [
??? "Resolution" => "DEFAULT", ???
"ScalingBehavior" => "DEFAULT",
"TimecodeInsertion" => "DISABLED",
"AntiAlias" => "ENABLED",
"Sharpness" => 50,
"CodecSettings" => [
"Codec" => "H_264",
"H264Settings" => [
...
未测试,但如果您查看工作请求 json,它有“宽度”和“高度”参数。这些将在“VideoDescription”对象中。您可以尝试看看是否有效:
"VideoDescription": {
"ScalingBehavior": "DEFAULT",
"TimecodeInsertion": "DISABLED",
"AntiAlias": "ENABLED",
"Sharpness": 50,
"CodecSettings": {
"Codec": "H_264",
"H264Settings": {
"InterlaceMode": "PROGRESSIVE",
"NumberReferenceFrames": 3,
"Bitrate": 5000000
...
}
},
"AfdSignaling": "NONE",
"DropFrameTimecode": "ENABLED",
"RespondToAfd": "NONE",
"ColorMetadata": "INSERT",
"Width": 1920,
"Height": 1080
}