cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert wmv to mp4 using ffmpeg?

murman
Champ in-the-making
Champ in-the-making
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
1 REPLY 1

bertibruyn
Champ in-the-making
Champ in-the-making
Thank you for this sharing, really helpful. I used to convert video with Acethinker Video Converter, free and works perfect. It is a cloud based software to convert videos without install any software in your device. Share it here as an alternative method.