Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
refresh_on_demand_linux [2012/06/25 23:22] xs2inattar |
refresh_on_demand_linux [2012/10/05 13:57] (current) ttguy link to ffmpeg-wrapperv2.zip where I have fixed a few things |
Below are only the steps that differ in linux. | 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. | 1) Install **curl (libcurl) with ssl enabled** 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. | 2) Same as in the article linked above. |
3) 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 <note important>-Dffmpeg.location=$SERVIIO_HOME/bin/ffmpeg-wrapper.sh</note> within the double-quotes after JAVA_OPTS=. | 4) In your linux console/ssh, logged in as root, go to $SERVIIO_HOME/bin/ directory. Look for the following files: serviio.sh and serviio-console.sh. In both files, search for **JAVA_OPTS=**. <note important>Add/Update <fc #0000FF>-Dffmpeg.location=$SERVIIO_HOME/bin/ffmpeg-wrapper.sh</fc> within the double-quotes after JAVA_OPTS=.</note> |
__**Note:**__ There are other options within double-quotes after JAVA_OPTS= as well. Do not change any other option, just add the above option. | __**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/ | 5) Download the attached file ffmpeg-wrapper.sh and save/overwrite it in $SERVIIO_HOME/bin/ Make it executable. Open it is a text editor and save it with linux line termination (or use dos2Unix). |
__**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. | 6) Same as in the article linked above. |
| |
ffmpeg-wrapper.sh for Linux: [[https://sites.google.com/site/serviiolivefeeds/ffmpeg-wrapper.sh]] | Restart Serviio and ENJOY!!! |
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 [[pcloadletter.co.uk]]. I have only made a few changes to enable support for Refresh.groovy. | ffmpeg-wrapper.sh for Linux/Synology: {{:ffmpeg-wrapper.zip}} |
| |
| Here is a modified version of this script in which a few things have been fixed {{:ffmpeg-wrapperv2.zip}}. |
| |
| __**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. |
| |
| __**Note:**__ It would appear that if the contentUrl that the plugin returns contains special characters like & then the ffmpeg-wrapper.sh does not work properly. The shell consumes the & characters. The solution is to have the plugin return a contentUrl inclosed by single quotes ('). The contentUrl is then passed to the ffmpeg-wrapper.sh inside the single quotes and the & are not destroyed. However, adding the single quotes around the contentUrl appears to break plugins when they are not using ffmpeg-wrapper.sh - ttguy |