Start search

How to use command line with AVS Audio Converter?

Introduction

AVS Audio Converter supports the command line mode, therefore allowing you to automate your audio processing.

Converting your audio files via the command line you get a number of important benefits, for example, you can:

  • process files in the automatic mode,
  • use your own presets for conversion,
  • effectively work with multiple files,
  • schedule your conversion tasks,
  • accelerate the conversion process.

These opportunities can be indispensable in case you regularly need to convert a lot of different files.

Even if you have never worked with Command Prompt before, you will easily cope with such a task following our instructions. Just use an XML file example that contains the conversion parameters, make a quick correction to it changing some values and then automatically convert any number of files according to this preset. You can use the same preset for new files conversion whenever you wish.

This guide considers the conversion process by the example of the AVS Audio Converter usage.

Step 1: Download and install AVS Audio Converter

Click here to download it. After the download is finished, run the AVSAudioConverter.exe file and follow the installation wizard instructions.

Please remember the path to the installation folder as it will be necessary later.

[Back to the Top]

Step 2: Add files for conversion

Put all the audio files you need to convert into a folder on your computer HDD. You can also add some video files you wish to extract audio from.

[Back to the Top]

Step 3: Create an XML file

For your convenience, some XML file examples are included into the AVS Audio Converter installation and can be found in the program installation folder (by default it is C:\Program Files\AVS4YOU\AVSAudioConverter\examples or C:\Program Files (x86)\AVS4YOU\AVSAudioConverter\examples for a 64-bit version of Windows).

Note!Note: the \AVSAudioConverter\examples folder also contains a number of .BAT files. For a quick demonstration of the command line conversion opportunities, you can launch any of them by double-clicking the file.

If you do not know how to create a new XML file, just copy the appropriate example, open it using any text editor, adjust some configuration parameters depending on your current task and save the changes.

Below you can see an example of the XML file content which includes all the necessary parameters for the entire conversion process.

<?xml version="1.0" encoding="utf-8"?>
<conversion profiles="MP3_Profile" name="Best Quality" CLSID="{209D61A7-17B3-49be-BAA1-D9DCEACA082B}">
     <inputFiles>
        <file>C:\Examples\Music\audiofile.wma</file>
        <file>C:\Examples\Music\Track1.wma</file>
     </inputFiles>
     <inputFolders>
        <folder>C:\Examples\Music\New</folder>
        <filter>*.m4a</filter>
        <includeSubfolders>false</includeSubfolders>
     </inputFolders>
     <outputFolder>%MYDOCUMENTS%\AVS4YOU\AVSAudioConverter</outputFolder>
     <merge>
        <makeMerge>false</makeMerge>
        <outputFileName>Untitled</outputFileName>
        <pauseMs>0</pauseMs>
     </merge>
     <audiobook>
        <createAudiobook>false</createAudiobook>
        <title>Title</title>
        <author>Author</author>
        <artist>Artist</artist>
        <coverFile>C:\Examples\Music\cover.jpg</coverFile>
        <split>
            <mode>0</mode>
            <chapters>0</chapters>
            <time>00:00:00</time>
            <pauseDetection>false</pauseDetection>
        </split>
     </audiobook>
     <multithreadConversion>true</multithreadConversion>
     <autostartConversion>true</autostartConversion>
     <minimizeForm>false</minimizeForm>
     <replaceFileAndDir>true</replaceFileAndDir>
     <priority>3</priority>
     <finalAction>2</finalAction>
     <openOutputFolder>true</openOutputFolder>
