Skip to content

Instantly share code, notes, and snippets.

H.264 (AVC) Profile & Level Support

Profile Level Maximum Resolution Maximum Frame Rate Bit Depth
Baseline 1 128×96 30.9 fps 8-bit
Baseline 1.1 176×144 30.3 fps 8-bit
Baseline 1.2 320×240 20.0 fps 8-bit
Baseline 1.3 352×288 30.0 fps 8-bit
Main 2 352×288 30.0 fps 8-bit
Main 2.1 352×480 30.0 fps 8-bit

File Format Magic Numbers Cheat Sheet

Detail Explanation

Magic numbers are unique identifiers found at the beginning of files that help determine their format. These byte sequences enable software and operating systems to recognize file types even when the file extension is missing or incorrect. This cheat sheet lists the magic numbers for various file formats, including video, audio, image, archive, document, executable, and database files.

Steps to Read a File in Hex in Terminal

To check the magic number of a file in a terminal, follow these steps:

On Linux/macOS:

  1. Open a terminal.

FFmpeg Video Transcoding Parameters Documentation

This document provides a comprehensive list of FFmpeg parameters commonly used for video transcoding, covering input parameters, video and audio codecs, encoding settings, filters, output format, streaming options, and advanced parameters.


1. Input Parameters

These parameters specify the input file and network protocols.

| Parameter | Description | Example |