rejetto forum
Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: Meong on July 05, 2012, 05:33:21 AM
-
Example I am trying to make a downloadable media sharing server using hfs but I want to block certain types of formats and auto convert to a lower bitrate for music and videos. Example : run ffmpeg «args». Is there a way?
-
yes, but you need HFS 2.3
use event [upload completed]
http://www.rejetto.com/wiki/index.php?title=HFS:_Event_scripts
HFS 2.3 has its own scripting language, but you don't need to learn it, you can just call an external program of your own using the {.exec.} command, and passing at command-line all the information you need, like %item-resource%.
Well, you may need some HFS scripting if you want the output to be used to make something inside HFS, like {.add to log|conversion succeeded.}