</conversion>
  • The <conversion profiles="MP3_Profile" name="Best Quality" CLSID="{209D61A7-17B3-49be-BAA1-D9DCEACA082B}"> tag allows to set the desired output format.

    Where profiles="MP3_Profile" is a name of the XML file with conversion profiles (without extension). The necessary XML file can be found in the AVS Audio Converter installation folder. For example, you can use such values as AAC_Profile, M4A_Profile, WAW_Profile etc.

    name="Best Quality" is a name of the necessary conversion profile that can be taken from the XML file with conversion profiles. It is an optional attribute.

    CLSID="{209D61A7-17B3-49be-BAA1-D9DCEACA082B}" is a CLSID of the necessary conversion profile (it should be taken from the XML file with conversion profiles).

  • The <inputFiles> and <inputFolders> tags allow to set your input files and/or folders location.

    E.g. you can list necessary files one by one using the <inputFiles> parameter or specify paths to folders using the <inputFolders> parameter and filter the folder contents by file extension.

    The *.m4a value specified for the <filter> tag in the example above allows to upload M4A files only. The *.* value allows to upload all the audio tracks stored in the folder. To use files of several specified formats only, set the values separating them with a semicolon: *.m4a;*.waw etc.

  • The <outputFolder> tag is used to set a path to the destination folder for output files. If the folder does not exist, it will be created automatically.
  • It's also possible to set parameters for file merge or audiobook creation.
  • The <autostartConversion> tag is used to specify if you want to start the conversion process immediately as the program launches. Set it to false if you just want to launch AVS Audio Converter with all the specified parameters without starting the conversion itself.
  • Finally, you can specify some general parameters like the conversion priority or the necessity to use the multithread conversion mode etc.

Please do not forget to replace the paths to input files/folders provided in our examples with your own ones. When specifying paths to files and folders using the <file>, <folder>, <outputFolder> and <coverFile> tags, you can use environment variables like %PROGRAMFILES%, %MYMUSIC% etc. In the example above we use the %MYDOCUMENTS% variable that specifies the "Documents" / "My Documents" directory of the current user.

For more details on the tags and environment variables used in the AVS Audio Converter XML files please refer to our Appendix section. You can also find all the necessary information in the CommandLineKeys.txt file located in the AVS Audio Converter installation folder.

[Back to the Top]

Step 4: Start the conversion from the command line

  1. Start the Command Prompt. For example, you can press the Win+R key combination, type cmd and press Enter.
  2. Use the cd command to go to the AVS Audio Converter installation directory that contains the application executable file. If you are using a 32-bit version of Windows, the command should look like this:
    cd C:\Program Files\AVS4YOU\AVSAudioConverter
    

    If you are using a 64-bit version of Windows, run the following command:

    cd C:\Program Files (x86)\AVS4YOU\AVSAudioConverter
    
    Note!Note: if you forgot where the installation folder is located, you can easily find it in the following way: right-click on the application desktop shortcut and select the Properties option. Copy the path specified in the Start in field and paste it using the Ctrl+V key combination or just right-clicking within the Command Prompt window.
  3. To run the AVS Audio Converter in the automatic mode, use the following command:
    AVSAudioConverter.exe -a "C:\AVSAudioConverter.xml"
    

    where:

    • AVSAudioConverter.exe is the converter executable file name.
    • -a is one of the possible commands to run the application in the automatic mode,
    • C:\AVSAudioConverter.xml is the full path to the XML file you've created. Please note that you need to replace the path to the XML file provided in the command example with your own one before executing the command. The file path must be enclosed in double quotes.

How to use command line with AVS Command Line Converters? Step 4

AVS Audio Converter starts with all the conversion parameters specified in the XML file, and the conversion process begins immediately (if the <autostartConversion> parameter is set to true).

How to use command line with AVS Command Line Converters? Step 4

Once the conversion is over, the AVS Audio Converter window closes automatically and the assigned output folder with the converted files opens (but you can specify another final actions in the configuration XML).

Note!Note: if you wish to just run the converter from the command line with some files loaded so that you can manually edit them or change some parameters before the conversion, you can either set the <autostartConversion> parameter to false or use the following command in the Command Prompt window:

"C:\Program Files\AVS4YOU\AVSAudioConverter\AVSAudioConverter.exe" "C:\Music\Track1.mp4" "C:\Music\Track2.mp4"

[Back to the Top]

Version: 9.1.1.597Size: 49.49 MBPlatforms: Windows 10, 8.1, 8, 7, XP, 2003, Vista
(no Mac OS/Linux support)
Download
AVS Audio Converter

Registration on AVS4YOU is like buying a single product listed on www.AVS4YOU.com and getting all other products from our site as a gift. That means you can install and use ALL OTHER software with the same serial number without additional fees and limitations.
Please note that AVS4YOU programs do not allow you to copy protected material. You may use this software in copying material in which you own the copyright or have obtained permission to copy from the copyright owner.

By using our services, you agree to our use of cookies.