Jellyfin Forum
Playback broken: FFmpeg Error 254 - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Playback broken: FFmpeg Error 254 (/t-playback-broken-ffmpeg-error-254)

Pages: 1 2


Playback broken: FFmpeg Error 254 - pr-o-xy - 2025-03-20

Recently set up Jellyfin in a docker container on new home server, and getting this error whenever attempting playback of any media:

[20:11:36] [ERR] [111] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 254
[20:11:36] [ERR] [111] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL GET /videos/2c7561fc-b33f-7fe6-6b1a-0856122890f7/hls1/main/-1.mp4.
MediaBrowser.Common.FfmpegException: FFmpeg exited with code 254

I've attempted enabling HEVC and AV1 encoding to no avail. Stuck on where to go next.

Jellyfin Ver: 10.10.6
Installation Method: Docker Compose
OS: Ubuntu Server 24.04
Hardware: Raspberry Pi 4B + 2TB mounted external hard disk


RE: Playback broken: FFmpeg Error 254 - TheDreadPirate - 2025-03-20

The RPi4B doesn't have any supported hardware encoders.


RE: Playback broken: FFmpeg Error 254 - pr-o-xy - 2025-03-20

Apologies, I'm a bit new to all this; how would this affect playback? I initialy hadd the RPi set up with Yunohost and playback through that version of Jellyfin worked fine, so I figured it wasn't hardware limitation.


RE: Playback broken: FFmpeg Error 254 - TheDreadPirate - 2025-03-20

It depends if you're using the same content or not. If your current content needs to be transcoded, but didn't prior, that would explain why it worked before. If you disabled hardware transcoding and relied solely on CPU transcoding before, that could also explain why it worked before.


RE: Playback broken: FFmpeg Error 254 - pr-o-xy - 2025-03-20

Current content is the same, so how would I go about disabling hardware transcoding and relying on cpu?


RE: Playback broken: FFmpeg Error 254 - TheDreadPirate - 2025-03-20

What did you select in Dashboard > Playback > Transcoding?


RE: Playback broken: FFmpeg Error 254 - pr-o-xy - 2025-03-20

No hardware acceleration, disabled encoding format options for AV1 and HEVC
Any specific options to look for?


RE: Playback broken: FFmpeg Error 254 - TheDreadPirate - 2025-03-20

Can you share one of your ffmpeg logs via privatebin.net? They are in the same directory as the main Jellyfin log.


RE: Playback broken: FFmpeg Error 254 - pr-o-xy - 2025-03-20

Ah, seems to be file access related. Paths are all set up correctly, so maybe permissions?
https://privatebin.net/?d22503e903ebdbef#6GnDbwtVTXSNQsiSBW7YE3xDGrH3arYbeKwfGNVJ4XeF


RE: Playback broken: FFmpeg Error 254 - TheDreadPirate - 2025-03-20

Either the file was moved or insufficient permissions.

Can you share your docker compose? And what are the permissions on the files and folders for this movie?

Code:
ls -ld /media2 "/media2/Invincible (2021)" "/media2/Invincible (2021)/Invincible.2021.S00E01.Presenting.Atom.Eve.Special.Episode.1080p.WEB.H264-NHTFS[TGx]"
ls -l "/media2/Invincible (2021)/Invincible.2021.S00E01.Presenting.Atom.Eve.Special.Episode.1080p.WEB.H264-NHTFS[TGx]/"