Last modified: 2012-07-30 17:54:15 UTC
TMH is going to transcoder video using a job which use MediaWiki temporary directory as a working directory. The job is WebVideoTranscode, definition of path is done by getTargetEncodePath(). It eventually call TempFSFile::factory() to get a temporary file. This part of the code need to be adapted so we could set the working directory. For example, to use a dedicated disk partition.
I am guessing you want to support hard coded path override ? Or a more correct way I suppose would be to extend the TempFSFile Class with namespaced paths per application domains ? But it seems that it would be simpler if these transcode boxes are only going to be transcoding, then why not just change the temporary path configuration for those instances?
The functions I have described above ultimately call wfTempDir(). With https://gerrit.wikimedia.org/r/8996 for bug 24985, wfTempDir() now uses $wgTmpDirectory when available. So we can take tweak our CommonSettings.php file to change the temp path :-]