Yesterday, 09:53 PM
(This post was last modified: Yesterday, 10:25 PM by Anlec. Edited 2 times in total.)
If someone is wondering how to to delete the .ts and .m3u8 file via cronjob:
NOTE: Make sure your file path is correct and your user has permission to delete files in the ../transcodes folder
Also, if you are you running something like ErsatzTV, I would recommend rebooting it at least once a day. This will help in the event that a user's client disconnects improperly and ErsatzTV doesn't stop the transcoding process. Rebooting will kill the transcode action and the cronjob above will clean up the .ts and .m3u8 files.
EDIT:
Jellyfin normally deletes the files. This only seems necessary if the client doesn't disconnect gracefully.
Code:
*/15 * * * * find /docker/jellyfin/library/cache/transcodes/ \( -name "*.ts" -or -name "*.m3u8" \) -type f -mmin +15 -delete # Removes .ts and .m3u8 files in the transcodes folder that are older then 15 minsNOTE: Make sure your file path is correct and your user has permission to delete files in the ../transcodes folder
Also, if you are you running something like ErsatzTV, I would recommend rebooting it at least once a day. This will help in the event that a user's client disconnects improperly and ErsatzTV doesn't stop the transcoding process. Rebooting will kill the transcode action and the cronjob above will clean up the .ts and .m3u8 files.
EDIT:
Jellyfin normally deletes the files. This only seems necessary if the client doesn't disconnect gracefully.

