rejetto forum

Is there "Run ... after receiving file" option? it would be useful.

Meong · 2 · 1254

0 Members and 1 Guest are viewing this topic.

Offline Meong

  • Occasional poster
  • *
    • Posts: 1
    • View Profile
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?


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13309
    • View Profile
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.}