Open beta Leyla is free until December 31, 2026. Preorder at founders’ prices

Download

Direct play, remux and transcoding explained

Every time you press play, a media server decides how the file reaches the screen. Direct play sends the file as it is. Direct stream, or remux, keeps the picture and sound and changes only the container. Transcoding re-encodes the video or the audio. The first costs the server nothing, the last can need a graphics chip, and most stutter on a home server comes from transcoding nobody needed.

The three ways a film reaches a screen

What happensCost on the serverQuality
Direct playThe file is sent byte for byte.None beyond reading the disk.The original.
Direct stream (remux)Video and audio are copied into a container the screen accepts, such as MKV into MP4 or HLS segments.Almost none; fine on a Raspberry Pi.The original.
TranscodeThe video, the audio or both are decoded and encoded again, often at a lower bitrate.A CPU core per stream for audio; for 4K video, a GPU (Intel Quick Sync, NVIDIA NVENC, AMD) or a fast CPU.Lower, sometimes much lower.

Plex, Jellyfin and Emby use these names in their dashboards. Leyla calls them Play, Copy and Convert, and its player can say which one a title is getting and why.

Why a media server transcodes

A server transcodes only when something in the file is outside what the screen says it can decode. The usual causes, in the order we meet them:

  • Picture subtitles. PGS (from Blu-ray) and VobSub (from DVD) subtitles are images. A screen that cannot draw them gets them burned into the picture, which forces a full video transcode even when the video itself would play.
  • The audio codec. Browsers play AAC, Opus, FLAC and sometimes Dolby Digital, but not Dolby TrueHD or DTS-HD Master Audio, the lossless tracks on most Blu-ray remuxes.
  • The video codec. HEVC (H.265) and AV1 are not decoded by every browser, older TV or streaming stick; H.264 (AVC) plays almost everywhere.
  • HDR on an SDR screen. HDR10, HLG and Dolby Vision on a screen that cannot show them need tone mapping, or the picture looks grey and washed out.
  • A bitrate limit. A remote connection, or a cap set for a person, below the file's bitrate.
  • The container. Some players refuse MKV (Matroska) or AVI; that needs only a remux, not a transcode, if the server knows the difference.

How to avoid transcoding

  • Prefer text subtitles (SRT, ASS) to PGS where you have the choice, or a server that turns picture subtitles into text.
  • Keep a stereo or 5.1 AAC or AC-3 track beside a TrueHD or DTS one, or use a player that decodes them.
  • Use a client that plays HEVC and HDR natively: most recent Android TV and Google TV devices, Fire TV 4K sticks, Apple TV with Infuse, and the TV makers' own apps.
  • Raise or remove the remote quality limit when the upload allows it.
  • Check the server's dashboard: it says whether a stream is direct play, direct stream or transcode, and usually why.

How Leyla decides

We make Leyla, and avoiding needless conversion is its first rule. Each screen reports what it decodes when it presses play, and only the part it cannot play is converted: a film whose video plays but whose audio does not keeps its picture untouched. Picture subtitles (PGS, VobSub) are read into text, so they never force a video conversion. The web app decodes DTS and TrueHD in the browser itself (how), so a remux plays with no audio transcode. HDR10, HLG and Dolby Vision reach screens that show them; other screens get a tone-mapped picture. When a conversion does run, hardware encoders are tested on your machine first (hardware transcoding), and titles that always need converting on your screens can be prepared ahead. What plays where shows which screens play which files directly.

Questions

What is the difference between direct play and direct stream?

Direct play sends the file unchanged. Direct stream copies the same video and audio into another container. Neither re-encodes, so both keep the original quality.

Is remuxing the same as transcoding?

No. Remuxing moves the streams into a new container without decoding them and costs almost nothing. Transcoding decodes and encodes again, which costs processing power and loses quality.

Why does Plex or Jellyfin transcode when the file should play?

Usually picture subtitles (PGS) being burned in, a TrueHD or DTS soundtrack the client cannot play, or a remote quality setting below the file's bitrate. The server's dashboard names the reason.

Does transcoding lower quality?

Yes, every transcode loses some quality, and a lower target bitrate loses more. Direct play and remux keep the original.

Do I need a GPU for a media server?

Not if your screens direct play your files. A GPU matters for transcoding 4K or HEVC video for screens that cannot play it, or for several transcodes at once.

Sources

Something wrong or out of date here? Tell us.