[英]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.