• 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 Changing ffmpeg encoder from libx264 to rkmpp

     
    • 0 Vote(s) - 0 Average

    Changing ffmpeg encoder from libx264 to rkmpp

    RockChip Hardware acceleration, ffmpeg, encoders
    Felix_Teil
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2023 Aug
    Reputation: 0
    #1
    2023-08-16, 12:48 PM
    Greetings,
    I am currently in the process of attempting to run Jellyfin on my Nanopc-T6 SOC
    ( rk3588 ). I've managed to obtain a functional version of ffmpeg that supports
    the encoding codec rkmpp. However, despite using that ffmpeg version within
    Jellyfin, the software consistently defaults to using libx264 for encoding. Is
    there a method to alter the encoding codec without the necessity of rebuilding
    Jellyfin from scratch?

    In the event that I do need to compile Jellyfin from its source code, I find the
    instructions for this process somewhat unclear. Could someone provide guidance
    on how to proceed? Additionally, I'm curious about the necessary modifications
    I would have to make. Would it also be imperative to build ffmpeg anew,
    specifically tailored for RockChip, even if I intend to use a different version
    that already supports RockChip?

    Although I have come across numerous posts regarding hardware acceleration for RockChip,
    most of them have become inactive and failed to yield any solutions. I'm
    hopeful that someone might be able to assist me or at the very least point me
    in the right direction. 

    I would greatly appreciate any suggestions or insights.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2023-08-16, 05:10 PM
    I'm not a dev, but my understanding is that the logic to determine what codec to use for transcoding is built into Jellyfin, not ffmpeg. Which almost certainly doesn't include rkmpp.
    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]
    Felix_Teil
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2023 Aug
    Reputation: 0
    #3
    2023-08-16, 06:25 PM
    That's what I thought, but my understanding is that jellyfin just calls ffmpeg with a set of parameters and im interested in "forcing" it to use rkmpp instead of libx264.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2023-08-16, 06:45 PM
    If you are asking if there is a setting to do that, there isn't one that I'm aware of. You would need to modify jellyfin's code.
    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]
    Venson
    Offline

    Moderator, Server Dev, XBox Maintainer

    Posts: 380
    Threads: 7
    Joined: 2023 Jun
    Reputation: 15
    Country:Germany
    #5
    2023-08-16, 08:16 PM (This post was last modified: 2023-08-16, 08:17 PM by Venson. Edited 1 time in total.)
    Hey @Felix_Teil

    What encoder is used is determined by whenever you enabled hardware acceleration or not. If you do not enable HWA jellyfin will use the software encoder for the requested codec (in your case x264) which is libx264. If you would to enable hardware acceleration for nvidia, it would use h264_nvenc. However i am certain Rockchip is not in the list of supported hardware accelerated devices and would needed to be added in code to be supported which would bring a lot of other issues to be solved with them.
    typos are finders, keepers.
    Next Jellyfin release 10.11.0 will be Soon™
    Soon™ is an unregistered trademark of Jellyfin International
    nyanmisaka
    Offline

    Team Member

    Posts: 253
    Threads: 0
    Joined: 2023 Jun
    Reputation: 10
    #6
    2023-08-16, 09:07 PM
    We still have a lot of work to do before officially adding RockChip RKMPP support in Jellyfin.

    See https://github.com/hbiyik/FFmpeg/issues/14
    Felix_Teil
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2023 Aug
    Reputation: 0
    #7
    2023-08-18, 08:32 PM
    I hoped it just be a small change and rebuild of jellyfin but kinda figured if it be that easy somebody would have done it already.. thank you for the answers.
    nyanmisaka
    Offline

    Team Member

    Posts: 253
    Threads: 0
    Joined: 2023 Jun
    Reputation: 10
    #8
    2023-12-26, 08:32 PM
    The implementation for Rockchip RKMPP has been completed.
    You can try it here and give some feedback.

    https://github.com/jellyfin/jellyfin/pull/10748
    deepfriedbutter
    Offline

    Junior Member

    Posts: 3
    Threads: 1
    Joined: 2024 Feb
    Reputation: 0
    #9
    2024-04-03, 04:43 PM
    (2023-12-26, 08:32 PM)nyanmisaka Wrote: The implementation for Rockchip RKMPP has been completed.
    You can try it here and give some feedback.

    https://github.com/jellyfin/jellyfin/pull/10748

    Running this and so far it is working great. Thanks so much!

    Do we need to continue using this specific branch for rkmpp in the future?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #10
    2024-04-03, 04:47 PM (This post was last modified: 2024-04-03, 04:48 PM by TheDreadPirate. Edited 1 time in total.)
    It was merged into master, so it should already be in the builds we are putting out now. Both docker images and packages. And it will be included when 10.9 is officially released.
    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]
    « 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