AnsweredAssumed Answered

How to convert wmv to mp4 using ffmpeg?

Question asked by murman on Mar 9, 2010
Latest reply on May 31, 2017 by bertibruyn
Hi,

I am using alfresco 3.2, in that i am using flexspace, in flexspace only mp4 and flv files are playing so i want to convert wmv file mp4 format. How can i achive this? I tried to configure in content-service-context.xml i added this code:

<bean id="transformer.ffmpegVideo"
        class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker"
        parent="baseContentTransformer"
      abstract="true"
        init-method="register">
      
      <property name="transformCommand">
               <bean id="commandListRootDir" class="org.alfresco.util.exec.RuntimeExec">
                  <property name="commandsAndArguments">
                      <map>
                          <entry key="Windows.*">
                              <list>
                                  <value>ffmpeg</value>
                                  <value>-i '${source}'</value>
                                  <value>-vcodec flv</value>
                                  <value>-ar 44100</value>
                                  <value>-ab 32</value>
                                  <value>-b 800k</value>
                                  <value>'${target}'</value>
                              </list>
                          </entry>
                      </map>
                  </property>
                  <property name="errorCodes">
                     <value>2</value>
                  </property>
               </bean>
            </property>
            <property name="explicitTransformations">
               <list>
                  <bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails" >
                      <property name="sourceMimetype"><value>video/x-ms-wmv</value></property>
                      <property name="targetMimetype"><value>video/x-flv</value></property>
                  </bean>
               </list>
            </property>
   </bean>

but nothing is working, can you pls help me how to configure or i have to write any action class .

Or any other method is there to achive this video conversion.

Pls help needed.

Thanks
Murugan

Outcomes