User Tools

Site Tools


refresh_on_demand_linux

This is an old revision of the document!


HOW TO REFRESH ONLINE FOLDERS ON DEMAND FROM THE CLIENT

Please read __THE NEED FOR REFRESH ON DEMAND__ article for the background.

The ability to implement “Force Refresh” feed items in the Refresh.groovy is based on 6 prerequisite one time implementations. These steps have been explained in detail in the link provided above.

Below are only the steps that differ in linux.

1) Install curl (libcurl) using apt-get/yum/rpm based on the Unix/Linux flavor you are using, if its not already installed.

2) Same as in the article linked above.

3) Same as in the article linked above.

4) This step is not required for Synology. In your linux console/ssh, logged in as root, go to $SERVIIO_HOME/bin/ directory. Look for the following files: serviio.sh, serviio-console.sh, serviio-wrapper.sh. In each of the files, search for JAVA_OPTS=.

Add -Dffmpeg.location=$SERVIIO_HOME/bin/ffmpeg-wrapper.sh within the double-quotes after JAVA_OPTS=.

Note: There are other options within double-quotes after JAVA_OPTS= as well. Do not change any other option, just add the above option.

5) Download the attached file ffmpeg-wrapper.sh and save it in $SERVIIO_HOME/bin/
Note: If you are on Synology NAS, download the file ffmpeg-wrapper for synology, rename ffmpeg-wrapper-synology.sh to ffmpeg-wrapper.sh, and copy/replace it with the file in $SERVIIO_HOME/bin/

6) Same as in the article linked above.

ffmpeg-wrapper.sh for Linux: https://sites.google.com/site/serviiolivefeeds/ffmpeg-wrapper.sh
ffmpeg-wrapper.sh for Synology: https://sites.google.com/site/serviiolivefeeds/ffmpeg-wrapper-synology.sh

Note: Most the code of ffmpeg-wrapper.sh is from the Serviio for Synology available from http://pcloadletter.co.uk. I have only made a few changes to enable support for Refresh.groovy.

refresh_on_demand_linux.1340679854.txt.gz · Last modified: 2012/06/26 03:04 by xs2inattar