• 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 Transcoding Cleanup

     
    • 0 Vote(s) - 0 Average

    Transcoding Cleanup

    Understanding why live TV transcoding fills up my drive, even with delete on.
    Lost_Ones
    Offline

    Junior Member

    Posts: 12
    Threads: 5
    Joined: 2024 Sep
    Reputation: 0
    Country:United States
    #1
    2024-09-07, 05:21 PM (This post was last modified: 2024-09-07, 06:17 PM by Lost_Ones. Edited 1 time in total.)
    Hello,  ( Updated )

    I have noticed that when watching live TV for a while I will eat up all the available disk space and I can see that this is due to transcoding of live TV.

    I have Jellyfin 10.9.10 installed with docker compose, using a proper UID and GID.  I launch the docker container with the same user.  What is very odd is I cannot 'cd' beyond config to get to the transcoding folder.  If I am sudo su -,  I can then get to the dir, ad see that the cache and the transcode directories are both owned by my user id.

    I seem to not be able to even delete these manually,  using "find /opt/jellyfin/config/cache/transcodes/*.ts -type f -mmin 15 -delete"  with either my id or sudo su - ( maybe there is a better command ), but I can delete them one by one.  QUICK UPDATE - I added in -mmin +15 and it seems that I can delete files older then 15 minds. I was missing the +, there for I think I was deleting the 'younder ones'. I presume that I can set a crontab, but if I can do via the gui, that would be preferred.


    Under Dashboard I have:

    1)  Under Scheduled tasks, every 15 mins I have clean transcode Dir configured. 

    2) Under Playback -> Transcoding I have everything default except I have ticked Delete Segments, and set the Time to Keep Segments set to 300 seconds.  


    When I am watching live TV, neither one of these seems to be working.  However, if I close out of live TV, all transcodes are removed.

    Am I not properly configured to cleanup transcode so I don't run out of space? 


    Thank you in advance for some direction.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-09-07, 06:06 PM
    I have confirmed what you are seeing and I don't see any open github issues. I'll look at the code and open a github issue once I've found where in the code this isn't getting set for live TV.
    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
    1
    Lost_Ones
    Offline

    Junior Member

    Posts: 12
    Threads: 5
    Joined: 2024 Sep
    Reputation: 0
    Country:United States
    #3
    2024-09-09, 12:02 AM
    Once it is released I will test and report back.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-09-09, 12:52 AM (This post was last modified: 2024-09-09, 01:19 PM by TheDreadPirate. Edited 1 time in total.)
    TLDR; this issue is not a bug, per se. I'm a pretty amateur programmer, but I went down this rabbit hole learning this section of the code last night and today. After a lot of new debug logging I found that the delete segments functionality needs a lot of variables to be "true", not be null, or be non-zero for it to work. And with how live TV, and live TV transcoding, currently works to get delete segments to work with live TV will require a lot of rework in a lot of different parts of Jellyfin's code.

    So don't expect a fix any time soon, but this will be my learning opportunity since this functionality is important to my setup (RAM disk for transcodes).
    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]
    Lost_Ones
    Offline

    Junior Member

    Posts: 12
    Threads: 5
    Joined: 2024 Sep
    Reputation: 0
    Country:United States
    #5
    2024-09-09, 10:42 AM (This post was last modified: 2024-09-11, 11:30 PM by Lost_Ones. Edited 1 time in total.)
    I really appreciate the feedback and the efforts.  In the meantime, I will keep a sudo crontab to clean them out.

    #*/15 * * * * find /opt/jellyfin/config/cache/transcodes/*.ts -type f -mmin +15 -delete    #  removes .ts file in the transcode folders that are older then 15 mins

    Thank you
    timminator
    Offline

    Junior Member

    Posts: 4
    Threads: 0
    Joined: 2024 Aug
    Reputation: 0
    #6
    2024-10-09, 01:00 PM
    I came across this issue aswell today.
    Are there any updates on this?
    I can't find an open or closed issue on this on Github.
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #7
    2024-10-09, 01:22 PM
    Negatory. This would require a pretty big change that will not make it into Jellyfin until, at least, 10.11.
    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]
    timminator
    Offline

    Junior Member

    Posts: 4
    Threads: 0
    Joined: 2024 Aug
    Reputation: 0
    #8
    2024-10-09, 01:43 PM
    But that means there's no need to open an issue on Github about this?
    The Jellyfin Team is aware of this issue?
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #9
    2024-10-09, 01:59 PM
    We are aware.
    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]
    timminator
    Offline

    Junior Member

    Posts: 4
    Threads: 0
    Joined: 2024 Aug
    Reputation: 0
    #10
    2024-10-09, 02:04 PM
    Thank you and the Jellyfin Team for your hard work. I appreciate it a lot!
    1
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 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