• 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 Development Server Development How does Jellyfin live transcoding?

     
    • 0 Vote(s) - 0 Average

    How does Jellyfin live transcoding?

    theprof
    Offline

    Junior Member

    Posts: 1
    Threads: 1
    Joined: 2024 Oct
    Reputation: 0
    Country:United States
    #1
    2024-10-23, 07:02 PM
    How does Jellyfin do live transcoding?

    Basically, how is FFMPEG doing the realtime transcoding meanwhile the client's browser is able to fast forward/seek in terms of HTTP?

    I'm able to pipe the FFMPEG transcoding output to the browser HTML5 video. However, it keeps downloading and increasing the duration during the playback so it's possible to seek to a specific minute mark until the whole video has been downloaded. How does Jellyfin do it?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-10-23, 07:31 PM
    On a decently spec'd system, ffmpeg is transcoding faster than real time and building up a buffer. If you skip to a part that already has been transcoded, Jellyfin will send the segment from that time stamp. If you skip to a portion of the video where ffmpeg has not yet transcoded, ffmpeg will be restarted at that time stamp and there is usually a noticeable delay of a few seconds for this situation.
    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]
    KodiUser1138
    Offline

    Member

    Posts: 271
    Threads: 33
    Joined: 2023 Jun
    Reputation: 0
    Country:Canada
    #3
    2025-03-05, 08:30 PM
    I'm curious what JF does as it's transcoding, specifically with the new format file it is creating? It saves to the designated hard drive location, correct? How long does it stay there for? (Also is there a discussion for best spec systems I can't yet find)?
    JF Wish List:
    IMDb Top250 metadata
    Collection content rules: Library-Title/Sorttitle/Tag/Director/Filename/Contains
    Collection organized by Library
    Collections scanned to editable XML
    Media info show added Collection
    Soundtrack auto link to movie by title/sort/Manual
    Read Music Album Sort
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2025-03-05, 11:46 PM
    The transcode files stay in the transcode directory until the client that requested the transcode ends their playback session. At which point Jellyfin immediately cleans up just the transcode files associated with that session.

    If Jellyfin happens to crash hard, there is a job in the Scheduled Tasks dashboard that will clean up the transcode directory of any files older than 24 hours. This job runs on startup and every 24 hours after.

    As for the "best" specs, it depends on your budget and needs. And whether it will be a dedicated server or mixed use. A lot of people run Jellyfin on their gaming PC. In that situation, I'd recommend an Nvidia GPU for transcoding. For a dedicated server, I'd recommend an Intel dedicated GPU or Intel CPU with an iGPU (this excludes most Xeons and F SKU desktop chips).
    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]
    KodiUser1138
    Offline

    Member

    Posts: 271
    Threads: 33
    Joined: 2023 Jun
    Reputation: 0
    Country:Canada
    #5
    2025-03-06, 07:43 AM
    IS there a setting to adjust how long JF keeps the transcode before trashing it once playback stops? Just thinking of times when you might stop to get snacks, answer the door or something but not be gone longer than 10-20 minutes.

    Also likely best for another thread but I'm looking at my options for a purpose built machine down the road and want it to have POWER but not be like Mad Max overkill. Just haven't found a real good build guide.discussion for that.
    JF Wish List:
    IMDb Top250 metadata
    Collection content rules: Library-Title/Sorttitle/Tag/Director/Filename/Contains
    Collection organized by Library
    Collections scanned to editable XML
    Media info show added Collection
    Soundtrack auto link to movie by title/sort/Manual
    Read Music Album Sort
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #6
    2025-03-06, 01:24 PM
    If you pause playback, the files will remain. It is only when you straight up stop playback or close the client that Jellyfin will clean up.

    But there is no setting to adjust how long Jellyfin retains transcode files in the event that you unintentionally stop playback.

    As for specs when building a dedicated machine, honestly my system specs are a good starting up. Start a separate thread and include your budget, your typical simultaneous user count, and the specs of your current system and what parts you have lying around that you could re-use.
    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]
    KodiUser1138
    Offline

    Member

    Posts: 271
    Threads: 33
    Joined: 2023 Jun
    Reputation: 0
    Country:Canada
    #7
    2025-03-06, 06:31 PM
    I am going to add a feature request for a time toggle on how long to keep full/partial transcode files before culling the transcode folder. Reason being if something causes your connection to end but it will be back up shortly, no need to harness power and compute cycles to re-transcode everything all over again. IU thnk that makes sense?
    JF Wish List:
    IMDb Top250 metadata
    Collection content rules: Library-Title/Sorttitle/Tag/Director/Filename/Contains
    Collection organized by Library
    Collections scanned to editable XML
    Media info show added Collection
    Soundtrack auto link to movie by title/sort/Manual
    Read Music Album Sort
    « 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