Cayars - Setup walk through and some tips and tricks

Has anyone achieved to run Cayars script on Mac OS or on a Synology NAS? I have my Plex server on my Mac mini and Sonarr and Sabnzbd running on my Synology NAS. I’ve tried to follow the instructions on how to install the script but despite being very computer savvy I don’t know anything about Python scripting or Unix/Linux commands and the script seems to be catered for Windows.

Anyone that could please point me in the right direction of how to install either on the Synology (so it can run on the same machine as my SABNZBD and Sonarr) OR on Mac OS and interface with the Synology?

Many thanks, I’ve pulled all my hair out trying to understand it all!

MikeG6.5 has it running on his NAS and I believe has a customized version of this linked in his SIG.

@jayz78 said:
Has anyone achieved to run Cayars script on Mac OS or on a Synology NAS? I have my Plex server on my Mac mini and Sonarr and Sabnzbd running on my Synology NAS. I’ve tried to follow the instructions on how to install the script but despite being very computer savvy I don’t know anything about Python scripting or Unix/Linux commands and the script seems to be catered for Windows.

Anyone that could please point me in the right direction of how to install either on the Synology (so it can run on the same machine as my SABNZBD and Sonarr) OR on Mac OS and interface with the Synology?

Many thanks, I’ve pulled all my hair out trying to understand it all!

Python is not os bound…you just have to make sure it is installed on your NAS or Mac. For the script i think all you will need to do is in the ini file point it to your FFMEG location on your nas or mac and for the manual.py you replace the C:\Python27\Python by your /path/to/python. Basically you just need to change all windows paths to Nix equivalent.

@saitoh183 said:

@jayz78 said:
Has anyone achieved to run Cayars script on Mac OS or on a Synology NAS? I have my Plex server on my Mac mini and Sonarr and Sabnzbd running on my Synology NAS. I’ve tried to follow the instructions on how to install the script but despite being very computer savvy I don’t know anything about Python scripting or Unix/Linux commands and the script seems to be catered for Windows.

Anyone that could please point me in the right direction of how to install either on the Synology (so it can run on the same machine as my SABNZBD and Sonarr) OR on Mac OS and interface with the Synology?

Many thanks, I’ve pulled all my hair out trying to understand it all!

Python is not os bound…you just have to make sure it is installed on your NAS or Mac. For the script i think all you will need to do is in the ini file point it to your FFMEG location on your nas or mac and for the manual.py you replace the C:\Python27\Python by your /path/to/python. Basically you just need to change all windows paths to Nix equivalent.

Thanks very much saitoh183. I had tried to do that in the past but nothing seemed to have happened and I assumed I either entered the paths wrong or my integration with Sonarr wasn’t correct.

I would prefer to install on the Synology NAS but I have a feeling that the Linux OS on it is picky about file permissions etc so would require Linux knowledge.

I presume there is no log output when the script fails to troubleshoot?

@jayz78 said:

@saitoh183 said:

@jayz78 said:
Has anyone achieved to run Cayars script on Mac OS or on a Synology NAS? I have my Plex server on my Mac mini and Sonarr and Sabnzbd running on my Synology NAS. I’ve tried to follow the instructions on how to install the script but despite being very computer savvy I don’t know anything about Python scripting or Unix/Linux commands and the script seems to be catered for Windows.

Anyone that could please point me in the right direction of how to install either on the Synology (so it can run on the same machine as my SABNZBD and Sonarr) OR on Mac OS and interface with the Synology?

Many thanks, I’ve pulled all my hair out trying to understand it all!

Python is not os bound…you just have to make sure it is installed on your NAS or Mac. For the script i think all you will need to do is in the ini file point it to your FFMEG location on your nas or mac and for the manual.py you replace the C:\Python27\Python by your /path/to/python. Basically you just need to change all windows paths to Nix equivalent.

Thanks very much saitoh183. I had tried to do that in the past but nothing seemed to have happened and I assumed I either entered the paths wrong or my integration with Sonarr wasn’t correct.

I would prefer to install on the Synology NAS but I have a feeling that the Linux OS on it is picky about file permissions etc so would require Linux knowledge.

I presume there is no log output when the script fails to troubleshoot?

i would run it via terminal to see what happens

Check out my signature for @cayars scripts modified as he pointed out to you. This was for his first version of the scripts he released, and I haven’t had the time to try working on getting the newest version working, yet. (Been a plethora of errors and I just haven’t had the hours to dedicate to it, when I have something that works 95% of the time now.)

As has been pointed out, it’s simple re-pathing the commands, and I know for a fact there are a few running Synology NASes that have taken these scripts and my instructions to make them work for themselves. It’s not rocket science, but it does take a bit of working knowledge of the OS. (And tools like WinSCP and PuTTY)

Is it possible to convert to h.265 instead of h.264 as the files should be more compressed with similar quality?

@cayars how can I use your scrip and only have AAC Audio ? Atm it’s leaving AC3 and it’s causing a lot of issues on my side with different players and TV brands, I only want AAC or FLAG AAC to play as default , right now when I use this scrip the first audio that is chosen when selecting a movie is AC3 and we need to manually change it to AAC

