Skip to content
프로젝트

소개

A small tool to convert Sony PS2 VAG files to a WAV PCM 16-bit encoding file and vice versa.

디자인 및 미디어

이 수치를 측정하는 방법

What you can do

  • Encode mono or stereo 16-bit PCM WAV files into PS2 VAG Format.
  • Decode mono or stereo PS2 VAG files back into WAV format.
  • Full compatibility with mono AIFF files for encoding and decoding.
  • Automatic detection of loop points using "smpl" (WAV) and "MARK" (AIFF) chunks.

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
+1

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

License Issues GitHub Release

PlayStation 2 VAG Tool is a versatile utility designed to seamlessly encode 16-bit PCM WAV files into the PS2 VAG Format, and also perform the reverse operation, converting PS2 VAG files back to WAV format. The tool extends its compatibility to AIFF files as well. Mono and stereo audio files are supported. In addition, the tool intelligently extracts loop information, detecting "smpl" chunks within WAV files and "MARK" chunks within AIFF files.

Features

  • Encode mono or stereo 16-bit PCM WAV files into PS2 VAG Format.
  • Decode mono or stereo PS2 VAG files back into WAV format.
  • Full compatibility with mono AIFF files for encoding and decoding.
  • Automatic detection of loop points using "smpl" (WAV) and "MARK" (AIFF) chunks.
  • Validation of complete PCM sample frames and supported in-memory input sizes.

Download

To get started, you can download the latest version of the tool from the link below:

GitHub All Releases

Usage

Encoding

To encode a mono or stereo 16-bit PCM WAV/AIFF file to PS2 VAG, use:

AIFF2VAG.exe <InputFile>

Encoding Options:

  • -1 : Force non-looping encoding, ignoring embedded loop metadata.
  • -L : Force looping encoding from the first VAG block through the last when no embedded loop is present.
  • -i <bytes>, --interleave <bytes> : Stereo interleave size. Defaults to 16 bytes; accepts decimal or hexadecimal values such as 128 or 0x80.
  • -o <file>, --output <file> : Write to a specific output path. By default, the input extension is replaced with .vag.
  • -v, --verbose : Print detected audio format, sample count and loop information.

Without -1 or -L, loop points are detected automatically from smpl chunks in WAV files and MARK/INST chunks in AIFF files. The -1 and -L options cannot be used together.

AIFF2VAG.exe "input.wav"
AIFF2VAG.exe "stereo.wav" -i 0x80

Decoding

To decode a mono or stereo PS2 VAG file to WAV, use:

AIFF2VAG.exe Decode <InputFile> <OutputFile>
AIFF2VAG.exe Decode "input.vag" "output.wav"
AIFF2VAG.exe Decode "stereo.vag" "stereo.wav" -i 0x80
AIFF2VAG.exe Decode "stereo.vag" "stereo.wav" -i 0x80 --samples 5540963

The decoder must be given the same stereo interleave used by the encoder because the VAG header does not store this value. Use --samples <frames> when the exact source PCM length is known to remove the final 28-sample ADPCM block padding.

Exit codes

  • 0: conversion completed successfully.
  • 1: an input, output, format, or conversion error occurred.
  • 2: command-line usage or option error.

관련 프로젝트 살펴보기

불러오는 중…