gpt4 book ai didi

amazon-web-services - 如何从 Amazon Elastic Transcoder 获取视频时长?

转载 作者:行者123 更新时间:2023-12-04 08:09:43 25 4
gpt4 key购买 nike

我正在使用此服务,但需要知道视频长度,但在 AWS 文档或 AWS 响应中没有信息。

最佳答案

Get 作业方法返回包含输出持续时间的响应。请参见下面的示例:

{
"Job":{
"Id":"Id that Elastic Transcoder assigned to the job",
"Input":{
"AspectRatio":"auto|1:1|4:3|3:2|16:9",
"Container":"auto|3gp|asf|avi|divx|flv|mkv|mov|mp4|
mpeg|mpeg-ps|mpeg-ts|mxf|ogg|vob|wav|webm",
"FrameRate":"auto|10|15|23.97|24|25|29.97|30|60",
"Interlaced":"auto|true|false",
"Key":"name of the file to transcode",
"Resolution":"auto"
},
"Output":{
"Duration":"duration in seconds",
"Height":"height in pixels",
"Id":"sequential counter",
"Key":"name of the transcoded file",
"PresetId":"PresetId for the job",
"Rotate":"auto|0|90|180|270",
"SegmentDuration":"[1,60]",
"Status":"Submitted|In Progress|Complete|Canceled|Error",
"StatusDetail":"additional information about job status",
"ThumbnailPattern":""|"pattern",
"Width":"width in pixels"
},
"Outputs":[
{
"Duration":"duration in seconds",
"Height":"height in pixels",
"Id":"sequential counter",
"Key":"name of the transcoded file",
"PresetId":"PresetId for the job",
"Rotate":"auto|0|90|180|270",
"SegmentDuration":"[1,60]",
"Status":"Submitted|In Progress|Complete|Canceled|Error",
"StatusDetail":"additional information about job status",
"ThumbnailPattern":""|"pattern",
"Width":"width in pixels"
},
{...}
],
"PipelineId":"Id of the pipeline that transcoded the job",
"Playlists":[
{
"Format":"HLSv3",
"Name":"name, no / character allowed",
"OutputKeys":[
"Outputs:Key to include in this playlist",
...
]
},
{...}
],
"Status":"Submitted|Progressing|Complete|Canceled|Error"
}
}

有关详细信息,请参阅:http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/get-job.html

关于amazon-web-services - 如何从 Amazon Elastic Transcoder 获取视频时长?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16589307/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com