Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4858

General discussion • Raspberry Pi 5 Crashes When Running FFmpeg for Jellyfin Streaming

$
0
0
Hello Raspberry Pi Community,

I'm encountering a persistent issue with my Raspberry Pi 5 running Debian Bookworm. I’ve installed FFmpeg and set up the Jellyfin server to stream movies. However, whenever I attempt to stream a movie, the Pi 5 crashes immediately.

Setup Details:
Device: Raspberry Pi 5
Operating System: Raspberry pi os (bookworm 12)
Software Installed:
FFmpeg
Jellyfin Server

Issue Description:
When I try to stream movies through Jellyfin, the Raspberry Pi 5 crashes randomly and immediately. To troubleshoot, I executed the FFmpeg command manually to perform transcoding, and the Pi crashed within a few seconds of running the command as well.

FFmpeg Command Used:

Code:

root@fundo:~ # ffmpeg -i 'input.mkv' -c:v libx264 -preset veryfast -crf 23 -c:a aac -b:a 192k -movflags +faststart 'output.mp4'
What I’ve Tried So Far:

Verified FFmpeg Command:

Ensured that the command is correctly formatted for direct stream copying without transcoding.
Checked Power Supply:

Confirmed that the Raspberry Pi is receiving adequate power (using an official power adapter rated for Pi 5).
Monitored System Resources:

Observed that the crash occurs almost immediately, suggesting it might not be a resource exhaustion issue.
Updated Software:

Made sure that both FFmpeg and Jellyfin are updated to their latest versions available in the repositories.

Questions:
  • Why is my Raspberry Pi 5 crashing immediately when running FFmpeg or streaming via Jellyfin?
  • How can I limit FFmpeg’s CPU usage to prevent the Pi from overloading or overheating?
  • Are there specific configurations or optimizations recommended for running Jellyfin on Raspberry Pi 5?

Statistics: Posted by cvarad96 — Wed Nov 27, 2024 12:33 pm



Viewing all articles
Browse latest Browse all 4858

Trending Articles