For starters, the ffmpeg that installs from the App Store is a crippled up version. It runs only what Asustor feels they want you to run. Install that and it goes into a folder you can't see from the ADM.
Next, if you followed the instructions from that page completely, and use the directory structure I gave there, you should have something like this for you other ffmpeg install:
/volume1/misc/convert/ffmpeg This is where any or all scripts for conversions should be looking for ffmpeg, ffmprobe, etc....
Last, the ONLY way you can get the scripts to check for files is to use WinSCP or another shell client to edit the cron file. This is located at:
/volume0/usr/builtin/etc/crontabs/root. The file name is root.... No extension.... You can NOT get to this file through the ADM as this is another thing Asustor assumes no one needs to know how to manipulate.... Everything should be strictly through the ADM as far as they seem to think....
I put the following header into the file to make it easier to know what's going on....
- Code: Select all
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
Then I use this line to call Test-Conv.sh every 15 minutes:
*/15 * * * * /volume1/misc/Test-Conv.shThis checks if ffmpeg is already running, if not, starts it off the conversion for the files in the folder. If so, it waits the 15 minutes for the next check. Otherwise you can get some REAL nasty loops and things happening, and no memory left on your NAS as it keeps the loops going indefinitely.
Let me know how this goes.