thank you !!

Switch to the new version. It will create the AAC audio track as well as keep the others BUT it correctly marks the first track as the default!

Wait until later today to download it as I’m posting the official version 2 today (non beta) which has a few fixes as well as expands the formats supported. The original will be named version 1 while this new version should have the 2.1 in the name. I’ll post here in this thread to let everyone know it’s up and ready.

Carlo

PS
This is what I answered in the other thread:
@TwistedEndz the first version of the script did always create an AAC track as the first track but didn’t mark it as default. The newer version 2 BETA does the same but marks this AAC track as the default which is what you’re looking for.

So try installing the newer version. Pick one of you problem/test files and run it through the new version which should be very quick. Try a refresh on the library after putting it back.

You may need (can’t remember) to do the Plex Dance on the file after putting it back again.

But the new version will mark it correctly.

@cayars thanks man !!

@cayars - I have been following this thread and I currently using sickbeard mp4 automator and I have that setup to convert and move my files. However, I’m interested in your code and wanted to know if you of if anyone has a install guide from scratch? I’d like to set this up and test on a VM before rolling it into the environment.

Thanks

If you can install mp4automator you can install this.
Basically the install directions are in the release post or just refer to the instruction.txt file included in the new releases.

it’s really just a matter of installing python and the correct libs as well as unzipping the file I provide. Then modify ini file if needed and set your paths.

These scripts are modified versions of mp4automator that work better with plex and give better quality (trade off on speed). So if you already have mp4automator running you probably have all the needed libs. Still won’t hurt to read the instruction.txt and make sure all your libs are up to date. If you are on windows I give the exact commands to cut and paste to do this.

You won’t have any problems. Wait a couple of hours for my post here with the newest version.

Carlo

Thanks @cayars, I’ll spin up a VM and start from scratch and let you know what I come up with. Thanks!!

thanks , let us know !

Got the new version ready to go but found one thing I wanted to change and test. I loaded up about 100 files to test. I’ll look at them in the morning and if all is good post the new version.

Sorry for the slight delay,
Carlo

Thank you for all the hard work. Looking forward to using this to streamline my library

Here is Version 2.1 of the conversion scripts.
You can download them from ftp://ayars.tv
userid: guest
password: guest

You will find a instructions.txt file which has the directions:

in browser goto https://www.python.org/downloads/windows/
scroll down to Python 2.713 and download/install Windows x86-64 MSI installer

open powershell and cut and paste the following:
cd c:\python27
pip install requests
pip install requests[security]
pip install requests-cache
pip install babelfish
pip install “guessit<2”
pip install “subliminal<2”
pip install stevedore==1.19.1
pip install python-dateutil
pip install deluge-client
pip install qtfaststart
exit or close powershell

Unzip Convert-2.1.zip to C:\Convert

As with previous script modify run.bat to match your directories if needed. At present it will look in c:\convert\process for files that need to be processed.

As with version 2 (previously called beta) this version requires additional libraries to be installed and some of them must be recent versions. On windows you can cut and paste the “pip installs” above to get things working quickly.

If you already have version 2.0 installed you should only need to unzip the file over the previous directory.

This version has a few fixes. I’ve also added the file name to the status line so you can always tell what file is being converted. I modified the run.bat file so that once it completes it waits 60 seconds and then checks for new files to process.

This version adds several other file types it can convert such as real media, wmv, flash, etc…

Let me know how it goes,
Carlo

ty trying it now

so far it looks like magic , all i had to do was change your .bat " c:\python3 " to Python27

:start
c:\python3\python manual.py -a -i C:\convert\process
TIMEOUT /T 60
goto start

Thanks for posting that. Forgot to mention you can use Python 2.7 or Python 3 with it. Python 3 handles special characters in file names much better than python27 which is why I’m using it and of course to test with. :slight_smile:

@cayars said:

You’re already maxed out at 8 drives for the “pool” so this new drive won’t be part of any striping. That’s just the beginning of the problems you’ll experience with RAID or Storage Spaces in general.

That’s not really true, at least in my case. I can add to my RAID pool at any time. I have this RAID box…

http://www.datoptic.com/ec/thunderbolt2-20gb-twelve-6gb-bay-hardware-raid5-6-quiet-tower.html

…and buying another and plugging it in will expand my original.

Scale-able up to 256 HDDs, …supports daisy-chain to multiple T1216-S6 chassis’ for a 256 SAS/SATA drives can be connected. These SAS chassis daisy chain together via miniSAS cables and full support hot to expand the RAID from MASTER chassis. It also supports Array roaming - Move RAID to different system without rebuild and Supports Multiple RAID Array volumes, if you wish.

The speed of this thing is off the charts. My current one is 96TB in RAID 6 (so 80 useable, of that 15 left :dizzy: ). But I plan on adding another soon, so I will have two of these daisey chained for a total of 24 drives w/ 160TB useable in a RAID 6 setup. Did I mention the speed? I am tapping out Thunderbolt 2.

They now have 16 bay Thunderbolt 3 options, and those tap out Thunderbolt 3 (40G).