XBMC will be renamed to Kodi for v14. Read here for more details

Archive:HOW-TO:Play game audio direct from source (DVD/HDD)

From Kodi
Revision as of 21:18, 12 November 2006 by EkszBox (Talk)

Jump to: navigation, search

Contents

1 Information

This page is mainly for information about Xbox game music formats but anything can be added in the general codec/nfo area :)

pap: PAplayer, XBMC's multicodec musicplayer. Has features like Replaygain, Gapless decoding & APEv2 tag support. More info here

Currently supports the following decoders:

MP3, MP2, OGG, MPC, AAC, ALAC, APE, FLAC, WavPack?, SHN, WAV, DTS-WAV, AC3-WAV, IT, S3M, XM, MOD, NSF, SPC, GYM, SID, ADPLUG, ADX/AST/ADP/DSP/YMF/HPS, CDDA, DTS-CDDA, AC3-CDDA


By scouting around, we've come to learn the following about Xbox game audio:


Most games use these audio formats: ADX, PCM, WMA, XBADPCM. Many other consoles use a similiar TYPE of ADPCM format, however the code encode/decode algorithms are not identical.


CONTAINER FORMATS

 Name (Format/s Contained) [Developer/s]

01. ARC (Multi) [EA]
02. AFS (Multi) [?]
03. BIN (Multi) [EA]
04. BIG (Multi) [Codemasters, EA]
05. GZP (?) [?]
06. MAP (Multi) [Bungie]
07. MSX (XBADPCM) [Midway]
08. PIZ (Multi) [?]
09. RCF (Multi) [Radcore]
10. REZ (Multi) [?]
11. RFA (Multi) [Digital Illusions]
12. RWS (XBADPCM,PCM) [?]
13. SR (Multi) [?]
14. SXB/VXB (XBADPCM, PCM) [RazorWorks]
15. VIV (Multi) [EA]
16. WAD (Multi) [Multi]
17. XBP (PCM, XBADPCM) [?]
18. XWB (PCM, WMA, XBADPCM) [Microsoft]
19. XWC (XBADPCM) [Starbreeze Studios]
20. ZWB (PCM, WMA, XBADPCM) [?]


AUDIO FORMATS

 Name (Info)

01. ADX
02. AIX (Multiple Adx Streams)
03. OGG
04. PCM
05. STX (Non-standard XBADPCM)
06. WMA
07. XBOX ADPCM (aka XBADPCM / XADPCM)


IMAGE/VIDEO FORMATS

 Name (Info)

01. D3DS
02. DDS (Image - Direct Draw Surface)
03. BIK (Video - Radcore)
04. BMP (Image)
05. LWO (3D Model - Lightwave Object)
06. M1V (Video)
07. MOV (Video)
08. P3D (3D Model)
09. PNG (Image)
10. SFD (Video)
11. WMV (Video)
12. X (3D Model - Direct X Model)
13. XMV (Video)


MISC/UNKNOWN FORMATS

01. ADG
02. AWD
03. BGV
04. FSB
05. HWD
06. PSS
07. PVR
08. XSB (Xwb Filename Container)


1.1 Known Developer Formats

Most games use the XWB ( Xact/Xbox Wave Bank ) format, which can contain: PCM, WMA, XBADPCM.

XSB is a filename container for the XWB format.

Alot of Microsoft Game Studios games use WMA ( what else :P ).

Sega games use: ADX &/or AFS ( archive format which most of the time contains ADX files ).

SFD is CRI MiddleWares video Codec.

1.2 Xbox ADPCM Header Spec

4 bytes 'RIFF'
4 bytes Size of File +40
8 bytes 'Wavefmt '
4 bytes Size of Wavefmt Block (Always = 0x20)
2 bytes Wav Codec ID (Always = 0x69)
2 bytes No of Channels (Max = 2)
4 bytes Samplerate (Min = 8000hz, Max = 48000hz)
4 bytes Byterate ( (Samplerate * Block Alignment) >> 6 )
2 bytes Block Alignment (No of Channels * 36)
2 bytes Bits Per Sample (Always = 4)
2 bytes ? (Always = 0x02)
2 bytes ? (Always = 0x64)
4 bytes 'data'
4 bytes Size of Data Block (Size of File)

2 Links

2.1 Extracting/Injecting Utilities

