User Tools

Site Tools


refresh_on_demand_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
refresh_on_demand_linux [2012/08/06 21:13]
xs2inattar
refresh_on_demand_linux [2012/10/02 14:31]
ttguy Note about needing to single quote contenUrls that contain &
Line 13: Line 13:
 3) Same as in the article linked above. 3) Same as in the article linked above.
  
-4) In your linux console/ssh, logged in as root, go to $SERVIIO_HOME/bin/ directory. Look for the following files: serviio.shserviio-console.sh, serviio-wrapper.sh. In each of the files, search for **JAVA_OPTS=**. <note important>Add <fc #0000FF>-Dffmpeg.location=$SERVIIO_HOME/bin/ffmpeg-wrapper.sh</fc> within the double-quotes after JAVA_OPTS=.</note>+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/overwrite 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).
  
 6) Same as in the article linked above. 6) Same as in the article linked above.
Line 25: Line 25:
  
 __**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:**__ 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
refresh_on_demand_linux.txt ยท Last modified: 2012/10/05 13:57 by ttguy