There are lot of exciting developments happening in the video encoding market. Much anticipated Alliance for Open media-backed AV1 decoders are starting to show up on mobile devices and in smart TVs. After a slow start, HEVC/H.265 is showing signs of growth and adoption. And COVID-19 is driving a surge in demand for the two most popular encoding use cases:
Encoding setups vary by use case, and the user has many options. Which encoder to use and with which quality settings? On-prem encoding or cloud-based? Encode with hardware or software? Despite all of these options, a few trends are clear:
In this blog, we are showcasing price and performance benefits of performing software-based H.264 encoding on AWS Graviton2 based instances. For this comparison we are using Amazon Web Services (AWS), which is consistent with the choice of many video encoders. For Encoding.com’s customers, AWS S3 is their preferred storage location - representing 81% of ingested content. Within AWS’ cloud we’ll be looking at their most recent “compute-optimized” offerings from two CPU vendors:
Before we discuss results, let us look at the following three (3) most important business criteria for VOD operators.
Our testing takes the peak aggregate frames per second of each instance, extrapolates that performance out to one hour, and then applies the price to rent that instance for one hour (on-demand, US east pricing). From that we get the price/performance results in the following figure 1.
Figure 1: x264 encode price/performance for c6g.2xlarge and c5.2xlarge instances. Pricing used is US East, on-demand.
Table 1: Peak frames/hour and peak frames/$ for c6g.2xlarge and c5.2xlarge instances.
For those of you encoding on c5 instances today, Graviton2 based C6g instances provide a very compelling 36% price/performance benefit.
Here is our measured performance (aggregate frames/sec) for c5.2xlarge and c6g.2xlarge instances (8 vCPU per instance3) while encoding the ‘ducks_take_off_1080p50.y4m’ input file with ‘medium’ encoding preset using x264 (x264 is an open-source H.264 encoder). We performed a ‘sweep’ of two parameters:
Figure 2: x264 encode performance (aggregate frames per second) for c5.2xlarge and c6g.2xlarge instances.
What you can see from a performance standpoint, once you enter the peak performance range of each instance, is that the c6g.2xlarge instance outperforms the c5.2xlarge instance by around 9%.
The end-to-end cost to deliver high-quality video extends well beyond encoding costs and mileage will vary for each specific use case. However, if you encode a lot of video for your business and hare looking to reduce costs, now is the time to check out Neoverse N1 and AWS Graviton2-based C6g instances.
Learn more about AWS Graviton2
Are the scripts used for this profiling available on github ?Wondering if c5 vs c6g comparison hold with c5a vs c6g as well