Skip to content

nsumrak/lame-batch

Repository files navigation

Multicore batch encoding

This project is used to batch convert WAV files to MP3 using LAME library maximizing CPU utilization with multi-threading. It is designed to be compiled for Windows/Win32 target using Microsoft Visual Studio or Linux with standard GCC dev toolkit.

Building on Windows

Open lametest.sln solution with Visual Studio and press F5. For VS 2015 Community you might encounter error in pthread.h. Just uncomment line in beginning of main.cpp:

#define HAVE_STRUCT_TIMESPEC

Building on Linux

To build:

$> make

To clean:

$> make clean

To run:

$> ./lametest <path>

Where path is file or directory to process.

Example:

./lametest testcase

This will encode provided test case WAV's into MP3

Options

Recurse subdirectories for the given path:

const bool gc_recursive = false;

To enable this option, change gc_recursive constant in main.cpp to true.

MP3 Quality

By default, VBR with standard quality is used for encoding. You can adjust settings by changing open() method of LameEnc class withing lame_enc.h file.

Notes:

  • Project is designed for little endian systems (eg. Intel).

  • Only 8, 16, 24, 32-bit signed PCM WAV files are supported.

  • Tested on Ubuntu Linux, but should work on any other Linux system with make and gcc.

  • Tested on Windows using Visual Studio 2013 Express for Desktop and Visual Studio 2015 Community. If you encounter error in pthread.h, just uncomment line in main.cpp:

      #define HAVE_STRUCT_TIMESPEC
    

Additional Open Source code included

This project uses following open source code:

About

Batch convert WAV files to MP3 using LAME library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published