1

我计划使用 aws mediaconvert 通过 aws sdk 制作具有不同分辨率的多个不同视频副本,我注意到示例中没有包含分辨率,所以我将如何指定它(告诉它做 1920 年例如1080)?

            "Outputs" => [
                [
                    "VideoDescription" => [
                         ??? "Resolution" => "DEFAULT", ???
                        "ScalingBehavior" => "DEFAULT",
                        "TimecodeInsertion" => "DISABLED",
                        "AntiAlias" => "ENABLED",
                        "Sharpness" => 50,
                        "CodecSettings" => [
                            "Codec" => "H_264",
                            "H264Settings" => [
...
4

1 回答 1

1

未经测试,但如果您查看作业请求 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
}
于 2020-09-11T11:22:00.437 回答