RPi4 1GB Cannot Consistently Play 4K

  • Hey all,

    I bought an RPi 4B w/ 1GB RAM specifically to play 4K content w/ LibreELEC and have been putting it through its paces. (I know 1GB RAM is cutting it a little close, but AFAIK it is still supported and I couldn't find anyone saying that it wouldn't be able to handle normal playback, so I figured I'd save a few bucks...which I may come to regret.)

    Most of what I watch is <= 1080p, and the Pi has been able to handle that fine, but when it comes to 4K content my experience has been utterly horrific. Even trying to click "play" on local 4K SDR HEVC files causes a black screen and total lockup (and crash, if I'm lucky, although most of the time it just freezes and requires me to literally pull the plug -- especially frustrating because it doesn't even generate a useful log file if I do that). On the rare occasions where I can actually get a file to play it stutters horribly (like, <1fps) and then will freeze/crash if I try to back out to the main menu, or even just bring up the OSD.

    My media is usually being accessed through a Jellyfin server via the official addon. At first I thought it might be an issue with Jellyfin unnecessarily transcoding or something, but even local 4K files fail to play. I have been slowly working my way through the Jellyfin test videos to see if maybe there is some sort of "trigger," but it's a matter of "locks up instantly" versus "might lock up after a few seconds of playback."

    This certainly isn't the reliable workhorse experience I've seen others talk about when mentioning the RPi 4/4B in these forums.

    FWIW, on the (very) few occasions that I've actually gotten a useful crash log vs. just a lockup, it's always an OOM issue: is it just that 1GB RAM isn't enough for 4K playback? I'm testing on an HDR-10 capable 4K monitor with an 8k@60Hz-rated cable and an official RPi 4 power supply, so those shouldn't be the issue. And yes, I have read the wiki page...

  • Go to Best Answer
  • After continued investigation and experimentation with test files, it seems like 10+bit 4K content crashes consistently, but 8-bit 4K content will play okay so long as it has a bitrate of <70M or so:

    • 4K HEVC 8-bit 80M file plays, but poorly
    • 4K HEVC 10-bit 80M crashes
    • 4K HEVC 8-bit 60M plays okay, w/ GUI lag
    • 4K HEVC 8-bit 40M plays smoothly
    • 4K HEVC 10-bit 40M crashes
    • 4K HEVC HDR10 40M crashes

    The bitrate limitation aligns with the findings from this forum post, so that tracks. It's disappointing to be having issues w/ 10+bit content, though, given that the wiki indicates that LibreELEC "support[s] 8/10/12-bit output for great results with 4K HDR" on Pi 4.

    I suspect this is, in fact, just a consequence of my low RAM (and subsequently low CMA). I would be eager to hear confirmation if indeed this is the case. If so, I'll go propose a change to the wiki so no one else makes the same mistake I did...

  • The wiki article was correct at the original time of publishing because RPi4 launched with 2/4/8GB variants. The 1GB model has been added later to offset global RAM price increases and reduce the entry-level price point, but 1GB isn't enough for playback with most 4K media. As you've noticed/deduced, only low-bitrate 8-bit media can work within the CMA limits.

    I've updated the wiki to note the limitation on 1GB models .. popcornmix is there any tweaking that can help?

  • I've always said 2GB for 4K playback, 1GB if you only need 1080p.

    Now it may be possible to tweak settings to improve things with 1GB but it's not something I've investigated.

    I'll make a note to look into it if I get a chance, but it's low priority, so no promises.

    The likely answer is it may be possible to play a specific file successfully, but you'll likely be close enough to the edge, that it only works until it doesn't. A change of skin, installing new addons, playing a file with complex subtitles, a background operation like library or addon update could just push you over the edge.

  • Thanks for the replies, guys! Obviously it's a bummer to hear I'll need to upgrade again down the line, but given that 95% of my library is 1080p anime anyway, this shouldn't be a blocker. I suppose becoming a cautionary wiki add is a nice consolation prize. :P

    We can go ahead and mark this thread as resolved -- and maybe rename to "RPi 4 1GB Cannot Consistently Play 4K" or something for future SEO?