Avconv

Description

Task to process bulk mp3|ogg|flac|wav conversions with avconv (see: libav.org).

Installation

Please install (linux debian):
$ apt-get install libav-tools

Avconv task parameters

Attribute Description Value Required
file The input file yes, if fileset or filelist are undefined
tofile The output file no, file.mp3 by default
todir The result directory no
extension The output extension mp3 by default no

Examples


<project name="avconv task"> 

  <taskdef name="avconv" 
     classname="net.sourceforge.ant4x.taskdefs.media.AvconvTask" 
     classpath="PATH/TO/ant4x.jar"/> 

  <target name="avconv"> 
    <avconv file="audio.ogg" />
    <avconv file="audio.mp3" tofile="audio.ogg"/>
  </target> 

                    </project>