Video formats
Introduction
Learn to transcode with formats and codecs: MP4 (H.264, H.265, AV1), WebM (VP9), HLS, and JPG thumbnails.
Chunkify supports a wide range of video container formats and codecs. When you create a transcode job, the format parameter is used to define the video format and the codec used.
You must specify exactly one format per transcoding job. Using no format or multiple formats will result in an error.
Baisc transcode example
Here is a basic example of how to transcode a video using the mp4 format and the h264 codec:
import Chunkify from '@chunkify/chunkify';
const client = new Chunkify({
projectAccessToken: 'My Project Access Token',
});
// Transcode using h264 format with 720p resolution
const job = await client.jobs.create({
source_id: source.id,
format: {
id: 'mp4_h264',
height: 720,
}
});
Format and codec configuration
Once you have chosen your format and codec, you can configure your transcode job using various parameters. Some are common settings shared among the different format but some are specific to each one, see their individual page for more details:
See codecs and configuration available for MP4 format
See codec and configuration available for Webm format
Learn how to use HLS
Learn how to generate thumbnails in JPG format.