Amazon Elastic Transcoder segmentDuration用于创建作业 [英] Amazon Elastic Transcoder segmentDuration for creating jobs

查看:109
本文介绍了Amazon Elastic Transcoder segmentDuration用于创建作业的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Amazon S3进行视频文件的上传和转码。为了创建工作,我使用了 1351620000001-000001 作为Amazon Elastic Transcoder中mp4格式的现有预设。但是我收到以下错误:

I am using Amazon S3 for uploading and transcoding of video files. For creating a job I used 1351620000001-000001 as the preset from the existing ones for mp4 format from Amazon Elastic Transcoder. But I get the following error:


未捕获的Aws\ElasticTranscoder\Exception\ValidationException:AWS错误代码:ValidationException,状态代码:400,AWS请求ID:dbf2833a-5375-11e4-a2d3-bb1da889e1d8,AWS错误类型:client,AWS错误消息:SegmentDuration'10'不是预设1351620000001-000001的有效选项,因为该容器不是ts或fmp4 。

"Uncaught Aws\ElasticTranscoder\Exception\ValidationException: AWS Error Code: ValidationException, Status Code: 400, AWS Request ID: dbf2833a-5375-11e4-a2d3-bb1da889e1d8, AWS Error Type: client, AWS Error Message: SegmentDuration '10' is not a valid option for preset 1351620000001-000001, because the container is not ts or fmp4."

有人可以帮我解决问题吗?

Can anyone please help me sort out the issue?

推荐答案

您已选择创建mp4输出,并且还指定了段持续时间。这些选项不能一起指定。 MP4始终将整个电影输出到一个文件中。段用于自适应比特率格式,其中电影被分成许多(也许成千上万个)小文件,每个文件包含几秒钟的视频。在这种情况下,段大小指定每个文件中要放多少秒的视频。

You have chosen to create an mp4 output, and specified also specified a segment duration. These options cannot be specified together. MP4 always outputs the entire movie into one file. Segments are used in adaptive bit rate formats where the movie is broken up into many (perhaps thousands) of small files, each containing a few seconds of video. In that case, the segment size specifies how many seconds of video to put in each file.

自适应比特率输出示例包括HLS(将每个段写入ts文件)和平滑流式传输(将每个段写入fmp4文件)。 iOS设备和较新的Android手机使用HLS。电视和台式计算机使用平滑流,最著名的是流Netflix内容。

Examples of adaptive bit rate outputs include HLS (which writes each segment in a ts file), and Smooth Streaming (which writes each segment in a fmp4 file). HLS is used by iOS devices and newer Android phones. Smooth Streaming is used by televisions and desktop computers, most famously to stream Netflix content.

您选择的mp4是要下载整个内容时最常用的格式。文件,尽管可以在下载完成之前开始播放。这是iTunes,YouTube和Facebook常用的。

Your choice, mp4, is the most common format used when you want to download the entire file, though playback can begin before the download completes. This was commonly used by iTunes, YouTube, and Facebook.

这篇关于Amazon Elastic Transcoder segmentDuration用于创建作业的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