cancel
Showing results for 
Search instead for 
Did you mean: 

Rule to transform and copy on respective folder

samnaction
Champ in-the-making
Champ in-the-making
I am coverting wmv to flv using Media Viewer addon. The conversion was successful. How to convert old files and save it in the same folders. I have 25 subfolders in Shared folder. How to apply a single rule which will transform whenever I upload a wmv file in the respective folder.

The current Create Rule will allow you to select a destination folder to which the file has to transformed and copied but the destination folder cannot be same for all folders and I need the file to be in respective folder
3 REPLIES 3

jpotts
World-Class Innovator
World-Class Innovator
Instead of using the out-of-the-box transformation action, tell the rule to execute server-side JavaScript instead. The server-side JavaScript will be a file you write and place in Data Dictionary/Scripts. Using server-side JavaScript code you can set up the transformation action to use whatever destination folder you want. Your JavaScript logic can determine the destination folder based on your needs.

Jeff

samnaction
Champ in-the-making
Champ in-the-making
The quality when wmv is converted to flv is very low. Most of my video files contains text and the text are not clearly visible. Is there any way to set the bit rate like -ar 22050 -b 2048k in ffmpeg conversion

jpotts
World-Class Innovator
World-Class Innovator
You should check the docs on the Media Viewers add-on and if you don't find anything there that answers your question, create an issue for the Media Viewers team:

http://share-extras.github.io/addons/media-viewers/

Jeff