# Glossary

> The terms used in the docs of the benchmark-ffmpeg image.

Acronyms and terms used on this image's pages. See the [site-wide glossary](https://docs.sparecores.com/glossary.md) for all terms.

## A {#letter-a}

### AAC {#aac}

**Advanced Audio Coding**: A lossy audio codec standardized in MPEG-2 and MPEG-4 as the successor of MP3. It sounds better than MP3 at the same bitrate, and it is the usual audio track of MP4 files and streaming video. See [FFmpeg AAC encoder](https://ffmpeg.org/ffmpeg-codecs.html#aac).

### AV1 {#benchmark-ffmpeg-av1}

**AOMedia Video 1**: A royalty-free video codec by the Alliance for Open Media, the successor of VP9. It compresses better than H.264 and HEVC at the same quality, at the cost of slower encoding. Common encoders are libaom, SVT-AV1 and rav1e. See [Specification](https://aomedia.org/specifications/av1/).

### AWS {#aws}

**Amazon Web Services**: The cloud computing platform of Amazon, launched in 2006 and the largest public cloud by market share. It offers hundreds of services, from virtual machines (EC2) and object storage (S3) to managed databases and machine learning. See [AWS](https://aws.amazon.com/).

## C {#letter-c}

### CC BY 3.0 {#cc-by-3-0}

**Creative Commons Attribution 3.0**: A Creative Commons license that allows anyone to copy, adapt and use a work, also commercially, as long as they credit its author. See [License](https://creativecommons.org/licenses/by/3.0/).

### CC0 1.0 {#cc0-1-0}

**Creative Commons Zero 1.0**: A Creative Commons dedication with which authors waive all their copyright in a work, placing it as close to the public domain as the law allows. Anyone may use the work for any purpose, without attribution. See [License](https://creativecommons.org/publicdomain/zero/1.0/).

### CDN {#cdn}

**Content Delivery Network**: A network of distributed servers that cache content, such as web pages, images or video, and serve it from locations close to its users. It lowers latency for the users and offloads traffic from the origin server. See [Wikipedia](https://en.wikipedia.org/wiki/Content_delivery_network).

### cgroup v2 {#cgroup-v2}

**control groups v2**: The Linux kernel feature that organizes processes into a hierarchy of groups, and limits and accounts for the CPU, memory and I/O of each group. Container runtimes such as Docker use it to enforce the resource limits of a container. It replaced the original cgroup v1 with a single, unified hierarchy. See [Linux kernel docs](https://docs.kernel.org/admin-guide/cgroup-v2.html), [Docker resource constraints](https://docs.docker.com/engine/containers/resource_constraints/).

### CI {#ci}

**Continuous Integration**: The practice of building and testing code automatically on every change, usually on a hosted service such as GitHub Actions, so problems show up before the change is merged. See [Wikipedia](https://en.wikipedia.org/wiki/Continuous_integration).

### CPU {#cpu}

**Central Processing Unit**: The general-purpose processor of a computer, which runs the operating system and programs. A CPU has one or more physical cores, and with SMT each core runs two or more hardware threads. See [Wikipedia](https://en.wikipedia.org/wiki/Central_processing_unit).

### CPU affinity {#cpu-affinity}

The set of CPU cores that a thread or process may run on, which the operating system's scheduler keeps to when it places the thread. It includes every core by default; restricting it to chosen cores is called thread binding or CPU pinning. See [Linux man page](https://man7.org/linux/man-pages/man2/sched_setaffinity.2.html).

### CQ {#benchmark-ffmpeg-cq}

**Constant Quality**: The quality-based rate control of NVIDIA's NVENC hardware encoder, which varies the bitrate to keep a target quality level. Lower values mean higher quality and larger files, as with CRF in software encoders. See [NVENC rate control](https://docs.nvidia.com/video-technologies/video-codec-sdk/13.0/nvenc-video-encoder-api-prog-guide/index.html#rate-control).

### CRF {#benchmark-ffmpeg-crf}

**Constant Rate Factor**: The quality-based rate control of the x264 and x265 encoders, which varies the bitrate to keep the perceived quality constant across scenes. Lower values mean higher quality and larger files; x264's default is 23 on a scale of 0 to 51. See [FFmpeg wiki](https://trac.ffmpeg.org/wiki/Encode/H.264#crf).

### CUDA {#cuda}

**Compute Unified Device Architecture**: The parallel computing platform and programming model of NVIDIA GPUs. It runs general-purpose code on the GPU, and most machine learning frameworks rely on its libraries, such as cuBLAS and cuDNN. See [NVIDIA docs](https://docs.nvidia.com/cuda/).

### CV {#cv}

**Coefficient of Variation**: The standard deviation of a set of measurements divided by their mean, often given as a percentage. As it is scale-free, it compares the variability of measurements of different magnitudes, such as how much repeated runs of different benchmarks vary. See [Wikipedia](https://en.wikipedia.org/wiki/Coefficient_of_variation).

## F {#letter-f}

### FFmpeg {#benchmark-ffmpeg-ffmpeg}

A free, open-source collection of libraries and command-line tools to decode, encode, transcode, filter and stream audio and video. Its `ffmpeg` command converts between nearly all media formats, and its libraries, such as libavcodec, power many media players and services. See [`ffmpeg` docs](https://ffmpeg.org/ffmpeg.html).

### FLAC {#benchmark-ffmpeg-flac}

**Free Lossless Audio Codec**: A lossless audio codec by the Xiph.Org Foundation. It compresses audio without discarding any information, so decoding restores the original samples bit for bit. See [FLAC](https://xiph.org/flac/).

### fps {#fps}

**Frames Per Second**: The number of frames, the individual images of an animation or simulation, that a program produces each second. A higher rate means smoother motion or faster processing. See [Wikipedia](https://en.wikipedia.org/wiki/Frame_rate).

## G {#letter-g}

### Geekbench {#geekbench}

A cross-platform CPU and GPU compute benchmark by Primate Labs. Its CPU benchmark runs workloads modeled on real applications, such as file compression, image processing, and web browsing, first on one core and then on all cores, and reports a Single-Core and a Multi-Core score. Geekbench 6 scores are calibrated so that a baseline system scores 2500. See [Geekbench](https://www.geekbench.com/).

### GPU {#gpu}

**Graphics Processing Unit**: A processor with thousands of simple cores that run the same operation on many data elements in parallel. It was built to render graphics, and is now also used for general-purpose parallel work such as machine learning training and inference, scientific simulation, and video encoding. Cloud providers rent GPUs attached to virtual machines, with their own dedicated GPU memory. See [Wikipedia](https://en.wikipedia.org/wiki/Graphics_processing_unit).

## H {#letter-h}

### H.264 {#h-264}

A lossy video codec standardized in 2003, also called AVC. It is the most widely supported video format, used in Blu-ray, broadcast, streaming, and video calls. Common encoders are x264 and hardware encoders such as NVENC. See [Specification](https://www.itu.int/rec/T-REC-H.264).

### H.265 {#h-265}

Another name for HEVC, from the number of its standard. See [Specification](https://www.itu.int/rec/T-REC-H.265).

### harness {#harness}

The code that runs a benchmark tool. It prepares the inputs, starts the tool with fixed settings, often several times or in parallel, checks and collects the tool's output, and prints the results in one format. Its settings, not the tool's defaults, decide what the benchmark measures. See [Wikipedia](https://en.wikipedia.org/wiki/Test_harness).

## J {#letter-j}

### JSON {#json}

**JavaScript Object Notation**: A text format for structured data, built from objects (key-value pairs), arrays, strings, numbers, booleans, and null. Most languages and tools read and write it, which makes it a common format for API responses and benchmark output. See [JSON](https://www.json.org/).

## M {#letter-m}

### MP3 {#mp3}

**MPEG-1 Audio Layer III**: A lossy audio codec and file format from the 1990s, still the most widely supported format for compressed music. See [Wikipedia](https://en.wikipedia.org/wiki/MP3).

### MP4 {#mp4}

**MPEG-4 Part 14**: A container file format that holds video, audio, and subtitle tracks, most often H.264 or HEVC video with AAC audio. It is the common format for video on the web and on phones. See [Wikipedia](https://en.wikipedia.org/wiki/MP4_file_format).

## N {#letter-n}

### NTP {#ntp}

**Network Time Protocol**: A protocol that keeps computer clocks in sync with reference time servers over a network. A client adjusts its system clock in small steps or, when it is far off, in one jump, so wall-clock time on a server can move backward or skip ahead. See [NTP](https://www.ntp.org/).

### null muxer {#benchmark-ffmpeg-null-muxer}

An FFmpeg output format, selected with `-f null`, that discards everything it receives instead of writing a file. It is used to measure decoding, filtering or encoding speed, or to run analysis filters, without the cost of writing to disk. See [FFmpeg formats](https://ffmpeg.org/ffmpeg-formats.html#null).

### NUMA {#numa}

**Non-Uniform Memory Access**: A memory design where each CPU socket or chiplet has its own local memory, which its cores reach faster than the memory of the others. Software that keeps its threads and their memory on the same NUMA node avoids the slower remote accesses. See [Linux kernel docs](https://docs.kernel.org/mm/numa.html).

### `numactl` {#numactl}

A Linux command that runs a program with a NUMA policy, such as binding it to the CPUs and memory of given NUMA nodes, and shows the NUMA layout of the host. See [man page](https://man7.org/linux/man-pages/man8/numactl.8.html).

### NVDEC {#benchmark-ffmpeg-nvdec}

**NVIDIA Video Decoder**: The hardware video decoder of NVIDIA GPUs, a dedicated unit next to the CUDA cores. It decodes codecs such as H.264, HEVC, VP9 and, on newer GPUs, AV1, leaving the CPU and the CUDA cores free. See [NVIDIA GPUs in FFmpeg](https://docs.nvidia.com/video-technologies/video-codec-sdk/13.0/ffmpeg-with-nvidia-gpu/index.html).

### NVENC {#benchmark-ffmpeg-nvenc}

**NVIDIA Video Encoder**: The hardware video encoder of NVIDIA GPUs, a dedicated unit next to the CUDA cores. It encodes H.264, HEVC and, on newer GPUs, AV1, much faster than software encoders, though usually at a somewhat lower quality for the same bitrate. FFmpeg exposes it as encoders such as `h264_nvenc`. See [NVIDIA GPUs in FFmpeg](https://docs.nvidia.com/video-technologies/video-codec-sdk/13.0/ffmpeg-with-nvidia-gpu/index.html).

### NVIDIA Container Toolkit {#nvidia-container-toolkit}

A set of NVIDIA libraries and tools that lets containers use the NVIDIA GPUs of the host. It configures container runtimes such as Docker to make the GPU devices and driver libraries available inside a container. See [NVIDIA docs](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/index.html).

### NVIDIA driver {#nvidia-driver}

The kernel module and libraries that let the operating system and programs use NVIDIA GPUs. Each driver version supports CUDA up to a certain version. Containers use the host's driver through the NVIDIA Container Toolkit, so it is installed on the host rather than in container images. See [NVIDIA docs](https://docs.nvidia.com/datacenter/tesla/driver-installation-guide/index.html).

## O {#letter-o}

### Opus {#benchmark-ffmpeg-opus}

**audio codec**: A royalty-free, lossy audio codec standardized by the IETF in 2012. It covers speech and music from low to high bitrates with low delay, which makes it common in voice and video calls and web streaming. See [Opus](https://opus-codec.org/).

## P {#letter-p}

### PID {#pid}

**Process Identifier**: The number by which the operating system identifies a running process. On Linux, a PID is assigned when a process starts and can be reused after it exits, and commands such as kill use it to target a process. See [Wikipedia](https://en.wikipedia.org/wiki/Process_identifier).

### PSNR {#benchmark-ffmpeg-psnr}

**Peak Signal-to-Noise Ratio**: A quality metric that compares a processed image or video to its source by the mean squared error of their pixels, in decibels. Higher values mean a closer match. It is simple and widely used, but follows perceived quality only loosely. See [FFmpeg filter](https://ffmpeg.org/ffmpeg-filters.html#psnr).

## R {#letter-r}

### RAM {#ram}

**Random-Access Memory**: The main memory of a computer, which holds the running programs and their data. It is much faster than disk storage, and its content is lost when the power is off. See [Wikipedia](https://en.wikipedia.org/wiki/Random-access_memory).

## S {#letter-s}

### S3 {#s3}

**Simple Storage Service**: The object storage service of AWS, which stores files as objects in buckets and serves them over HTTP. Its API has become a de facto standard that many other storage services and tools support. See [Amazon S3](https://aws.amazon.com/s3/).

### SHA-256 {#sha-256}

**Secure Hash Algorithm 256**: A cryptographic hash function of the SHA-2 family that maps any data to a 256-bit digest. Even a one-bit change in the data gives a completely different digest, so it is used to verify that a downloaded file is intact, and in digital signatures and certificates. See [NIST FIPS 180-4](https://csrc.nist.gov/pubs/fips/180-4/upd1/final).

### SMT {#smt}

**Simultaneous Multithreading**: A CPU technique that runs two (or more) hardware threads on one physical core, sharing its execution units, e.g. Intel Hyper-Threading. It raises throughput when a thread stalls, but the threads compete for the core. Cloud vendors usually sell each thread as a vCPU. See [Wikipedia](https://en.wikipedia.org/wiki/Simultaneous_multithreading).

### SSIM {#benchmark-ffmpeg-ssim}

**Structural Similarity Index Measure**: A quality metric that compares a processed image or video to its source by local patterns of luminance, contrast and structure. A score of 1 means identical, and the score follows perceived quality more closely than PSNR. See [FFmpeg filter](https://ffmpeg.org/ffmpeg-filters.html#ssim).

### stderr {#stderr}

The standard error stream of a process, one of the three standard streams with stdin and stdout. Programs write logs, progress, and error messages to it, so that they stay separate from the output on stdout when the output is redirected to a file or another program. See [Wikipedia](https://en.wikipedia.org/wiki/Standard_streams).

### stdout {#stdout}

The standard output stream of a process, one of the three standard streams with stdin and stderr. Programs write their results to it; a shell can redirect it to a file or another program, such as `> results.jsonl`, while logs on stderr still reach the terminal. See [Wikipedia](https://en.wikipedia.org/wiki/Standard_streams).

## T {#letter-t}

### Tears of Steel {#benchmark-ffmpeg-tears-of-steel}

A 2012 science-fiction short film by the Blender Foundation, made with open-source tools and released under CC BY 3.0. Its high-resolution footage is freely available, which makes it common test material for video codecs. See [Project page](https://mango.blender.org/).

## U {#letter-u}

### URL {#url}

**Uniform Resource Locator**: The address of a resource on the web or a network, such as https://sparecores.com/, made of a scheme, a host, and a path.

## V {#letter-v}

### vCPU {#vcpu}

**virtual CPU**: A CPU of a virtual machine, the unit in which cloud vendors sell compute. It is usually one hardware thread of a physical core with SMT, so two vCPUs may share one physical core. See [Wikipedia](https://en.wikipedia.org/wiki/Virtual_CPU).

### VMAF {#benchmark-ffmpeg-vmaf}

**Video Multimethod Assessment Fusion**: A perceptual video quality metric by Netflix that combines several elementary metrics with a machine learning model trained on human ratings. It scores from 0 to 100, and is widely used to tune and compare video encoders. See [GitHub](https://github.com/Netflix/vmaf).

### Vorbis {#benchmark-ffmpeg-vorbis}

A royalty-free, lossy audio codec by the Xiph.Org Foundation, usually stored in Ogg files. It was designed as a free alternative to MP3 and AAC, and is used in games and streaming; Opus has largely replaced it for new uses. See [Vorbis](https://xiph.org/vorbis/).

## Z {#letter-z}

### `zram` {#zram}

A Linux kernel module that creates compressed block devices in memory. It is most often used as swap, so swapped-out pages are compressed in RAM instead of written to disk, trading CPU time for memory. See [Linux kernel docs](https://docs.kernel.org/admin-guide/blockdev/zram.html).
