• 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 General Questions Need help understanding the affect bitrate has on quality

     
    • 0 Vote(s) - 0 Average

    Need help understanding the affect bitrate has on quality

    bolgnacake
    Offline

    Junior Member

    Posts: 4
    Threads: 2
    Joined: 2024 Oct
    Reputation: 0
    #1
    2024-10-17, 03:27 PM
    I'm experiencing a Jellyfin bug where a lot of my 4K titles will transcode, using Amazon Fire Stick TV when they should not. However, this question isn't to address that error (my first post had a member link me to an open bug about the issue). Due to the bug, though, with certain 4K titles I must drop the maximum bitrate within the Jellyfin client application. Its default is 100 Mbit/s, but I seemed to have found the sweet spot of 70 Mbit/s, where many problematic 4K titles will transcode to HEVC (even though that's what they originally were?).

    Today, I found that my 4K Titanic wasn't happy with the 70 Mbit/s bitrate set by the client, so I dropped it to 60 Mbit/s and the movie started to transcode and play - no problem. Then I tried to watch the movie with director commentary, and once again, the open bug created problems - crashing the movie and/or client altogether. After dropping the bitrate to 20 Mbit/s (arbitrarily chosen...maybe it could have played at higher rates), the movie once again played, transcoded fine, and picture quality and commentary were very good.

    In all of the aforementioned scenarios, Jellyfin is transcoding to HEVC for video and ACC for audio. I'm less concerned about audio at this time, since I don't have the best setup, nor do I fully understand all the nuances/differences between codecs. However, I have a nice 4K LG C2 Oled, so naturally I would love the best picture quality. In my opinion, whether the bitrate is 80, 70, or even 20, I'm not seeing a substantial drop in video quality. Should I? I imagine the higher the bitrate the better the quality, but is that not true? What even is the ideal bitrate for 4K streaming?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-10-17, 04:06 PM
    The bit rate selector is, essentially, a cap. If the selected bit rate is HIGHER than the video's native bit rate, nothing will happen. Once you select a bit rate lower than the video's native bit rate, only then will it trigger a transcode.
    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]
    bolgnacake
    Offline

    Junior Member

    Posts: 4
    Threads: 2
    Joined: 2024 Oct
    Reputation: 0
    #3
    2024-10-17, 04:31 PM (This post was last modified: 2024-10-17, 04:31 PM by bolgnacake. Edited 1 time in total.)
    (2024-10-17, 04:06 PM)TheDreadPirate Wrote: The bit rate selector is, essentially, a cap.  If the selected bit rate is HIGHER than the video's native bit rate, nothing will happen.  Once you select a bit rate lower than the video's native bit rate, only then will it trigger a transcode.

    Thanks, that makes sense. Can you kindly clarify a couple of points for me?

    1. In a transcoded scenario, the difference in bit rate will have no visual difference in video quality between bit rates. For example, let's say the max bit rate set in the client is 70 Mb/s, and the video's native is 80 Mb/s.

    Scenario 1 - HEVC transcoded
    Scenario 2 - The client bit rate is dropped down to 40 Mb/s. HEVC transcoded. Same video quality as scenario 1.

    Is this correct?

    2. In my case, original videos are MKV, 4k HEVC HDR. Due to the limitation in the client software at the moment, these are transcoded to HEVC, though my hardware supports the codecs, 4K, HDR, etc., so essentially the same codec. Is it fair to say that even though it's transcoded to its native codec of HEVC, there is some degradation in quality of the video? Not that I can tell from my eyes - picture looks great to me, but I just assume transcoding = downgrading quality to make the video/audio compatible with the client system.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-10-17, 04:49 PM
    1) There will be quality loss in both scenarios. Is that quality loss noticeable? Depends on a lot of factors. Specifically what encoder you are using, like Quick Sync or NVENC or just your CPU, and what settings you're using. With the default settings in Jellyfin, modern iterations of both Intel Quick Sync and Nvidia NVENC will produce very close to original quality at both bit rates for 4K video. You'd have to pause and A/B compare to notice the differences.

    2) Again, yes. At a minimum, you lose HDR since Jellyfin does not currently support HDR to HDR transcoding. Whenever you are re-encoding a lossy codec/lossy configuration, there will be quality degregation. Again, probably not noticeable if the bit rate is sufficiently high.
    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]
    bolgnacake
    Offline

    Junior Member

    Posts: 4
    Threads: 2
    Joined: 2024 Oct
    Reputation: 0
    #5
    2024-10-17, 05:12 PM
    (2024-10-17, 04:49 PM)TheDreadPirate Wrote: 1) There will be quality loss in both scenarios.  Is that quality loss noticeable?  Depends on a lot of factors.  Specifically what encoder you are using, like Quick Sync or NVENC or just your CPU, and what settings you're using.  With the default settings in Jellyfin, modern iterations of both Intel Quick Sync and Nvidia NVENC will produce very close to original quality at both bit rates for 4K video.  You'd have to pause and A/B compare to notice the differences.

    Thank you so much for your quick replies. One last follow-up, because in my mind there is one distinction I'm unsure about. There's quality loss in both scenarios, I understand, but is there MORE quality loss depending on the bit rate number? For example, both transcode at 50 and 40 Mb/s but technically, does the 40 Mb/s transcoding degrade visual quality MORE?

    Thanks again!
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2024-10-17, 05:36 PM
    As the difference between the original and transcode bit rates increase, the loss in quality increases. The difference starts off small, but there is a point where further decreasing the bit rate massive affects the quality.
    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]
    1
    alleycat
    Offline

    Member

    Posts: 69
    Threads: 19
    Joined: 2024 Sep
    Reputation: 0
    Country:United States
    #7
    2024-10-17, 06:14 PM
    I'm curious about this also. What should an Android client (remote Tmobile 4G) be set to "receive" a 4k HEVC HDR stream?
    Jellyfin 10.10.7 (bare metal)
    Ubuntu 24.04.2 LTS, OS 1TB NVMe
    Dell OptiPlex 7050 Intel i7-6700 32GB ram
    Intel Arc A310 ELF
    Storage: TrueNas Mini R Raidz2 45 TiB (Samba shares)
    Gateway: PFsense/HAproxy

    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #8
    2024-10-17, 10:11 PM
    However fast your mobile connection can sustain. A raw 4K HDR video is like 50-80 Mbps. And that needs to be a fast and stable mobile connection.

    And then you need to consider data caps, either absolute data caps where you starting paying more or "3G speeds after you hit this limit" type of caps.

    Auto should adjust the max data rate according to your network performance, but it only performs the network speed test when you start the video.

    IMO, 5-10Mbps is probably a good cap for a consistent mobile experience.
    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]
    alleycat
    Offline

    Member

    Posts: 69
    Threads: 19
    Joined: 2024 Sep
    Reputation: 0
    Country:United States
    #9
    2024-10-17, 10:25 PM
    (2024-10-17, 10:11 PM)TheDreadPirate Wrote: However fast your mobile connection can sustain.  A raw 4K HDR video is like 50-80 Mbps.  And that needs to be a fast and stable mobile connection.

    And then you need to consider data caps, either absolute data caps where you starting paying more or "3G speeds after you hit this limit" type of caps.

    Auto should adjust the max data rate according to your network performance, but it only performs the network speed test when you start the video.

    IMO, 5-10Mbps is probably a good cap for a consistent mobile experience.

    Ok, Thanks. I understand. Didn't know a good starting point, I'll play around with it.
    Jellyfin 10.10.7 (bare metal)
    Ubuntu 24.04.2 LTS, OS 1TB NVMe
    Dell OptiPlex 7050 Intel i7-6700 32GB ram
    Intel Arc A310 ELF
    Storage: TrueNas Mini R Raidz2 45 TiB (Samba shares)
    Gateway: PFsense/HAproxy

    « 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