Ceci est une ancienne révision du document !
Table des matières
vgm2flac
Description
vgm2flac est un utilitaire bash écrit par votre serviteur, il permet (entre autre) de simplifier la conversion en flac de nombreux formats vgm.
Il normalise le pic son à -1db, détecte les faux fichiers stéréo, et retire si besoin les parties sans son.
Formats supportés
- 3DO : aif
- Amiga: aam, core, cust, dw, gmc, mdat, mod, sa, sb
- Amstrad CPC: ym
- Atari ST: snd, sndh, ym
- Philips CD-i: xa
- Commodore C64/128: sid
- Fujitsu FM-7, FM Towns: s98
- Microsoft Xbox: aix, mus, sfd, xwav
- Microsoft Xbox 360: bik, wem, xwb
- Nintendo 3DS: bcstm, wem, bcwav, fsb, mus, txtp
- Nintendo DS: 2sf, adx, mini2sf, sad
- Nintendo GB & GBC: gbs
- Nintendo GBA: gsf, minigsf
- Nintendo GameCube: adx, cfn, dsp, hps, adp, thp, mus
- Nintendo N64: usf, miniusf
- Nintendo NES: nsf
- Nintendo SNES: spc
- Nintendo Switch: bfstm, bfwav, bwav, ktss, lopus, wem
- Nintendo Wii: ads, adx, brstm, mus
- Sega Mark III/Master System: vgm, vgz
- Sega Mega Drive/Genesis: vgm, vgz
- Sega Saturn: minissf, ssf
- Sega Dreamcast: dsf, spsd
- NEC PC-6001, PC-6601, PC-8801,PC-9801, Sharp X1, Fujitsu FM-7 & FM TownsSharp X1: s98
- Sony Playstation: psf, minipsf, xa, vag
- Sony Playstation 2: ads, adpcm, adx, genh, psf2, int, mib, minipsf2, ss2, vag, vpk, sng, vgs
- Sony Playstation 3: aa3, adx, at3, genh, laac, msf, mtaf, sgd, ss2, vag, xvag, txtp, wem
- Sony Playstation 4: wem
- Sony PSP: at3
- Panasonic 3DO: aifc, str
- PC: bik, bnk, hsq, fsb, his, imc, logg, mid, mod, sdb, smk, sqx, txtp
- Various machines: vgm, vgz, adx, rak, tak, eam, at3, raw, wem, pcm
- Various machines CD-DA: bin, bin/cue, iso/cue
- ZX Spectrum: asc, psc, pt2, pt3, sqt, stc, stp
Installation
vgm2flac
curl https://raw.githubusercontent.com/Jocker666z/vgm2flac/main/vgm2flac.sh > /home/$USER/.local/bin/vgm2flac && chmod +rx /home/$USER/.local/bin/vgm2flac
Dépendances
Dépôt
apt install ffmpeg ffprobe sox bc bchunk xxd adplay fluidsynth
sc68 & info68
Build dependencies: `git build-essential autoconf libtool libtool-bin automake pkg-config libao-dev zlib1g-dev`
cd git clone https://github.com/Jocker666z/sc68 && cd sc68 tools/svn-bootstrap.sh && ./configure LDFLAGS="-static" make -j"$(nproc)" su -c "make install" -m "root"
vgm2wav
Build dependencies: `git build-essential cmake zlib1g-dev libao-dev libdbus-1-dev`
git clone https://github.com/ValleyBell/libvgm && cd libvgm mkdir build && cd build && cmake .. make -j"$(nproc)" su -c "make install" -m "root"
vgmstream_cli
Build dependencies: `git build-essential cmake audacious-dev libao-dev libvorbis-dev libmpg123-dev`
git clone https://github.com/losnoco/vgmstream && cd vgmstream mkdir build && cd build && cmake .. make -j"$(nproc)" su -c "make install" -m "root"
uade
Build dependencies: `git build-essential udacious-dev libao-dev libvorbis-dev libmpg123-dev`
cd git clone https://gitlab.com/heikkiorsila/bencodetools && cd bencodetools ./configure make -j"$(nproc)" su -c "make install" -m "root" cd git clone https://gitlab.com/uade-music-player/uade && cd uade ./configure make -j"$(nproc)" su -c "make install" -m "root"
zxtune123
cd /home/$USER/.local/bin/ wget https://github.com/Jocker666z/vgm2flac-dep/raw/main/zxtune123_r4980.tar.bz2 tar -xf zxtune123_r4980.tar.bz2 && rm zxtune123_r4980.tar.bz2
Utilisation
Lancer simplement le script dans le répertoire contenant les vgm.