EkszBox-ABX v1.3 Good compatibility, 19 xbox formats supported.
Game Extractor Have not got it functioning yet but its supposed to extract many different game content.
xSEX Supposed to support xsb & xwb extraction.
xSEX Source Code
XWB/ZWB files unpacker 0.3 Best one i found so far that extracts XWB/XSB with sourcecode.
XWB2WAV XWB to WAV Converter.
XWB Extractor v1.0 Works better than v1.1.

2.2 Misc/Info

CRI MiddleWare These guys developed the ADX encoding
XBOX XWB Information
HCS GAMECUBE audio that we currently support including ADX :)
X-S Forum topic about extracting XWB
CubeMediaPlayer
BINK VIDEO TOOLS
Downsampling xbox content?

2.3 Xbox ADPCM (General)

xbadpdec.zip
Luigi Auriemma Research
XB_adpcm_codec.rar
usual place:
/PC/drivers-codecs/xb_adpcm/
XBOX/GC/PS2/Dreamcast ADX (WINAMP)
HCS Winamp Plugin
foobar2000 – Winamp plugin wrapper to use with above (only works on older foobar 5.3ish)
foobar2000 wrapper plugin that can be used with above codecs

3 Game Codecs List

GAME DEVELOPER LOCATION MUSIC TYPE TRACKS COUNT & SIZE TESTER / COMMENT LOCATION VIDEO TYPE VIDEO COUNT & SIZE TESTER / COMMENTS
007: Agent Under Fire EA  %ROOT/driving.dat/music.viv & %ROOT/Assets/sound/music/*/*.xsf  ? VIV? XSF VIV# @ 71.2MB  ?  %ROOT/Assets/sound/video*.mpc  ? MPC MPC# @ 443MB  ?
Sega GT SEGA  %ROOT/ADX/*.adx ADX  ?

TeknoJuce: Play straight from source!

 %ROOT/movie/*.sfd  ? SFD #51 @ 1.04GB  ?
Jetset Radio Future SEGA  %ROOT/media/ADX or Z_ADX/*/*.adx ADX  ?

TeknoJuce: Play straight from source!

 %ROOT  ? # @ MB  ?
Aeon Flux  ?  %ROOT/XBXMUSND.pod POD POD# @ 137MB

TeknoJuce: Unknown Archive

 %ROOT/video/*.xmv XMV #30 @ 831MB  ?
Broken Sword – TSD  ?  %ROOT/*.pak  ? PAK # @ MB

TeknoJuce: Unknown Archive

 %ROOT/DATA/MOVIES/*/*.bik BINK # @ MB  ?
Amped Microsoft  %ROOT/Music/*.wma WMA #227 @ 706MB

TeknoJuce: Play straight from source!

 %ROOT/Movie/*.bik BINK #71 @ 594MB  ?
Amped 2 Microsoft  %ROOT/Audio/Music/TYPE/*.wma WMA #315 @ 1075.6MB

TeknoJuce: Play straight from source!

 %ROOT/Movies/*.xmv XMV #46 @ 1.15GB  ?
Forza Motorsport Microsoft  %ROOT/media/Audio/SoundTracks/ForzaTunes1/*.wma WMA #18 @ 36.9MB

TeknoJuce: Play straight from source!

 %ROOT/ALLOVER/*.bik BINK  ?  ?

MotoGP 3

Microsoft  %ROOT/xboxdata/music/*.wma WMA #104 @ 160MB

TeknoJuce: Play straight from source!

 %ROOT/xboxdata/videos*.vid  ? VID # @ MB  ?
Jade Empire Microsoft  %ROOT/sound/musicbank.xwb > *.wma & *.wav WMA & ADPCM XWB#85 @ 145MB

TeknoJuce: Need to add extract support :(

 %ROOT/movies/*.bik BINK #218 @ 2.95GB  ?
Mech Assault Microsoft  %ROOT/Audio/MusicABC.D1Bank ADPCM #3 @ 1.18GB

TeknoJuce: Need to add extract support :(

 %ROOT/Movie/*/*.bik BINK # @ MB  ?
Mech Assault 2 Microsoft Audio/Music.DVDxwb ADPCM #99 @ 310MB

