Converting Plex library files into .MP4 to save HDD space

Support for Windows users
Post Reply
mwhallberg
Posts: 1
Joined: 11 Nov 2018, 23:26

Converting Plex library files into .MP4 to save HDD space

Post by mwhallberg »

Hi there.

Would it be possible to process all my media files on my plex server based on this?

Music:
Download finished
Filebot script detects completed download
Filebot rename file to "[Artist Name] - [Album Name] - [Track Title]"
Filebot moves file to "\\PLEXSERVER\PLEXSHARE\Music\[Artist Name]\[Album Name]\"
Fiebot sends command to PLEX to update the music library

Movies
Download finished
Filebot script detects completed download
Filebot rename file to "[Movie Name] ([Release Year For Movie])"
Filebot moves file to "\\PLEXSERVER\PLEXSHARE\Encode input\"
(a program) Extract subtitles and saves them as seperate .srt files including ISO 639-1 name (*)
(a program) Moves newly saved .srt files to "\\PLEXSERVER\PLEXSHARE\Movie\[Movie Name] ([Release Year For Movie])\"
(a program/script) detects new file in "\\PLEXSERVER\PLEXSHARE\Encode input\"
(a program/script) check if there is a file in "\\PLEXSERVER\PLEXSHARE\Encode input\Encoder01\"
If folder is empty
move movie into it
ELSE
(a program/script) check if there is a file in "\\PLEXSERVER\PLEXSHARE\Encode input\Encoder02\"
If folder is empty
Move movie into it
ELSE
WAINT 30 SECONDS
GOES BACK TO FIRST CHECK

Filebot script detects new movie(s) in "\\PLEXSERVER\PLEXSHARE\Encode output\"
Filebot moves movie(s) into "\\PLEXSERVER\PLEXSHARE\Movie\[Movie Name] ([Release Year For Movie])\"
Filebot sends command to PLEX to update the movie library

TV Shows:
Download finished
Filebot script detects completed download
Filebot rename file to "[TV Show Name] - S[Season Number]E[Episode Number] - [Episode Name]"
Filebot moves file to "\\PLEXSERVER\PLEXSHARE\Encode"
(a program) Extract subtitles and saves them as seperate .srt files including ISO 639-1 name (*)
(a program) Moves newly saved .srt files to "\\PLEXSERVER\PLEXSHARE\TV Shows\[TV Show Name]\Season [Season Number]\"
(a program/script) detects new file in "\\PLEXSERVER\PLEXSHARE\Encode input\"
(a program/script) check if there is a file in "\\PLEXSERVER\PLEXSHARE\Encode input\Encoder01\"
If folder is empty
move episode into it
ELSE
(a program) check if there is a file in "\\PLEXSERVER\PLEXSHARE\Encode input\Encoder02\"
If folder is empty
Move episode file into it
ELSE
WAINT 30 SECONDS
GOES BACK TO FIRST CHECK

Filebot script detects new episode(s) in "\\PLEXSERVER\PLEXSHARE\Encode output\"
Filebot moves episode(s) into "\\PLEXSERVER\PLEXSHARE\TV Shows\[TV Show Name]\Season [Season Number]\"
Filebot sends command to PLEX to update the TV shows library''

As of right now I don't know any programs what can extract the subtitles for a TV show or movie.
As of right now I don't know how to check if a folder is empty with powershell or cmd and them do something bassed on that.
So you have any idea what a could use, I would love to hear it.

* https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
User avatar
rednoah
The Source
Posts: 22972
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Converting Plex library files into .MP4 to save HDD space

Post by rednoah »

Looks like this is mostly supported by the amc script:
viewtopic.php?f=4&t=215

You'll have to use the --def exec option to call into your own scripts for subtitle extractions / re-encoding / etc after processing though. Try the ffmpeg command-line tool for that.
:idea: Please read the FAQ and How to Request Help.
Post Reply