Skip to content

Instantly share code, notes, and snippets.

@man-of-eel
man-of-eel / adx2ogg.py
Created January 26, 2024 16:30
Tool to convert ADX music files to Ogg files with loop points with FFmpeg
#!/usr/bin/env python3
import argparse, sys, subprocess, pathlib
ffmpeg = "ffmpeg" # Change to ffmpeg path if you need to
parser = argparse.ArgumentParser(description='Convert ADX music to Ogg/Opus files with loop points')
parser.add_argument('input')
parser.add_argument('output', nargs='?')
parser.add_argument('-b', '--bitrate', dest='bitrate', default="64k", help="Set the bitrate (e.g. 64k)")