TeknoJuce: Need to add extract support :(

 %ROOT/Movie/*/*.bik BINK # @ MB  ?
Burnout 3 EA  %ROOT/tracks/_EATrax0.xwb & _EATrax1.xwb > *.wma WMA #XWB @ 165MB

TeknoJuce: Need to add extract support :(

 %ROOT/ovid*.xmv XMV #71 @ 477MB  ?
Burnout Revenge EA  %ROOT/tracks/_EATrax0.xwb & _EATrax1.xwb > *.wma WMA #XWB @ 183MB

TeknoJuce: Need to add extract support :(

 %ROOT/ovid*.xmv XMV #75 @ 601MB  ?
Need for Speed MW EA  %ROOT/NFS*.bin  ? BIN # @ MB Extraction?  %ROOT/*.  ? # @ MB  ?
Need for Speed Underground 2 EA  %ROOT/NFSUNDER*.bin  ? BIN # @ MB Extraction?  %ROOT/*.  ? # @ MB  ?
NHL06 EA  %ROOT/audio/streams/*.viv  ? VIV VIV# @ 382MB Extraction?  %ROOT/movies/ntsc/*.vp6  ? VP6 #6 @ 71.8MB  ?
Call of Duty EA  ?  ?  ?  ?  %ROOT/SHELL/MOVIES/*.bik BINK #23 @ 657MB  ?
Future Tactics Uprising  ?  %ROOT/media/music.xwb  ? XWB# @ 76.5MB

TeknoJuce: Need to add extract support :(

 %ROOT/*.  ? # @ MB  ?
Ghost Recon 2  ?  %ROOT/sound/music.xwb  ? XWB# @ 60.3MB

TeknoJuce: Need to add extract support :(

 %ROOT/video*.xmv XMV #95 @ 1.20GB  ?
Grabbed by the Goulies Rare  %ROOT/xwavebank/*.*  ? XWB XWB#12 @ 1.17GB

TeknoJuce: No file extentions ?

 %ROOT/movie/*.*  ? #307 @ 152MB

TeknoJuce: No file extentions ?

Lego Star Wars Lucas Arts  %ROOT/xbox/Audio/_Music*.wavx wavx #59 @ 250MB NLA: Headerless Xbox ADPCM; can be fixed with "xbadpdec" until XBMC support.  %ROOT/*.  ? # @ MB  ?
Leisure Suit Larry MCL Sierra  %ROOT/Audio/CRI/Bg/SetAll/*.adx & %ROOT/Audio/CRI/*/*.acx*.adx*.afs ACX ADX AFS #235 @ 752MB

TeknoJuce: Play straight from source! (ADX)

 %ROOT/Data/Cinema/FMV/*/*.sfd SFD? # @ MB  ?
Mercenaries  ?  %ROOT/DATAxbox/SOUND/music/*/*.xwb ADPCM #XWB @ 451.51MB

TeknoJuce: Need to add extract support :(

 %ROOT/DATAxbox/MOVIES/*.xmv XMV # @ MB  ?
Metalslug 3  ?  %ROOT/ms3bgm.afs AFS AFS# @ 131MB

TeknoJuce: AFS is an ADX archive need extraction

 %ROOT/*.  ? # @ MB  ?
Metalslug 4  ?  %ROOT/sound/MS4_BGM.xwb  ? XWB# @ 195MB

TeknoJuce: Need to add extract support :(

 %ROOT/*.  ? # @ MB  ?
Metalslug 5X  ?  %ROOT/sound/*.xwb ADPCM XWB#16 @ 290MB

TeknoJuce: Need to add extract support :(

 %ROOT/video*.bik BINK # @ MB  ?
Midnight Club 3  ?  %ROOT/audio/XStreams/mx.xwb WMA & ADPCM #110 @ 276MB  ?  %ROOT/*.  ? # @ MB  ?
MK Shaolin Monks Midway  %ROOT/*.WAD  ? WAD Archive # @ MB Extraction?  %ROOT/front/movies/*.sfd SFD? #8 @ 1.20GB  ?
Monopoly Party  ?  %ROOT/Music*.dat  ? DAT DAT @ 163MB Extraction?  %ROOT/Movies*.xmv XMV #6 @ 86.1MB  ?
Munch's Oddysee Oddworld Inahabitants  %ROOT/oddio/*.wav WAV #112 @ 27.7MB

TeknoJuce: Can play the audio voice overs, Music might be in the ROFs?

 %ROOT/movies/*.bik BINK #22+ @ 2.76GB+  ?
Ninja Gaiden  ?  %ROOT/bgm.afs AFS AFS# @ 388MB

TeknoJuce: AFS is an archive of ADX's needs extraction method

 %ROOT/Movie/*.sfd  ? SFD #20 @ 2.59GB  ?
Prince of Persia WW  ?  %ROOT/SOUND/*.big BIG BIG# @ 0.99GB

TeknoJuce: Big is another archive format needs extraction

 %ROOT/VIDEO/*/*.bik BINK # @ MB  ?
Psi Ops  ?  %ROOT/data/global/sound/*.msx  ? MSX MSX# @ 218MB

TeknoJuce: MSX archive?

 %ROOT/data/movies/*.sfd  ? SFD #70 @ 2.03GB  ?
Psychonauts  ?  %ROOT/workresource/Sounds/XACT Wavebanks/*.xwb ADPCM #104 @ 1.68GB

TeknoJuce: Need to add extract support :(

 %ROOT/workresource/cutscenes/prerendered/*.bik BINK #171 @ 1.59GB  ?
Pure Pinball  ?  %ROOT/Data/Music/*.wma WMA #43 @ 51.1MB

TeknoJuce: Play straight from source!

 %ROOT/*.  ? # @ MB  ?
Scaler  ?  %ROOT/STREAM/*/*.sst*.xb  ?sst ?xb # @ MB

TeknoJuce: Unknown format

 %ROOT/Movies/*.bik BINK #12 @ 165MB  ?
Stranger's Wrath  ?  %ROOT/data/audio/xwb/*.xwb ADPCM #114 @ 623MB

TeknoJuce: Need to add extract support :(

 %ROOT/data/movies/*.bik BINK #15 @ 867MB  ?
Sudeki  ?  %ROOT/sound*.xwb  ? #304 @ 618MB

TeknoJuce: Need to add extract support :(

 %ROOT/Movies/*.bik BINK #14 @ 1.56GB  ?
The Guy Game  ?  %ROOT/media/sounds/Musicbank1.xwb  ? XWB-7# @ 304MB

TeknoJuce: Need to add extract support :(

 %ROOT/Final/Video/*/*.top Encrypted Divx # @ MB

TeknoJuce: During load says DIVX ?

The Matrix PON  ?  %ROOT/sound/*.wad  ? WAD #14+ @ 792MB+  ?  %ROOT/Movies*.sfd  ? SFD #43 @ 847MB  ?
The Punisher  ?  %ROOT/data/audio/Music1.xwb & Music2.xwb  ? XWB# @ 369MB  ?  %ROOT/data/movies/*.bik BINK #24+ @ 492MB+  ?
Tony Hawk's Pro Skater 2X  ?  %ROOT/songs/*.wma WMA #68 @ 85.4MB

TeknoJuce: Play straight from source!

 %ROOT/movies/*.bik BINK #59 @ 588MB  ?
Ultra Bust A Move  ?  %ROOT/bgm/*.dls*.sgt  ? DLS? SGT #14 @ 5.26MB

TeknoJuce: Unknown Format

 %ROOT/*.  ? # @ MB  ?
Unreal Championship 2 Digital Extreams  %ROOT/Sounds/*.xwb  ? #263 @ 364MB

TeknoJuce: Need to add extract support :(

 %ROOT/Movies/*.xmv XMV #23 @ 840MB  ?
Vexx  ?  %ROOT/data/sound/*.tre  ? TREE #11 @ 367MB

TeknoJuce: Another archive unknown

 %ROOT/data/videos/*.xmv XMV #3 @ 238MB  ?
World Series of Poker  ?  %ROOT/Audio/streams/music.sfx  ? SFX SFX# @ 20.2MB

TeknoJuce: Another archive unknown

 %ROOT/Movies/*.xmv XMV #7 @ 49.3MB  ?
 ?  ?  %ROOT/*.  ? # @ MB  ?  %ROOT/*.  ? # @ MB  ?

3.1 Sample Example (Do not change)

GAME DEVELOPER LOCATION MUSIC TYPE TRACKS COUNT & SIZE TESTER / COMMENT LOCATION VIDEO TYPE VIDEO COUNT & SIZE TESTER / COMMENTS
 ?  ?  %ROOT/*.  ? # @ MB  ?  %ROOT/*.  ? # @ MB  ?
Personal tools
Namespaces

Variants
Actions
Navigation
Wiki help
Toolbox