• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Jellyfin on Chromecast keeps stopping mid-episode

     
    • 0 Vote(s) - 0 Average

    Jellyfin on Chromecast keeps stopping mid-episode

    Consistently, it does a buffering-wheel for an eternity
    Dan Stoner
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2025 Dec
    Reputation: 0
    #7
    5 hours ago
    I know it is over a year later, but I recently ran into this exact issue and kept working on it until I found a probable cause (and solution).

    In my case I believe it is due to bitrate spikes.  The problem occurs in "large" high definition videos that were created over a decade ago and I had never tried playing via Chromecast until recently.

    My solution has been to re-encode all of the problem videos with a max bitrate cap (ffmpeg -maxrate).

    Code:
    ffmpeg -i 'Big File (HD).mkv' -c:v libx264 -preset slow -maxrate 15M -crf 18 -c:a copy 'Big File (HD) maxrate 15M crf 18.mkv'

    I have actually been starting with -maxrate 30M which fixes the problem for me most of the time and helps preserve more of the original video quality.  Then there are a few of my videos that will freeze in a different place after that re-encoding, so I go back to the source and try again with a lower value like 20M.  And for a very very few I had to go down to 15M.  I see recommendations on the Internet that 10 - 12M is the actual max bitrate for old Chromecast devices.  It's a bit tedious to do the re-encoding, and then start playback, and then wait to see if the movie plays all the way through... but this workflow "works" for me.

    Re-muxing did not help me and I was unable to find a way to determine by looking at the files themselves that they would be problematic... it would be nice to be able to scan my library and only re-encode the the files that are likely to be broken, without having to actually watch every movie through a Chromecast device to see if it actually breaks.


    p.s. ChatGPT can be pretty dumb about a lot of things but it seems to have some good suggestions about ffmpeg encoding and media playback.  It pointed me at the bitrate issue with early Chromecast devices and other possible issues like the following, none of which panned out, but seemed plausible (but could totally be hallucinations):


    Quote:Your file was muxed with:


    mkvmerge v3.2.0 (2010)
    libmatroska v0.8.1

    Those are 14–15 years old, very early implementations with known issues involving:
    • broken cluster seeking
    • incorrect cue positions
    • timestamp rounding errors
    • bad index tables
    • incorrect handling of B-frames in MKV
    Chromecast is very sensitive to seek table errors, and symptoms match:
    ✔ plays fine until it hits a bad cluster
    ✔ freezes at exactly the same timestamp every time
    ✔ other players (VLC, MPV) work — because they are far more forgiving
     
    Old x264 builds could produce:
    - slightly non-compliant B-frame timing
    - weird keyframe/cue misalignment
    - edge-case bitstream behaviors modern hardware decoders dislike

    Chromecast’s H.264 decoder is generally strict.
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 Guest(s)


    Messages In This Thread
    Jellyfin on Chromecast keeps stopping mid-episode - by ram - 2024-09-10, 12:25 AM
    RE: Jellyfin on Chromecast keeps stopping mid-episode - by TheDreadPirate - 2024-09-10, 03:02 PM
    RE: Jellyfin on Chromecast keeps stopping mid-episode - by ram - 2024-09-11, 03:44 AM
    RE: Jellyfin on Chromecast keeps stopping mid-episode - by TheDreadPirate - 2024-09-11, 03:29 PM
    RE: Jellyfin on Chromecast keeps stopping mid-episode - by ram - 2024-09-12, 03:19 PM
    RE: Jellyfin on Chromecast keeps stopping mid-episode - by TheDreadPirate - 2024-09-12, 04:06 PM
    RE: Jellyfin on Chromecast keeps stopping mid-episode - by Dan Stoner - 5 hours ago

    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode