• 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 Playback stops when DirectPlay, then start transcoding

     
    • 0 Vote(s) - 0 Average

    Playback stops when DirectPlay, then start transcoding

    Bekkk
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Apr
    Reputation: 0
    Country:France
    #1
    2024-04-14, 09:47 PM (This post was last modified: 2024-04-14, 09:47 PM by Bekkk. Edited 1 time in total.)
    Hello everyone,

    New to this channel, I will try to make my post as good as I can.

    I am running Jellyfin on a RaspberryPi 4B, in a docker container.

    Videos are stored on a 4TB HDD, plugged to a 4 USB port with PSU, plugged to the RPi.

    I am using mergerfs to group multiple disk into one repository only (I do have only 1 disk for now, more are coming).

    I am not transcoding, I try not to because my clients don't need it and the RPi is not very powerful.

    When I am playing some videos on my NVIDIA shield on my local network, I do have playback problem. It sometimes stop, in an irregular way, and then, I get this log message :

    jellyfin  | [21:13:34] [WRN] [42] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://192.168.1.146:8096/Videos/ff9e981...tatic=true to 192.168.1.101 in 0:00:07.6626119 with Status Code 206
    jellyfin  | [21:14:56] [INF] [26] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for rmorel. EnablePlaybackRemuxing: False EnableVideoPlaybackTranscoding: False EnableAudioPlaybackTranscoding: False
    jellyfin  | [21:14:56] [INF] [26] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile=AndroidTV-libVLC, Path=/media/movies/Oppenheimer (2023)/Oppenheimer.2023.MULTI.VFF.2160p.10bit.4K.Light.HDR.BluRay.DTS.5.1.x265-Elcrackito.mkv, AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) mediaConfused-facevideos/ff9e981b-db95-b15e-9df0-be1f32a85f40/stream.mkv?MediaSourceId=ff9e981bdb95b15e9df0be1f32a85f40&Static=true&VideoCodec=hevc&AudioCodec=eac3&AudioStreamIndex=2&SubtitleStreamIndex=9&api_key=<token>&SubtitleMethod=Embed&Tag=d033b4e699e2fd42ee75e76708e4d810
    jellyfin  | [21:14:56] [INF] [42] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app Android TV 0.16.7 playing Oppenheimer. Stopped at 776499 ms
    jellyfin  | [21:14:56] [INF] [70] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for rmorel. EnablePlaybackRemuxing: False EnableVideoPlaybackTranscoding: False EnableAudioPlaybackTranscoding: False
    jellyfin  | [21:14:56] [INF] [70] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile=AndroidTV-ExoPlayer, Path=/media/movies/Oppenheimer (2023)/Oppenheimer.2023.MULTI.VFF.2160p.10bit.4K.Light.HDR.BluRay.DTS.5.1.x265-Elcrackito.mkv, AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=Transcode, TranscodeReason=AudioCodecNotSupported ) mediaConfused-facevideos/ff9e981b-db95-b15e-9df0-be1f32a85f40/stream?MediaSourceId=ff9e981bdb95b15e9df0be1f32a85f40&AudioStreamIndex=2&SubtitleStreamIndex=9&api_key=<token>&SubtitleMethod=Encode&RequireAvc=false&Tag=d033b4e699e2fd42ee75e76708e4d810&TranscodeReasons=AudioCodecNotSupported
    jellyfin  | [21:15:07] [WRN] [44] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://192.168.1.146:8096/Videos/ff9e981...tatic=true to 192.168.1.101 in 0:00:51.9143898 with Status Code 206

    I do have several questions :
    1) Regarding the logs, am I really not transcoding ? It looks like Jellyfin is trying to transcode even though I refuses it.
    2) Should I do : No transcoding / Remux / Audio ? (For sure I can't transcode video)
    3) Do you have any idea what could be the reason of it ?

    Thanks for the help !


    Attached Files
    .txt   log_240414.txt (Size: 122.03 KB / Downloads: 132)
    .txt   upload_org.jellyfin.androidtv_0.16.7_20240414205246_a5df50d074e84269b83f9f652748fa10.txt (Size: 16.56 KB / Downloads: 81)
    .txt   FFmpeg.Remux-2024-04-14_20-53-09_a0f08456fd3120705bb846ab029e8f3b_1fb4e37a.txt (Size: 183.12 KB / Downloads: 81)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-04-15, 02:08 AM
    Nothing stands out server side. Does it always happen in the same spot in the movie? And does it only happen with Oppenheimer?
    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]
    Bekkk
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Apr
    Reputation: 0
    Country:France
    #3
    2024-04-15, 08:27 AM
    Hello, I couldn't tell if it the exact same time, but I don't think so. It happens around 10 - 20 min (which makes it hard to debug...)

    It also happened on some episodes of Ozark, but not all of them.

    Other tests I did :
    - Phone - external network : no problem for more than 20 min. (I am using Cloudflare to redirect to my server)
    - Windows PC - local network : no problem for more than 20 min.
    - Someone of my family - external network : no problem.

    What do you think I should test ?
    Software :
        Jellyfin 10.8.13
        Docker container, image : lscr.io
    Hardware :
        Raspbian / Raspberry PI 4B 8GB RAM
        OS drive - KINGSTON A400 SSD
        Storage :
            SABRENT HUB USB 4 ports 5V / 2.5A + mergerfs
            TOSHIBA 4TB
    Clients : NVIDIA Shield, Phone, IPad, PC, Xiaomi Box (max 3 together)
    Bekkk
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Apr
    Reputation: 0
    Country:France
    #4
    2024-04-15, 11:01 AM
    Ok I did more check :
    - It appears Oppenheimer is not working on any devices at all. It stops randomly while playing (external or local network)
    - I tried to change the volume in JF docker from my mergerfs pool to the disk directly, and things seem much better now.

    More details on mergerfs :
    I created a partition /mnt/toshiba4TB for my disk, and a partition /mnt/pool for mergerfs. While having the problem, JF was reading on /mnt/pool
    I changed the volume I am using in docker-compose from /mnt/pool to /mnt/toshiba4TB (meaning now JF is directly looking onto the disk instead of using mergerfs), and it doesn't give me any trouble.

    Seems like mergerfs could be the reason of it. Do you guys have any idea why ?
    Here is my fstab :

    /mnt/toshiba4TB /mnt/pool fuse.mergerfs cache.files=off,dropcacheonclose=true,category.create=mfs 0 2
    Software :
        Jellyfin 10.8.13
        Docker container, image : lscr.io
    Hardware :
        Raspbian / Raspberry PI 4B 8GB RAM
        OS drive - KINGSTON A400 SSD
        Storage :
            SABRENT HUB USB 4 ports 5V / 2.5A + mergerfs
            TOSHIBA 4TB
    Clients : NVIDIA Shield, Phone, IPad, PC, Xiaomi Box (max 3 together)
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #5
    2024-04-15, 07:49 PM
    I have no idea. Never used mergefs, but I don't see why that would cause issues.
    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]
    Bekkk
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Apr
    Reputation: 0
    Country:France
    #6
    2024-04-17, 08:10 AM
    Hello,

    I did precise what was the cause of the problem. I used dmseg to find out if I had I/O errors, and that was it. This was due to a failure reading the file from my HDD drives, which is plugged to powered USB port, which is plugged to my Raspberry PI 4b.

    Probable causes : disk problem, cable problem, powered hub problem.

    Do you know by chance anyone who used a Raspberry PI with a powered hub and encountered those kind of issues ?

    I keep going with the investigation.
    Software :
        Jellyfin 10.8.13
        Docker container, image : lscr.io
    Hardware :
        Raspbian / Raspberry PI 4B 8GB RAM
        OS drive - KINGSTON A400 SSD
        Storage :
            SABRENT HUB USB 4 ports 5V / 2.5A + mergerfs
            TOSHIBA 4TB
    Clients : NVIDIA Shield, Phone, IPad, PC, Xiaomi Box (max 3 together)
    « 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