简体   繁体   English

使用 Java API 的 VideoDescription 宽度的 AWSMediaConvert 客户端抛出错误

[英]AWSMediaConvert client throwing error for VideoDescription width using Java API

I am using AWS Java API for creating AWS Elemental MediaConvert job with VideoDescription width 1920. When I invoke createJob() method using AWSMediaConvert client, it throws error saying ->我正在使用 AWS Java API 创建 VideoDescription 宽度为 1920 的 AWS Elemental MediaConvert 作业。当我使用 AWSMediaConvert 客户端调用 createJob() 方法时,它会抛出错误提示 ->

com.amazonaws.services.mediaconvert.model.BadRequestException: /outputGroups/0/outputs/2/videoDescription/width: Should be less than or equal to 832 (Service: AWSMediaConvert; Status Code: 400; Error Code: BadRequestException; Request ID: e794fca3-2e80-4953-8b05-1a303f5ec1c9; Proxy: null)

Searched in google as well as was elemental mediaconvert docs, I did not find any solution.在 google 和 elemental mediaconvert 文档中搜索,我没有找到任何解决方案。 Apart from VideoDescription width, other job setting details are proper.除了 VideoDescription 宽度外,其他作业设置细节都是正确的。

Using below dependency:使用以下依赖项:


<dependency>
            <groupId>com.amazonaws</groupId>
            <artifactId>aws-java-sdk-mediaconvert</artifactId>
            <version>1.11.823</version>
        </dependency>
        <dependency>
            <groupId>com.amazonaws</groupId>
            <artifactId>aws-java-sdk-core</artifactId>
            <version>1.11.823</version>
        </dependency>

Could anyone tell why I am getting this error?谁能告诉我为什么会收到此错误?

Is there any dependency of resolution width on another job setting parameter?分辨率宽度是否依赖于另一个作业设置参数? Any help is appreciated.任何帮助表示赞赏。

MediaConvert has some pre-validation rules before it will create a job. MediaConvert 在创建作业之前有一些预验证规则。 Settings such as output resolution, bitrate, and frame rate need to fall in compliance with whatever video codec specification you are attempting to create. output 分辨率、比特率和帧速率等设置需要符合您尝试创建的任何视频编解码器规范。 This is dictated by Profile and Level you are using for a given codec.这由您用于给定编解码器的配置文件和级别决定。

The service has an AUTO option for the Profile Level setting.该服务的配置文件级别设置有一个自动选项。 This will allow the encoder to choose the best Level with the given settings, if there is one.这将允许编码器选择具有给定设置的最佳级别(如果有的话)。 If the encoder cannot determine a valid level, the job will ERROR and provide the following error code and message:如果编码器无法确定有效级别,作业将出错并提供以下错误代码和消息:

1040 No valid level could be found. 1040 找不到有效级别。 Check profile.检查个人资料。

Here are a list of some supported MediaConvert video codecs and their profile and level limitations:以下是一些受支持的 MediaConvert 视频编解码器及其配置文件和级别限制的列表:

H.264 Profile/Level https://en.wikipedia.org/wiki/Advanced_Video_Coding#Levels H.264 配置文件/级别https://en.wikipedia.org/wiki/Advanced_Video_Coding#Levels

H.265 Profile/Level https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding_tiers_and_levels H.265 配置文件/级别https://en.wikipedia.org/wiki/High_Efficiency_Video_Coding_tiers_and_levels

MPEG2 Profile/Level https://en.wikipedia.org/wiki/H.262/MPEG-2_Part_2#Video_profiles_and_levels MPEG2 配置文件/级别https://en.wikipedia.org/wiki/H.262/MPEG-2_Part_2#Video_profiles_and_levels

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用 Lambda 的 AWS SAM API 端点在使用“sam start local-api”在本地运行时抛出错误 - AWS SAM API endpoint using a Lambda is throwing error when it runs locally with "sam start local-api" API 网关 POST 传递字段并抛出错误 - API gateway POST passing fields and throwing error 从 Java 客户端应用登录 Apigee 管理 API - Login to Apigee management API from Java client app 错误:找不到模块“aws-api-gateway-client” - Error: Cannot find module 'aws-api-gateway-client' Flutter Stream 生成器抛出错误 null,我无法使用 Doc() 访问当前用户 - Flutter Stream builder throwing an Error of null and i cannot access current user using Doc() API 网关在响应时间超过 3000 毫秒时抛出错误 - API Gateway throwing error on response taking longer than 3000 ms API 抛出错误的响应代码 500 内部错误而不是 204 - The API is throwing wrong response code 500 internal error instead 204 java.lang.NoSuchMethodError: 'boolean com.google.api.client.http.HttpTransport.isMtls() - java.lang.NoSuchMethodError: 'boolean com.google.api.client.http.HttpTransport.isMtls() Gmail API 服务帐户 unauthorized_client 错误,即使具有全域权限 - Gmail API service account unauthorized_client error even with domain-wide authority Cognito jwt 令牌验证抛出 400 错误 - Cognito jwt token validation throwing 400 error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM