Media Transcoding
Resizing and re-encoding images/videos, how to do it, and the importance of it to a media-centric website.
Transcoding Overview
Understanding how to transcode media efficiently is critical to website performance and cost.
Transcoding: what it is, and why it is important
Definition Transcoding means resizing an image or other media to multiple sizes, so that users c...
The execution flow for image and video transcoding
In basic form, the way both image and video transcoding is implemented involves using 'serverless...
Options for implementing image and video transcoding
When it comes to transcoding media, you have two main options you can choose from in terms of how...
Displaying transcoded media efficiently
For both page loading times and CDN costs, you need to ensure that you serve images and videos at...
Image Transcoding
How to set up image transcoding, image-specific considerations, etc.
Image Formats and Codecs
Image quality (particularly important for JPEGs) For JPEGs in particular, quality is not just a ...
Using a pre-built CDN image transcoding solution
When transcoding images, you have two options: use a prebuilt solution, or make one. Most CDN pr...
Implementing an image transcoding solution yourself
If you are going to implement your own image transcoding solution, the first thing to understand ...
Videos: Overview
Much more complex than transcoding images.
Video Formats and Codecs
Just like with images, choosing your video codec is a crucial performance and quality considerati...
Considerations for displaying upload previews
Depending on your use case, and how long it's acceptable for your users to wait, there's a few di...
Financial cost of video transcoding
Whether you're transcoding a given video using a serverless code function, or a dedicated transco...
Using a pre-built video transcoding solution
A lot of cloud providers, particularly CDN providers, offer some form of video streaming service,...
Videos: Serverless Code
Transcoding videos with serverless code functions, use cases and implementation.
Use cases and limitations
Serverless code functions definitely can have a place in video transcoding, but because of the mu...
Implementation
Prerequisites Before reading this page, read the page on implementing image transcoding solution...
Implementing a thumbnail generator
Prerequisites Make sure you've read the previous page on implementing video transcoding with ser...
Implementing an animated preview generator
Generating animated previews with ffmpeg The basic command for animated preview generation looks...
Videos: Dedicated Services
Using dedicated transcoding services, pros and cons, etc.
Overview
Most cloud providers have some form of dedicated transcoding service that is specifically designe...
Implementation: MediaConvert
To transcode large video files that a serverless code function can't handle, you need to use a de...
Implementation: EventBridge & Lambda
Getting the result of the MediaConvert job Since creating the job command doesn't tell us anythi...