Plex Media Server AVIF Support and Transcoding
This article provides an overview of how Plex Media Server manages AVIF (AV1 Image File Format) photo libraries, detailing the processes of library indexing, on-the-fly transcoding, thumbnail generation, and client-side playback. It outlines how the server processes AVIF files depending on client compatibility, the computational requirements involved, and current direct-play capabilities across various devices.
Library Ingestion and Metadata Processing
When an AVIF photographic album is added to a Plex Media Server photo
library, the server's scanner examines the files using underlying
multimedia frameworks—primarily modernized builds of FFmpeg and
ImageMagick. If the server build includes AVIF container and AV1 codec
support, it parses the metadata, including EXIF data, color profiles
(ICC), and dimensions. If Plex is running on an older build lacking
native libavif integration, AVIF files may be skipped, fail
to generate metadata, or appear as generic file errors.
Thumbnail Generation and Caching
Plex does not serve raw, full-resolution AVIF files to browse screens due to performance constraints. During the initial indexing of an album, Plex creates multiple cached resolutions (thumbnails, medium previews, and full views). The server decodes the AVIF source and re-encodes these cached variants, typically into standard JPEG or WebP formats, ensuring that navigation within the album remains fast and compatible with all Plex clients regardless of their native AVIF support.
Transcoding and Direct Display
Plex Media Server determines whether to transcode or direct-display an AVIF image based on the specific client application requesting the file:
- Direct Display: If the client supports AVIF natively—such as modern Chromium, Firefox, or Safari-based Plex Web sessions, or updated mobile operating systems—Plex can serve the image file directly without modification, preserving its high compression efficiency and high-dynamic-range (HDR) data.
- Transcoding on the Fly: When an album is accessed through a client without native AVIF decoding (such as older Smart TV apps, older streaming sticks, or legacy media boxes), the Plex Media Server transcodes the AVIF file on demand. The server decodes the AV1 image frame and converts it into a standard format—most commonly JPEG—before transmitting it to the display device.
System Performance and Resource Usage
AVIF utilizes complex compression algorithms derived from the AV1 video codec. As a result, decoding full-resolution photographic files—especially 24- to 48-megapixel camera imports—requires significantly more CPU overhead than legacy formats like JPEG.
During the initial ingestion of large AVIF albums, servers without hardware-assisted decoding may experience sustained CPU utilization spikes as the server decompresses and re-renders previews. Once cached, regular browsing uses minimal resources, but on-the-fly transcoding for unsupported devices can introduce a slight delay when opening full-resolution images compared to traditional formats.