The rules have been updated, read them now: Rules!
Get help on any and all audio formats, or chip in and help others!
-
brendan19
- ultra-veteran

- Posts: 384
- Joined: Thu Aug 12, 2010 8:15 am
- Has thanked: 54 times
- Been thanked: 87 times
Post
by brendan19 » Sat Jul 25, 2015 12:33 am
The sample file you provided is just a stereo file that vgmstream can playback just fine
You will only need to deinterleave the XVAG if it has more than two channels.
You can also tell if you need to deinterleave an XVAG file when you try to listen to it and it sounds disjointed and doesn't playback smoothly.
-
brendan19
- ultra-veteran

- Posts: 384
- Joined: Thu Aug 12, 2010 8:15 am
- Has thanked: 54 times
- Been thanked: 87 times
Post
by brendan19 » Sat Jul 25, 2015 1:26 am
Extract? no as they are just audio files.
Deinterleave, yes
If it stutters during playback, that means it's most likely more than two channels.
The file you provided is 4 channels, and also in the filename it says "quad" as well
Header size is 0x134 which can be found at the offset 0x06
Number of channels is 4 which can be found at the offset 0x2B
INTSIZE is 0x3000
Any questions?

-
brendan19
- ultra-veteran

- Posts: 384
- Joined: Thu Aug 12, 2010 8:15 am
- Has thanked: 54 times
- Been thanked: 87 times
Post
by brendan19 » Sat Jul 25, 2015 2:45 pm
Okay, I'll use the file you provided before, the stuttering file "amb-bed-tommys-dam-ext-quad.xvag"
INTSIZE can be found by going to the very end of the file using a hex editor.
There will be a whole section of "00"s
What you need to do is this: From the end of the file, you need to highlight all of the data starting from the very last 00 and scroll up the file until you encounter another section of "00"s just like there is at the end of the file. At the end of this new section of "00"s the first two bytes will be "FF FB" which is known as the MPEG flag.
Your highlighted selection should start on the "FF FB" immediately after that section of "00"s and go all the way to the very last byte of the file.
Copy and paste that highlighted part into a new file in your hex editor and the offset given at the end of this section you copied is the INTSIZE of a single interleave block
For this file, "amb-bed-tommys-dam-ext-quad" the INTSIZE is 0x3000
-
Cameron007
- advanced
- Posts: 48
- Joined: Thu Aug 06, 2015 12:12 pm
Post
by Cameron007 » Sun Sep 18, 2016 3:10 am
I converted the XVAG files from Resistance 2 with VGMStream, but the quality is iffy. What to do then?
-
brendan19
- ultra-veteran

- Posts: 384
- Joined: Thu Aug 12, 2010 8:15 am
- Has thanked: 54 times
- Been thanked: 87 times
Post
by brendan19 » Tue Sep 20, 2016 4:46 am
The XVAG files you posted playback just fine on vgmstream without any deinterleaving as they are just stereo files.
You only need to deinterleave the file if there is more than two channels.
-
AnonBaiter
- veteran
- Posts: 82
- Joined: Thu Oct 15, 2015 8:15 pm
- Has thanked: 18 times
- Been thanked: 6 times
Post
by AnonBaiter » Tue Sep 20, 2016 5:55 pm
brendan19 wrote:You only need to deinterleave the file if there is more than two channels.
But how can you deinterleave the file if there is more than two channels? The quickBMS script that deinterleaves the file didn't work for me, and I'm not talking about the one Researchman edited for XVAG for more than 2 channels or something since it uses an old revision.
-
Cameron007
- advanced
- Posts: 48
- Joined: Thu Aug 06, 2015 12:12 pm
Post
by Cameron007 » Tue Sep 20, 2016 6:48 pm
But do you notice the quality? I'm pretty sure it's supposed to sound clearer than that.
-
brendan19
- ultra-veteran

- Posts: 384
- Joined: Thu Aug 12, 2010 8:15 am
- Has thanked: 54 times
- Been thanked: 87 times
Post
by brendan19 » Wed Sep 21, 2016 4:15 pm
AnonBaiter wrote:But how can you deinterleave the file if there is more than two channels? The quickBMS script that deinterleaves the file didn't work for me, and I'm not talking about the one Researchman edited for XVAG for more than 2 channels or something since it uses an old revision.
Give me a file and I'll walk you through it
Cameron007 wrote:But do you notice the quality? I'm pretty sure it's supposed to sound clearer than that.
The XVAGs playback just fine and they're 48kHz so I do not think so unless some post processing is applied to the audio tracks by the game.
The VAG files, maybe since they're mono and quite a low frequency. The only thing that comes to mind is if those tracks are coming through an old radio or something in the game which would explain using that fidelity and that's why they are that quality.
-
Cameron007
- advanced
- Posts: 48
- Joined: Thu Aug 06, 2015 12:12 pm
Post
by Cameron007 » Wed Sep 21, 2016 7:36 pm
brendan19 wrote:AnonBaiter wrote:But how can you deinterleave the file if there is more than two channels? The quickBMS script that deinterleaves the file didn't work for me, and I'm not talking about the one Researchman edited for XVAG for more than 2 channels or something since it uses an old revision.
Give me a file and I'll walk you through it
Cameron007 wrote:But do you notice the quality? I'm pretty sure it's supposed to sound clearer than that.
The XVAGs playback just fine and they're 48kHz so I do not think so unless some post processing is applied to the audio tracks by the game.
The VAG files, maybe since they're mono and quite a low frequency. The only thing that comes to mind is if those tracks are coming through an old radio or something in the game which would explain using that fidelity and that's why they are that quality.
Funny, some of the XVAG are only 32000 Hz. Maybe those are the ones that sound crappy.
-
AnonBaiter
- veteran
- Posts: 82
- Joined: Thu Oct 15, 2015 8:15 pm
- Has thanked: 18 times
- Been thanked: 6 times
Post
by AnonBaiter » Wed Sep 21, 2016 11:18 pm
brendan19 wrote:AnonBaiter wrote:But how can you deinterleave the file if there is more than two channels? The quickBMS script that deinterleaves the file didn't work for me, and I'm not talking about the one Researchman edited for XVAG for more than 2 channels or something since it uses an old revision.
Give me a file and I'll walk you through it

Here you go.