• 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 SOLVED: Server becomes unresponsive when transcoding for my phone

    Pages (2): « Previous 1 2

     
    • 0 Vote(s) - 0 Average

    SOLVED: Server becomes unresponsive when transcoding for my phone

    Server becomes unresponsive when transcoding for my phone
    magguzu
    Offline

    Junior Member

    Posts: 23
    Threads: 3
    Joined: 2024 Jul
    Reputation: 0
    Country:United States
    #11
    2024-10-04, 08:51 PM (This post was last modified: 2024-10-04, 08:55 PM by magguzu. Edited 2 times in total.)
    Yes,and I also tried with the English (also AAC) track without subtitles.

    I've been testing a bunch of different combinations of media today actually. Other videos in HEVC but not AAC, h264 but AAC, with and without SSA subtitles, etc. Mysteriously, it's only One Piece with the issue. I've tried other media that's as close as I can find.

    I even tried another One Piece episode, sourced elsewhere from the one in the issue, that's in h264. It gave the same problem. Over 5-10 min of playing, the server gets slower and slower until it's unusable.

    I'm not even sure it's hardware anymore, as the other services on my server actually continue working fine, and even though the CPU does spike somewhat, it's still just 60%ish.

    But at the same time, another show that's also MKV, in HEVC, has SSA subs, and AAC audio, plays normally (transcoding just for the container, like One Piece). Those codecs and containers all match the One Piece episode my logs above have been from.

    Worth noting I originally said this happened on my phone, but it seems to be anywhere where One Piece needs to transcode. It's just normally direct playing or remuxing on my other devices so, not a problem.

    The only thing I can think of that makes One Piece unique (and I'm REALLY reaching here) is that I have its metadata set to absolute, and with four digit episode numbers (e.g. S17E0629) because JF wasn't getting metadata correctly the default way.
    magguzu
    Offline

    Junior Member

    Posts: 23
    Threads: 3
    Joined: 2024 Jul
    Reputation: 0
    Country:United States
    #12
    2024-10-04, 09:23 PM
    Strange, to prevent my Jellyfin being down much longer for my family, I copied my whole directory to make a "dev" instance and now I can't reproduce the issue in my dev instance.

    I'll keep trying to narrow this further.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #13
    2024-10-04, 11:42 PM
    Maybe your database is borked. Did the disk with the database fill up at any point recently?
    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]
    magguzu
    Offline

    Junior Member

    Posts: 23
    Threads: 3
    Joined: 2024 Jul
    Reputation: 0
    Country:United States
    #14
    2024-10-05, 04:49 AM (This post was last modified: 2024-10-05, 11:18 AM by magguzu. Edited 1 time in total.)
    Not recently, but this deployment is migrated from an old machine that regularly ran out of space. If it means anything, I had One Piece in the library back when JF was on that machine.

    I'm not against a rebuild at this point, if that's a potential culprit? I have had other strange database behavior in the past.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #15
    2024-10-05, 05:30 PM
    Since the clean install worked as expected, I'm thinking something just isn't right with your existing database(s).

    Might be time to start clean.
    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]
    magguzu
    Offline

    Junior Member

    Posts: 23
    Threads: 3
    Joined: 2024 Jul
    Reputation: 0
    Country:United States
    #16
    2024-10-06, 06:19 PM
    Oh sorry, it wasn't a clean install, it was a complete copy of the existing directory, including the database.

    I have a few things I'm going to try to test later today, namely shutting off everything that might connect to Jellyfin (jellyplex, jellystat, etc), and setting all DNS to default rather than my Pihole.

    In the meantime, I just recreated the issue again, and this time I'm seeing a lot of MediaBrowser.MediaEncoding.Attachments.AttachmentExtractor activity at the end. What's being extracted here? It's the episode I was watching:
    https://pastebin.com/wGqSXaZv

    Also a bunch of:

    [matroska,webm @ 0x5595901a3f00] Could not find codec parameters for stream 41 (Attachment: none): unknown codec
    Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options


    and one instance of

    System.ObjectDisposedException: The CancellationTokenSource has been disposed.
    at System.Threading.CancellationTokenSource.Cancel()
    at MediaBrowser.Controller.Net.BasePeriodicWebSocketListener
    2.DisposeConnection(ValueTuple3 connection)
    [14:10:25] [INF] [50] Emby.Server.Implementations.HttpServer.WebSocketManager: WS 192.168.1.230 closed
    close
    close
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #17
    2024-10-06, 06:27 PM
    You can try recreating the current container. Assuming that something within the temporary portion of Jellyfin is borked for some reason.

    docker compose down jellyfin
    docker system prune -a
    docker compose up -d jellyfin
    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]
    magguzu
    Offline

    Junior Member

    Posts: 23
    Threads: 3
    Joined: 2024 Jul
    Reputation: 0
    Country:United States
    #18
    2024-10-10, 01:08 PM
    I did the above (though this has occurred since before upgrading from another container too), I also turned off Jellyplex and Jellystat, and reinstalled Jellyfin for Android (been using the F-Droid version, FWIW).

    I also removed the query limit on my Pi-Hole, and removed the YouTube mount that I wasn't using anymore.

    It's only been a couple days and I haven't done heavy testing like before, but I haven't seen the issue return yet.

    Other things I want to try if I see the issue return:

    * Transcode to RAM (minimize writes while DB is being written to? I'm trying anything at this point)
    * Disable webhook plugin
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #19
    2024-10-10, 05:17 PM
    Transcoding to RAM requires a pretty intimate understanding of how transcoding works in jellyfin, how big your original source videos are, etc. Not recommended for the faint of heart.
    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]
    magguzu
    Offline

    Junior Member

    Posts: 23
    Threads: 3
    Joined: 2024 Jul
    Reputation: 0
    Country:United States
    #20
    2024-10-18, 09:55 PM
    This issue seems to not be returning anymore.

    I can't say for absolute certain, but I think disabling the font mapping might have been the fix. I hugely appreciate the help!
    Pages (2): « Previous 1 2

    « 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