Skip to content

OSA413/FFmpeg-based-ADX-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FFmpeg-based ADX converter

Simple ADX converter that uses FFmpeg


How to use

ADX to WAV/FLAC

  1. Place ADX files you want to convert into the SOUND directory.
  2. Run adx_to_wav.bat or adx_to_flac.bat.
  3. Converted files will appear in the SOUND_raw directory keeping original file hierarchy.

WAV/FLAC/MP3 to ADX

  1. Place the files you want to convert into the SOUND_raw directory.
  2. Run convert_to_adx.bat.
  3. Converted files will appear in the SOUND directory keeping original file hierarchy.

You can also use the converter via your terminal. Run one of the scripts and files in ./SOUND(_raw) will be converted!

Technical information

FFmpeg compiled with the parameters in the build file from the repository supports:

Way Formats
Encoding ADX (ADXv3 without loop samples), WAV (s16le), and FLAC
Decoding WAV, MP3, FLAC, and ADX

You can freely replace the bundled FFmpeg with your own or the one from the official site (version 4.3 or newer).

How to compile

  1. You need a Linux or Windows Subsystem for Linux.
  2. Prepare your environment: https://trac.ffmpeg.org/wiki/CompilationGuide/CrossCompilingForWindows (listed in "Linux Packages")
  3. Clone the repository and run git submodule init && git submodule update.
  4. In case Bash says something related to the carriage return symbol (\r) after cloning the repo on Windows/WSL, run python3 fix_sh_newline.py.
  5. Run bash build/build_pack_win.sh. If you get yasm/nasm not found or too old, install yasm or nasm.
  6. dist directory should appear with a 7z file with the program after compilation.

License

Conversion scripts in this repository are licensed under the MIT license.

FFmpeg compiled with the parameters in the build file from the repository is licensed under the LGPLv2.1+. For more information: https://ffmpeg.org/legal.html