cancel
Showing results for 
Search instead for 
Did you mean: 

Can't start a Content Transformer /content options...

mir4ge
Champ in-the-making
Champ in-the-making
Hi, folks!
I'd like to create a simple rule on a space which converts a videoclip from its own original format to another,  and which places the
new created file into another space automatically (a space for each video format).
But, before of this, I have to create a new action, that performs the content transformation through FFmpeg.
I Know I can use the default RuntimeExecutableContentTransformer,
but I didn't understand why  Alfresco gives an error during the start-up:

[img]http://img136.imageshack.us/img136/4488/tomcatscreenshotvh3.png[/img]

My config and context files match the example shown @ http://wiki.alfresco.com/wiki/Content_Transformations#RuntimeExecutableContentTransformer
but the configurationChecker gives an error…
May it be due to the difference between the output of the checking command
 ffpeg -h
  (the output is not a file, but a list on the std out)
and a simple transformation command
ffmpeg -i "${source}" -s 320x240 -ar 44100 -r 12 "${target}"
(the output is a file) ???

I'm using Alfresco Community Tomcat 2.9.0B
I put the config. files in the <extensionRoot>, i.e.  shared/classes/alfresco/extension…

Shall I try by-passing the configurationChecker ??

Besides, I'd like to know if there's a way to pass the options to the ffmpeg command through a selection menu via the webclient…
i.e. Is there in the RuntimeExecutableContentTransformer a syntax like
"${source}" (which refers to the input file selected from the webclient UI)
even for the options of a command (such as sample-rate, resolution…etc)???

Thanks,
            Mir4ge
2 REPLIES 2

mikef
Champ in-the-making
Champ in-the-making
I use the following checkCommand for ffmpeg. 



      <property name="checkCommand">
         <bean class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandMap">
                <map>
                    <entry key=".*">
                        <value>ffmpeg -h</value>
                    </entry>
                </map>
            </property>
         </bean>
      </property>

In my case ffmpeg is installed in my Alfresco bin directory. If you get an error its probably because ffmpeg is not on your path.

mir4ge
Champ in-the-making
Champ in-the-making
This is a strange thing…  I thought that the dos shell wasn't case sensitive…
I had it on the path, but it was written "c:\ffmpeg"  … I changed the "c" to upper case…
Now I don't have errors during the start up. So.. Thank you very much!
Unfotunately, I got this error while trying to perform a content transformation…
[img]http://img144.imageshack.us/img144/7379/errortu2.png[/img]
Any Hints???