• 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: Directplay/Directstream constant buffering

    Pages (2): « Previous 1 2

     
    • 0 Vote(s) - 0 Average

    SOLVED: Directplay/Directstream constant buffering

    Directplay/Directstream constant buffering
    IceToast
    Offline

    Junior Member

    Posts: 12
    Threads: 1
    Joined: 2023 Oct
    Reputation: 0
    Country:Germany
    #11
    2023-10-15, 06:24 PM
    Clientsystem:
    7 3700x
    32 GB RAM 2400 MT/s
    6900XT
    It can natively decode everything needed.
    https://hastebin.skyra.pw/aqomotafuk.yaml
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #12
    2023-10-15, 06:34 PM
    Yeeeeep. Lots and lots of buffering.

    Code:
    2023-10-15 20:05:50.924 [debug] unknown @ 0 - cplayer: Enter buffering (buffer went from 100% -> 0%) [0.000000s].
    2023-10-15 20:05:50.924 [info] unknown @ 0 - Entering state: buffering
    2023-10-15 20:05:50.952 [debug] unknown @ 0 - cplayer: Still buffering (buffer went from 0% -> 23%) [0.234000s].
    2023-10-15 20:05:50.953 [debug] unknown @ 0 - cplayer: Still buffering (buffer went from 23% -> 9%) [0.096000s].
    2023-10-15 20:05:51.266 [debug] unknown @ 0 - cplayer: Still buffering (buffer went from 9% -> 11%) [0.112000s].
    2023-10-15 20:05:51.269 [debug] unknown @ 0 - cplayer: Still buffering (buffer went from 11% -> 0%) [0.000000s].
    2023-10-15 20:05:52.069 [debug] unknown @ 0 - cplayer: Still buffering (buffer went from 0% -> 17%) [0.176000s].
    2023-10-15 20:05:52.571 [debug] unknown @ 0 - cplayer: Still buffering (buffer went from 17% -> 20%) [0.209000s].
    2023-10-15 20:05:53.073 [debug] unknown @ 0 - cplayer: Still buffering (buffer went from 20% -> 43%) [0.432000s].
    2023-10-15 20:05:53.876 [debug] unknown @ 0 - cplayer: Still buffering (buffer went from 43% -> 68%) [0.688000s].
    2023-10-15 20:05:54.829 [debug] unknown @ 0 - cplayer: Still buffering (buffer went from 68% -> 94%) [0.944000s].
    2023-10-15 20:05:55.837 [debug] unknown @ 0 - cplayer: End buffering (waited 4.909811 secs) [1.001000s].
    2023-10-15 20:05:55.837 [info] unknown @ 0 - Entering state: playing
    2023-10-15 20:05:55.844 [info] unknown @ 0 - JS: Requesting url without automatic networking: http://192.168.0.137:8096/Sessions/Playing/Progress
    2023-10-15 20:05:56.786 [info] unknown @ 0 - JS: Sending web socket message: KeepAlive
    2023-10-15 20:05:56.786 [info] unknown @ 0 - JS: Received KeepAlive from server.
    2023-10-15 20:05:57.201 [debug] unknown @ 0 - cplayer: Enter buffering (buffer went from 100% -> 28%) [0.288000s].
    2023-10-15 20:05:57.201 [info] unknown @ 0 - Entering state: buffering
    2023-10-15 20:05:57.577 [debug] unknown @ 0 - cplayer: Still buffering (buffer went from 28% -> 16%) [0.166000s].
    2023-10-15 20:05:57.837 [debug] unknown @ 0 - cplayer: Set property: pause=yes -> 1
    2023-10-15 20:05:57.837 [info] unknown @ 0 - Entering state: paused
    2023-10-15 20:05:57.842 [debug] unknown @ 0 - Enabling OS screensaver
    2023-10-15 20:05:57.843 [info] unknown @ 0 - JS: Requesting url without automatic networking: http://192.168.0.137:8096/Sessions/Playing/Progress
    2023-10-15 20:05:58.329 [debug] unknown @ 0 - cplayer: Still buffering (buffer went from 16% -> 20%) [0.209000s].
    2023-10-15 20:05:58.435 [debug] unknown @ 0 - QWindow visibility set to QWindow::Minimized
    2023-10-15 20:05:58.832 [debug] unknown @ 0 - cplayer: Still buffering (buffer went from 20% -> 42%) [0.422000s].
    2023-10-15 20:05:59.632 [debug] unknown @ 0 - cplayer: Still buffering (buffer went from 42% -> 67%) [0.678000s].
    2023-10-15 20:06:00.834 [debug] unknown @ 0 - cplayer: Still buffering (buffer went from 67% -> 93%) [0.934000s].
    2023-10-15 20:06:01.587 [debug] unknown @ 0 - cplayer: Still buffering (buffer went from 93% -> 95%) [0.959000s].
    2023-10-15 20:06:02.088 [debug] unknown @ 0 - cplayer: End buffering (waited 4.886531 secs) [1.190000s].

    For testing. What happens when you play the same video in a browser? Try Edge since that browser SHOULD play HEVC directly. Trying to avoid transcoding HEVC to reduce the number of factors.

    Is there any packet loss in your network? Do you have any QoS enabled?
    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]
    IceToast
    Offline

    Junior Member

    Posts: 12
    Threads: 1
    Joined: 2023 Oct
    Reputation: 0
    Country:Germany
    #13
    2023-10-15, 06:42 PM (This post was last modified: 2023-10-15, 06:43 PM by IceToast.)
    Interesting. Edge can direct play the same file but the issue is different. Instead of buffering every 2 seconds for 2 seconds (or similar) it's lagging and directly playing every frame it gets. So the playback is stuttering like you would play it in slowmo (hard to explain tbh).

    JF Log:
    https://hastebin.skyra.pw/azurupeduj.prolog

    No packet loss in LAN and no real QoS enabled.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #14
    2023-10-15, 06:55 PM
    This is a long shot. Do you happen to have transcode throttling enabled? I know your videos are direct playing, but on my last setup (not a problem on my current setup) having transcode throttling enabled caused buffering issues on SOME devices when direct playing/direct streaming.
    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]
    IceToast
    Offline

    Junior Member

    Posts: 12
    Threads: 1
    Joined: 2023 Oct
    Reputation: 0
    Country:Germany
    #15
    2023-10-15, 07:17 PM
    Nope, throttling is disabled ^^
    IceToast
    Offline

    Junior Member

    Posts: 12
    Threads: 1
    Joined: 2023 Oct
    Reputation: 0
    Country:Germany
    #16
    2023-10-15, 07:27 PM
    I've just tried to force transcode at the client side (JMP) which forces the server to transcode to h264. No buffering, bandwith limit does not apply, 24+ Mbps (= speed of transcode).
    IceToast
    Offline

    Junior Member

    Posts: 12
    Threads: 1
    Joined: 2023 Oct
    Reputation: 0
    Country:Germany
    #17
    2023-10-15, 07:56 PM (This post was last modified: 2023-10-15, 08:14 PM by IceToast. Edited 1 time in total.)
    Okay so i've investigated further. I did lie in my OP a little bit since i thought i have tested it enough. The files are on my smb share.
    When having it locally (on the JF server) it plays nicely without a bandwidth limit to the client (directplay).
    When playing it from smb share -> buffering not above 5Mbps.

    But i can't get over it, that on the one hand transcoding works flawlessly and on the other hand the bandwith to the share is fast enough with way above 200 Mbps.

    Edit:
    So when direct playing the file from the share (file streaming) i only get about 2-5 Mbps. Which leads to buffering since the avg. bitrate is about 9 Mbps.
    When transcoding the file i get about 6Mbps avg. Which doesn't lead to too bad buffering, since the bitrate goes down too.
    When downloading the file using 'cp' directly to the local storage i get over 100MBps.

    Those numbers are from the JF server.

    In conclusion this seems to be a smb issue of file streaming, not a jellyfin issue really.
    IceToast
    Offline

    Junior Member

    Posts: 12
    Threads: 1
    Joined: 2023 Oct
    Reputation: 0
    Country:Germany
    #18
    2023-10-15, 08:27 PM
    Finally!

    Since i tracked it down to the smb share or rather the smb (cifs) mount in particular i fixed this behaviour by setting the cifs cache to loose:

    For reference: https://askubuntu.com/questions/1163520/...cifs-share

    The default in kernels prior to 3.7 was "loose". As of kernel 3.7 the default is "strict".
    1
    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