Jump to content
talkto_menow

Python script will help you archive plex dvr recordings

1 post in this topic Last Reply

Recommended Posts

I created this script due to the fact that I was slowly running out of space on my unRaid box, The script allows for archiving optimized versions. Please read the article on my blog

 

Python script will help you archive plex dvr recordings.

 

Plex dvr is a welcomed addition to this great media server. However, before you start recording your favorite show, you should be aware that recordings can take a lot of space on your server. Plex saves the files as Transport Stream with the extension “ts”. On average one hour show will take about 6 GB of space. If you plan to record more shows and you would like to watch them at later time, you will eventually run into problem of not having enough of space. One option is to purchase larger hard drives. Other option is to compress recordings to smaller formats. Plex does not have this feature yet, however it is capable of compressing files into mp4. It is called optimized version. Once you decide to create optimized version Plex will create special folder within TV Series Season folder where compressed files are stored. This will allow you to stream optimized version to your phone or any other device. This is not an archiving feature. Once you delete original recording, the optimized version is also deleted from the the hard drive. This is where python script comes in. It will move and replace original ts recording with new optimized mp4 version. Before we can run the script we have to prepare computer or server to run the script. The script was created in mind that it will be run on Linux unRaid box. However, since it is python script it should be able to run on any PC that has Python installed.

 

optimize.jpg

 

 

mover_preview.jpg

 

 

Please let me know if you have any questions

Thanks

 

 

 

 

 

 

 

 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.