Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Transcoder of Amazon AWS

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

1 Transcoder introduction 1.1 what is Amazon Transcoder

Amazon Elastic Transcoder runs video transcoding in a cloud environment. It is an affordable, highly scalable and easy-to-use video conversion method that developers and enterprises can use to convert video files from source format (or "transcode") to other versions for playback on devices such as smartphones, tablets, and PC.

1.2 what are the functions of Transcoder

According to traditional practice, customers will face three major complexities when transcoding. First, customers need to purchase and manage transcoding software, which can be very expensive and difficult to maintain and configure. Secondly, the production of transcoding output for a variety of different devices usually involves trial and error correction to find appropriate transcoding settings, in order to provide end users with normal playback and good output video. This kind of experiment and error correction process will waste computing resources. Finally, traditional coding solutions cannot scale according to the customer's business needs. In addition, with traditional solutions, customers also need to predict in advance how much capacity needs to be provisioned, which inevitably means a waste of money (if they allocate too much capacity and there is idle capacity) or business delays (if their provisioned capacity is too small, you need to wait for the coding job to finish).

With Amazon Elastic Transcoder, developers only need to use the Web-based console or API to create transcoding jobs to specify input files, transcoding settings, and output files. This eliminates three complex tasks: first, there is no need to purchase, configure, and manage basic transcoding software. Second, Amazon Elastic Transcoder has predefined preset templates for a variety of devices, freeing customers from finding the right settings for different devices through trial and error correction. The system also supports custom preset templates, allowing customers to adjust the output according to specific transcoding requirements, such as special size or bit rate requirements. Finally, Amazon Elastic Transcoder can automatically expand and contract according to the customer's workload, eliminating the problem of wasting capacity and waiting for jobs to complete. It also enables customers to process multiple jobs in parallel and organize transcoding workflows using a feature called transcoding pipes. With the piping capabilities of Amazon Elastic Transcoder, customers can set up pipelines for a variety of scenarios to ensure that file transcoding is completed in the time and manner needed, allowing them to scale efficiently and seamlessly for harsh workloads. For example, news organizations may want to have "high priority" transcoding channels dedicated to instant news, or user-generated content sites may want to have separate channels to output low, medium, and high-resolution content to different target devices.

Amazon Elastic Transcoder is built taking advantage of the extensibility and flexibility of other Amazon Web Services. It uses Amazon Elastic Compute Cloud (Amazon EC2) to run transcoding jobs. The scale of Amazon EC2 allows you to complete large transcoding operations quickly and reliably. Amazon Elastic Transcoder is built instead of dealing with content stored in Amazon Simple Storage Service (Amazon S3), so you can economically and permanently store large or small media libraries. You can even get information about the status of transcoding jobs through Amazon Simple Notification Service (Amazon SNS).

Amazon Elastic Transcoder supports the AWS management console and service API, so you can integrate transcoding capabilities into your own applications and services.

To use Amazon Elastic Transcoder, you need to do the following:

Create a transcoding pipeline to specify the input Amazon S3 segment, the output Amazon S3 segment, and the AWS Identity and Access Management (IAM) role that the service will use to access your files.

Create a transcoding job by specifying the input file, the output file, and the transcoding preset template to be used (you can choose from a set of predefined transcoding preset templates, such as 720p, or create your own custom transcoding preset template). You can optionally specify specific transcoding parameters for thumbnails and jobs, such as frame rate and resolution.

When you run a transcoding job on Amazon Elastic Transcoder, you can:

The information of the status of the transcoding job is automatically received through the notification function.

Query the status of the transcoding job.

Manage transcoding jobs by stopping, starting, or canceling operations.

1.3New features of Transcoder

Seven new enhancements have been added to Amazon Elastic Transcoder that make it easier to encode and transfer your content to a wider range of video devices and players. These new features are included in our standard pricing and can be accessed through Amazon Elastic Transcoder API and the administrative console.

1.3.1 HTTP Live Streaming (HLS) support

Allows you to create videos that can be played in compatible Apple iOS, Android devices, set-top boxes, and Web browser players. With HLS support, you can now easily deliver your content without a streaming server, simply by pointing your users to video in Amazon S3 or Amazon CloudFront.

1.3.2 WebM support

Allows you to transcode content into VP8 video and Vorbis audio for playback in browsers such as Firefox that do not support H.264 and AAC.

1.3.3 MPEG2 TS output container support

Enables you to output the output transport stream that is commonly used in broadcast systems.

1.3.4 multiple outputs per job

You can easily create different renderings for the same content. Instead of creating a transcoding job for each rendering, you can now create a job to generate multiple renderings. For example, you can use one job to create H.264, HLS, and WebM versions of the same video for transmission to multiple platforms.

1.3.5 automatic video bit rate optimization

