Skip to content
mediacoding.dev

Topics

Check out the topics that interest you.

FFmpeg

The FFmpeg CLI and its libraries in C: libavformat, libavcodec, libavfilter, libswscale and libswresample, from a first transcode to your own demux, decode and encode loop.

Video

Codecs (H.264, HEVC, VP9, AV1), containers, timestamps, frame types, color spaces and HDR: how digital video really works, and how to handle it in code.

Audio

Sample formats, channel layouts, resampling, mixing, latency and audio file formats, with PortAudio, miniaudio, libsndfile and the platform audio APIs.

OpenGL

Modern OpenGL and GLSL: buffers, textures, framebuffers, uploading video frames, and rendering pipelines for players, editors and visualizers.

Vulkan

Vulkan from instance to swapchain: pipelines, synchronization, compute shaders, memory management and Vulkan Video decode and encode.

Metal

Apple Metal and the Metal Shading Language: render and compute pipelines, MetalKit, Metal Performance Shaders, and Metal with AVFoundation and Core Video.

WebGPU

WebGPU and WGSL in the browser and natively through wgpu and Dawn: render and compute pipelines, bind groups, video textures and GPU effects that run everywhere.

GStreamer

GStreamer pipelines on the command line and in code: elements, caps, bins, appsrc and appsink, writing plugins in C and Rust, and debugging stalled pipelines.

Streaming

RTSP, RTMP, SRT, HLS and DASH packaging, WebRTC, and low-latency live pipelines: from a camera to a viewer, and what each protocol costs.

Desktop Media Apps

Building players, editors, recorders and visualizers with GTK and GNOME, Qt and KDE, SDL and libVLC: media apps people install on Linux, macOS and Windows.

DSP

Digital signal processing for sound and pictures: filters, FFT, convolution, synthesis, effects, and pitch and time stretching, written from the maths up.

Web Media

Media in the browser: WebGL, the Web Audio API, WebCodecs, Media Source Extensions, MediaRecorder, getUserMedia and the WebRTC APIs.

Apple Media

AVFoundation, Core Audio and Audio Units, VideoToolbox, Core Image, ScreenCaptureKit and AVKit, in Swift and Objective-C.

Linux Media

PipeWire, ALSA, PulseAudio and JACK, V4L2 cameras, VA-API and DRM/KMS: the Linux media stack from the device to the desktop.

Windows Media

Media Foundation, WASAPI, DirectShow migration, and Direct3D 11 and 12 video: the media stack on Windows.

Hardware Acceleration

NVENC and NVDEC, VA-API, Quick Sync, VideoToolbox and AMF: hardware decode and encode, zero-copy paths, and when the GPU is not faster.

Image Processing

libvips, ImageMagick, OpenCV, libpng, libjpeg-turbo, libwebp and libavif: decoding, resizing, compositing and color management in code.

Shaders

GLSL, HLSL, MSL and WGSL: writing visual effects and video filters as shaders, porting between languages, and compute post-processing.

Audio Plugins

JUCE, CLAP, VST3, Audio Units and LV2: building effects and instruments with real-time-safe code that hosts can trust.