• 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
    ram
    Offline

    Junior Member

    Posts: 6
    Threads: 3
    Joined: 2024 Sep
    Reputation: 0
    #1
    2024-09-10, 12:25 AM (This post was last modified: 2024-09-10, 12:25 AM by ram.)
    This has been a big pain for me, but I keep having an issue where reliably, during playback, the Chromecast pauses playback to buffer endlessly. For the particular file I'm examining the problem with, playback's freezing at 00:05:13, which, visually, appears to be the last frame of the transcoded segment. This, however, has been a problem with different video files from different media sources.

    To attempt to resolve the issue, I:
    - End the Chromecast Session
    - Reset episode progress
    - Shut down Jellyfin
    - Allow ffmpeg to finish its transcoding session
    - Delete the transcoding session
    - Start Jellyfin
    - Start the Chromecast Session
    - Begin playback from the episode
    - Wait for 00:05:13 to appear again

    The logs for my Jellyfin: https://pastebin.com/aJmG5Rdi
    The logs for the FFmpeg.DirectStream: https://pastebin.com/xMbUvKwW
    These logs are from after the previous procedure was followed, and logs were cleared / reset.

    Thanks for any help!!
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,373
    Threads: 10
    Joined: 2023 Jun
    Reputation: 465
    Country:United States
    #2
    2024-09-10, 03:02 PM
    Your server and ffmpeg logs look fine.

    What model Chromecast is this?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    ram
    Offline

    Junior Member

    Posts: 6
    Threads: 3
    Joined: 2024 Sep
    Reputation: 0
    #3
    2024-09-11, 03:44 AM (This post was last modified: 2024-09-11, 03:45 AM by ram.)
    (2024-09-10, 03:02 PM)TheDreadPirate Wrote: Your server and ffmpeg logs look fine.

    What model Chromecast is this?

    It's a Chromecast Ultra (two different ones, even)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,373
    Threads: 10
    Joined: 2023 Jun
    Reputation: 465
    Country:United States
    #4
    2024-09-11, 03:29 PM
    For all the videos you are having issues with, does it always fail at 5:13 into the video?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    ram
    Offline

    Junior Member

    Posts: 6
    Threads: 3
    Joined: 2024 Sep
    Reputation: 0
    #5
    2024-09-12, 03:19 PM
    (2024-09-11, 03:29 PM)TheDreadPirate Wrote: For all the videos you are having issues with, does it always fail at 5:13 into the video?

    No it's at different points in the videos and often multiple times throughout the playback
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,373
    Threads: 10
    Joined: 2023 Jun
    Reputation: 465
    Country:United States
    #6
    2024-09-12, 04:06 PM
    Can you try remuxing one of these files and try the new file? This does not require re-encoding.

    Open a command prompt and run this command.

    Code:
    ffmpeg -fflags +genpts+igndts -i "E:\Live Action Shows\Doctor Who (2005) [tvdbid-78804]\Season 10\Doctor.Who.2005.S10E01.The.Pilot.720p.BluRay.DD.5.1.x264-DON.mkv" -codec copy -avoid_negative_ts make_zero -max_muxing_queue_size 2048 -max_interleave_delta 0 "E:\newFile.mkv"
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    Dan Stoner
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2025 Dec
    Reputation: 0
    #7
    3 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: 1 Guest(s)


    • 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