You can avoid the conjecture of choosing the appropriate bit rate for your video content. With this feature, Amazon Elastic Transcoder will automatically adjust the bit rate to optimize the visual quality of the transcoded output.

1.3.6 enhanced aspect ratio size and strategy

It makes it easier to resize your content to fit your output frame. You can use these new settings in the transcoding preset template to precisely control the extension, trimming, trimming, and stretching options to get the output you expect, no matter how the input is formatted.

1.3.7 Integration of Amazon S3 permissions and storage option

Allows you to set permissions for your output files within Amazon Elastic Transcoder. The system then creates the file with the appropriate permissions that it already has, making it ready for delivery to the end user.

1.4 Why Amazon Transcoder

Amazon Elastic Transcoder can transparently and automatically manage all aspects of the transcoding process for you. There is no need to manage software, extend hardware, adjust performance, or manage transcoding infrastructure. You only need to create a transcoding "job" to specify the location of the source video and how to convert it. Amazon Elastic Transcoder also provides transcoding preset templates in common formats, which means that for common devices, you don't have to guess which setting works better. All of these features can be used through the service API and the AWS management console.

As with other Amazon Web Services, there is no need to sign a contract or promise monthly usage to use Amazon Elastic Transcoder-you only have to pay for the transcoding time (in minutes) and the resolution of the transcoded content.

1.1.5 basic concepts of Transcoder 1.5.1 Jobs

Jobs is responsible for transcoding. Each Job can convert one file to up to 30 files in different formats. For example, if you want to convert a media file to six different formats, you can just define a job to do the conversion.

1.5.2 Pipeline

Pipelines refers to the queue that manages the Jobs. When defining a job, you need to specify which pipeline the job will be added to. Amazon Transcoder will be executed in the order in which jobs is added to pipeline. If you configure job with more than one format conversion defined, Transcoder will also create output files in different formats in order.

A common configuration is to create two pipelines, one for the regular priority jobs and the other for the high priority jobs. Most of the jobs is added to the regular priority pipeline, and the jobs is added to the high priority pipeline only when a file needs to be transcoded immediately.

When a new job is created, if jobs already exists in the pipeline, Transcoder will sort the latest job and launch the execution of the job when all the resources required by the pipeline are available. If pipeline is using all the resources, Transcoder will launch the next job after the end of a running job.

A pipeline can execute multiple jobs at the same time, and the completion time of each job is different, depending on the file size to be converted and the specification of the job.

1.5.3 Preset

Presets are templates that contain most of the configuration for converting a media file from one format to another. Amazon Transcoder provides two types of presets: some of the presets predefined by Transcoder and the presets that can be customized by users.

1.5.4 Notifications

Notifications gives you the option to configure Amazon Transcoder. And Amazon Simple Notification Service allows you to check the status of jobs: when job was started, when job was completed, and whether Transcoder caused warnings or errors during execution.

Notification is configured when the pipeline is created.

1.6 restrictions on the use of Transcoder

Amazon Transcoder has the following restrictions on Jobs, Pipelines, presets, and subject:

1. Maximum number of Pipelines: create up to 4 pipelines per Amazon account

two。 Maximum number of Jobs: 100000 per Pipeline

3. Maximum number of outputs: 30 per job

4. Presets: create up to 50 user-defined presets per Amazon account. Description: Amazon Transcoder provides a number of predefined presets, these presets are not within this limit.

2 Transcoder creates a pipeline using 2.1 Pipeline operation 2.1.1

Go to the Pipelines page in Amazon Transcoder Console and click the "Create New Pipeline" button:

After entering the pipeline definition page, you need to fill in some basic configuration information of pipeline on this page: the name of pipeline, the name of Bucket, the role of IAM, the bucket stored in the transcoded file and playlist, the bucket stored in thumbnails, and the optional Notifications configuration. After the configuration is complete, click the "Create Pipeline" button to create a new Pipeline.

2.1.2 operate pipeline

On the Pipelines page, you can also do some operations on pipelines: view the list, refresh, edit, pause, activate, delete, and so on.

2.2 Jobs Action 2.2.1 create Job

Go to the Jobs page of Transcoder and click the "Create New Job" button:

Next, you can follow the prompts to create a new Job.

2.2.2 find Jobs

Go to the Jobs page of Transcoder, where you can select different conditions to query Jobs in the Search page.

2.3 Presets Action 2.3.1 create Preset

Go to the Presets page of Transcoder and click the "Create New Preset" button:

Next, follow the prompts to fill in the basic information to create a custom preset.

2.3.2 operate Preset

On the Presets page of Transcoder, you can also do some basic operations on presets: view lists, refresh, copy, delete, and so on.

3 reference materials

Amazon Transcoder developer Guide "elastictranscoder-dg.pdf"

Http:// aws.amazon.com/elastictranscoder

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report