Fix Jellyfin Buffering on Raspberry Pi¶
Open Jellyfin's Dashboard while the video is buffering and look at the active playback session. If Jellyfin is transcoding video, first find what made the client request a conversion. If the session shows Direct Play, check the network and storage path carrying the file.
1. Check how Jellyfin is playing the file¶
Play the problem file on the device you actually use, such as your TV, phone, or browser. Open the server's Dashboard on a second device or in another tab. Find the playing session and note its mode. Also test a known H.264 and AAC MP4 on the same client.
| Dashboard mode | What the server does | What to check |
|---|---|---|
| Direct Play | Sends the original file | Check the network and disk if playback stalls. |
| Remux | Changes the container while keeping video and audio | Check whether the client accepts the original container, such as MKV. |
| Direct Stream | Converts audio while keeping the video | Try another audio track supported by the client. |
| Transcode | Re-encodes the video | Look for a bitrate limit, unsupported video or subtitles that need to be drawn into the picture. |
Jellyfin chooses a playback method using the client's supported formats and bitrate limits. The same file can play directly on a TV app and need conversion in a browser. Jellyfin playback modes, Jellyfin client codec support
2. Change one playback setting at a time¶
- On a fast local connection, choose the client's original quality option if it offers one. A lower quality setting can make Jellyfin re-encode an otherwise compatible video.
- Turn subtitles off and restart the same file. If it now plays directly, try a subtitle track the client can render itself. Text subtitles such as SRT are an option when the client supports them. Image subtitles can require the server to draw them into each video frame.
- Try another audio track on the same client. If the session changes from Direct Stream to Direct Play, the audio track was the difference.
- If the server is still re-encoding video, check the file's video codec and pixel format. Follow the client codec table for your device and app. A native player can support formats the browser does not.
On Raspberry Pi, plan around Direct Play when you can. Jellyfin deprecates its Pi V4L2 acceleration path, and the Raspberry Pi 5 lacks a hardware video encoder. Jellyfin's Raspberry Pi hardware acceleration notes
3. Inspect the file before making a compatible copy¶
Run ffprobe from the computer that can read the file. On Raspberry Pi OS, it comes with the ffmpeg package. Replace the sample filename with your own.
The format bitrate is in bits per second and describes the file average. Check the video and audio codecs separately from the container name. If the client accepts both streams and the container is the issue, try a small copy in a container that the client supports.
For an MKV with H.264 video and AAC audio, this example copies the first video and first audio stream to MP4. It leaves the original file intact. If the track you want is a different stream, choose its index from the probe output. Keep subtitles or other audio tracks in your original, since this test copy includes only the selected streams. FFmpeg stream selection and stream copy
Expect (copy) on both mapped streams. On a Pi 4B, FFmpeg copied both test streams and the decoded video had the same SHA-256 hash in both containers. Add the new file to Jellyfin and check its playback mode on the original client. If the video codec, pixel format, or bitrate is incompatible with the client, changing the container alone leaves that constraint in place.
4. If Direct Play still buffers, check the file path¶
Try the same video from the same client over wired Ethernet if available. Keep the playback mode and quality the same. If the test clip works and a larger file stalls, compare their bitrate, storage location and client route. A file's bitrate can peak above its average. Test from the LAN before diagnosing a VPN or internet connection.
For media on a USB drive, check where Jellyfin's media directory is mounted. Run the check on the Pi with the host path you bound into Jellyfin.
If it reports the root filesystem where you expected an external drive, check the actual mount before copying files into that directory. Verify a USB mount on Raspberry Pi
If the drive is mounted, try the same test file from a library on a different drive with enough free space. Compare both copies on the same client and connection. This helps distinguish a drive read problem from the network path.