| 1 |
// $Id: README.txt,v 1.1 2008/12/09 14:59:51 anantagati Exp $
|
| 2 |
|
| 3 |
Media Mover Custom Command
|
| 4 |
**************************
|
| 5 |
|
| 6 |
Allow user to define custom commands for process, storage and complete actions.
|
| 7 |
Module uses tokens to provide easy access to file values.
|
| 8 |
|
| 9 |
Dependencies
|
| 10 |
============
|
| 11 |
- media_mover_api
|
| 12 |
- mm_token
|
| 13 |
|
| 14 |
Install
|
| 15 |
=======
|
| 16 |
|
| 17 |
1) Copy the mm_custom_command folder to the modules folder in your installation.
|
| 18 |
|
| 19 |
2) Enable the module using Administer -> Modules (/admin/build/modules).
|
| 20 |
|
| 21 |
3) Go to Media Mover configuration where you want to use custom command and
|
| 22 |
choose "Custom Command: Use custom command".
|
| 23 |
|
| 24 |
4) Set 'Output file' and 'Command'.
|
| 25 |
|
| 26 |
Examples
|
| 27 |
========
|
| 28 |
|
| 29 |
Encode files with Sorenson Squeeze 5 on Windows machine running Drupal
|
| 30 |
----------------------------------------------------------------------
|
| 31 |
- Create your Media Mover configuration
|
| 32 |
- For process action choose "Custom Command: Use custom command"
|
| 33 |
- Set 'Output file' for example 'video-[nid].flv'
|
| 34 |
- Set command. Because I didn't find parameter for Squeeze to set output file I
|
| 35 |
will use batch file 'compress-video.bat' which will after encoding rename
|
| 36 |
output file. So command will look like this:
|
| 37 |
'd:\compress-video.bat [harvest_file] [output_file]'
|
| 38 |
|
| 39 |
Rename/move file
|
| 40 |
----------------
|
| 41 |
- Create your Media Mover configuration
|
| 42 |
- For storage action choose "Custom Command: Use custom command"
|
| 43 |
- Set 'Output file' for example 'video-[nid].flv'
|
| 44 |
- Set 'Command' to 'co [process_file] [output_file]'
|
| 45 |
|
| 46 |
....
|
| 47 |
|
| 48 |
Todo:
|
| 49 |
=====
|
| 50 |
- make validation of config values
|
| 51 |
- create permissions to set if user can use Custom Command or not
|
| 52 |
- make documentation
|