Jellyfin Forum
SOLVED: FFmpeg exits with code 187 when playing select files - 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: SOLVED: FFmpeg exits with code 187 when playing select files (/t-solved-ffmpeg-exits-with-code-187-when-playing-select-files)



FFmpeg exits with code 187 when playing select files - BajaSlap - 2024-11-11

Hello all, brand new to this world and relatively new to linux.

I have Jellyfin running on Ubuntu server with a gen 4 i5 and an intel arc a310.
If I have hardware transcoding enabled, some files' playback will immediately fail due to a "fatal playback error"

In my docker logs I see that FFmpeg exits with code 187 along with a stack trace that I can't really make sense of.

The other strange thing I noticed is that it doesn't seem to happen to all users. I had one friend test one of the files out from his house over openVPN and it was able to play.

I've attached the docker logs related to this error


RE: FFmpeg exits with code 187 when playing select files - crobibero - 2024-11-11

Please attach the ffmpeg log and your hardware acceleration configuration


RE: FFmpeg exits with code 187 when playing select files - BajaSlap - 2024-11-11

Thanks for the reply.

Attached is the logs from ffmpeg when the file fails to load and my current encoding configuration file.

Let me know if you need anything else


RE: FFmpeg exits with code 187 when playing select files - TheDreadPirate - 2024-11-11

Did you pass the GPU into the container? Can you share your docker compose?


RE: FFmpeg exits with code 187 when playing select files - BajaSlap - 2024-11-11

I certainly tried to - here is my docker-compose

Edit: updated my signature to include my hardware details in my initial post


RE: FFmpeg exits with code 187 when playing select files - theguymadmax - 2024-11-11

Code:
<AllowAv1Encoding>false</AllowAv1Encoding>
You're using your cpu to encode AV1, that's why it's failing. Go to Dashboard-> Playback->Transcoding and select "Allow encoding in HEVC format".


RE: FFmpeg exits with code 187 when playing select files - BajaSlap - 2024-11-11

I enabled both hardware encoding and checked the boxes for allowing both HEVC and AV1 because you mentioned both in your post. I have the same result unfortunately.

I have attached the ffmpeg logs from the attempt with those configuration changes as well as the new config file.


RE: FFmpeg exits with code 187 when playing select files - TheDreadPirate - 2024-11-11

Since you are not running the container as root, you need to pass in the render group.

Code:
getent group render | cut -d: -f3

Code:
group_add:
      - "122" # Change this to match your "render" host group id and remove this comment



RE: FFmpeg exits with code 187 when playing select files - BajaSlap - 2024-11-11

That did it, thank you!

I marked this issue as solved.