Important information: this site is currently scheduled to go offline indefinitely by end of the year.
XMA transform
-
- beginner
- Posts: 21
- Joined: Fri Oct 07, 2011 11:37 am
- Has thanked: 3 times
- Been thanked: 6 times
- Contact:
-
- advanced
- Posts: 55
- Joined: Tue Oct 05, 2010 9:42 pm
- Has thanked: 2 times
- Been thanked: 2 times
Re: All things XMA
hi with this tool can i convert *.360.wav audio from orangebox 360? i need some tool!!!
viewtopic.php?f=17&t=4967&hilit=valve
thanks
viewtopic.php?f=17&t=4967&hilit=valve
thanks
-
- double-veteran
- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 660 times
Re: All things XMA
PM me a sample and I'll take a look.Gromber wrote:hi with this tool can i convert *.360.wav audio from orangebox 360? i need some tool!!!
viewtopic.php?f=17&t=4967&hilit=valve
thanks
If you like what you see, why not click the little Thank You button? It will definitely motivate me!
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
-
- double-veteran
- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 660 times
Re: XMA transform
MAJOR UPDATE
(line count rises to over 900 with this )
Another long-overdue update: Scanning for possible XMA streams!
Notes:
(line count rises to over 900 with this )
Another long-overdue update: Scanning for possible XMA streams!
Notes:
- I have only included the XMA heuristics I stumbled upon and included in the script. This doesn't mean that a correct XMA start can ALWAYS be detected because there can be data structures that accidentially look exactly like an XMA stream but actually aren't.
- the scanning function will only be enabled when no known header type is found
- once a possible stream start is detected, the file is header-cut to this position and written to disk (offset included in name for later research, e.g. look for a valid frequency)
- the written file then has to be run through the script again with testmode on to check if the XMA is valid or not
Last edited by AlphaTwentyThree on Sun Oct 07, 2012 1:32 pm, edited 1 time in total.
If you like what you see, why not click the little Thank You button? It will definitely motivate me!
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
-
- double-veteran
- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 660 times
Re: XMA transform
Just corrected a little mistake that prevented some XWV files to convert properly.
If you like what you see, why not click the little Thank You button? It will definitely motivate me!
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
-
- double-veteran
- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 660 times
Re: XMA transform
UPDATE
Added files with XMA2 multichannel header. toWAV only seems to support those, i.e. it decodes them - but the file sizes for the channel pairs are different, so the header is not fully supported. So I updated the script to parse and split like with multichannel files with the standard RIFF header. Tested with Deadly Premonition (X360) but should work on others, too. If I remember correctly, Ace Combat 6 also uses this kind of header and eventually that was the reason why the format was semi-implemented in toWAV.
Added files with XMA2 multichannel header. toWAV only seems to support those, i.e. it decodes them - but the file sizes for the channel pairs are different, so the header is not fully supported. So I updated the script to parse and split like with multichannel files with the standard RIFF header. Tested with Deadly Premonition (X360) but should work on others, too. If I remember correctly, Ace Combat 6 also uses this kind of header and eventually that was the reason why the format was semi-implemented in toWAV.
If you like what you see, why not click the little Thank You button? It will definitely motivate me!
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
- cra0
- ultra-veteran
- Posts: 438
- Joined: Fri Apr 27, 2012 9:37 am
- Has thanked: 29 times
- Been thanked: 189 times
- Contact:
Re: XMA transform
lets say I have
bgm4000.xma
using your script it converts it into 3 .xma files
then i drag these onto towav and it gives me 3 wav files which go for like 5 secs what am I doing wrong
bgm4000.xma
using your script it converts it into 3 .xma files
then i drag these onto towav and it gives me 3 wav files which go for like 5 secs what am I doing wrong
-
- double-veteran
- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 660 times
Re: XMA transform
Have you used testmode in the first run to get the blocksize and xma version?cra0 wrote:lets say I have
bgm4000.xma
using your script it converts it into 3 .xma files
then i drag these onto towav and it gives me 3 wav files which go for like 5 secs what am I doing wrong
If not, the thing you are doing wrong is not reading the manual.
If you like what you see, why not click the little Thank You button? It will definitely motivate me!
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
-
- advanced
- Posts: 55
- Joined: Tue Oct 05, 2010 9:42 pm
- Has thanked: 2 times
- Been thanked: 2 times
Re: XMA transform
Thanks for the work and the updates!!! and for the help
I have to look carefully, i wanted to add spanish voices to orange box, but there are many audio and i dont know how to convert again to 360.wav easily
I have pc voices in .wav
Edit: i can convert pc spanish voices to xma with xma2encode.exe, it is posible with a script add XWV compatibility? thanks!
I have to look carefully, i wanted to add spanish voices to orange box, but there are many audio and i dont know how to convert again to 360.wav easily
I have pc voices in .wav
Edit: i can convert pc spanish voices to xma with xma2encode.exe, it is posible with a script add XWV compatibility? thanks!
Last edited by Gromber on Wed Oct 10, 2012 9:43 pm, edited 1 time in total.
- cra0
- ultra-veteran
- Posts: 438
- Joined: Fri Apr 27, 2012 9:37 am
- Has thanked: 29 times
- Been thanked: 189 times
- Contact:
Re: XMA transform
Never mind I ended up using xmash it works perfectly however when it converts it makes 3 wav files which sound exactly the same except the 2nd one is only left audio, which one do i take 1 or 3AlphaTwentyThree wrote:Have you used testmode in the first run to get the blocksize and xma version?cra0 wrote:lets say I have
bgm4000.xma
using your script it converts it into 3 .xma files
then i drag these onto towav and it gives me 3 wav files which go for like 5 secs what am I doing wrong
If not, the thing you are doing wrong is not reading the manual.
-
- double-veteran
- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 660 times
Re: XMA transform
Please also send me the file, I want to check if my scripts works properly.cra0 wrote:Never mind I ended up using xmash it works perfectly however when it converts it makes 3 wav files which sound exactly the same except the 2nd one is only left audio, which one do i take 1 or 3AlphaTwentyThree wrote:Have you used testmode in the first run to get the blocksize and xma version?cra0 wrote:lets say I have
bgm4000.xma
using your script it converts it into 3 .xma files
then i drag these onto towav and it gives me 3 wav files which go for like 5 secs what am I doing wrong
If not, the thing you are doing wrong is not reading the manual.
I highly doubt they actually are the same, it's a surround file. Unless you don't look at it with an audio editor, you can't say that. Surround is normall Fl-Fr-C-LFE-Rl-Rr, so the "only left channel" you're talking about is the center/LFE pair....
If you like what you see, why not click the little Thank You button? It will definitely motivate me!
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
- cra0
- ultra-veteran
- Posts: 438
- Joined: Fri Apr 27, 2012 9:37 am
- Has thanked: 29 times
- Been thanked: 189 times
- Contact:
Re: XMA transform
Ok I have packed the files for you to experiment withPlease also send me the file, I want to check if my scripts works properly.
I highly doubt they actually are the same, it's a surround file. Unless you don't look at it with an audio editor, you can't say that. Surround is normall Fl-Fr-C-LFE-Rl-Rr, so the "only left channel" you're talking about is the center/LFE pair....
original/bgm6666.xma
after_xmash/
then_after_towav/
(link removed due to copyright)
Now tell me which wav file I take that is 2 channel stereo
-
- double-veteran
- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 660 times
Re: XMA transform
I don't know what the problem is here. It's a standard 6 ch XMA 2 files with blocksize 0x20000, it decodes correctly to three channel pairs with both xma_mash and my script. *_1.xma=Fl/Fr, *_2.xma=C/LFE, *_3.xma=Rl/Rr - as always. I don't even get your question...cra0 wrote:Now tell me which wav file I take that is 2 channel stereo
If you like what you see, why not click the little Thank You button? It will definitely motivate me!
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
-
- double-veteran
- Posts: 982
- Joined: Mon Aug 24, 2009 10:55 pm
- Has thanked: 76 times
- Been thanked: 660 times
Re: XMA transform
UPDATE
Added two more header variants
- FUNl header found in Men in Black: Alien Crisis
- MUSX header (various Electonic Arts games)
Else, I've established a variable to toggle the scanning function because it's too experimental I fancied.
Line count has risen to over 1000!
Added two more header variants
- FUNl header found in Men in Black: Alien Crisis
- MUSX header (various Electonic Arts games)
Else, I've established a variable to toggle the scanning function because it's too experimental I fancied.
Line count has risen to over 1000!
If you like what you see, why not click the little Thank You button? It will definitely motivate me!
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks
And here's Mr.Mouse's Facebook link: http://www.facebook.com/permalink.php?s ... 8469022795 - thanks