XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Wed May 24, 2017 10:33 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: [xvag files] Newb need help please.
PostPosted: Thu Sep 22, 2016 9:17 am 
Offline
ultra-veteran
ultra-veteran

Joined: Thu Aug 12, 2010 8:15 am
Posts: 336
Has thanked: 54 times
Have thanks: 70 times














You can make the ads go away by registering

This should do it for you :)

Code:
set HEADER 0xDC # zero if skip is at end of block, otherwise = first skip at start
set PRESERVE 1
set ADJUST 0
set BLOCKSIZE 0 # size of one complete block
set INTSIZE 0x1390 # size of one single interleave block. Set Blocksize to zero to take this value instead.
set LAYERS 2
set SKIP 0 # area at start of each block to skip


Top
 Profile  
 
 Post subject: Re: [xvag files] Newb need help please.
PostPosted: Thu Sep 22, 2016 2:44 pm 
Offline
advanced

Joined: Thu Oct 15, 2015 8:15 pm
Posts: 73
Has thanked: 17 times
Have thanks: 2 times
Does that work with the 2016-05-16 version of the script, though? Because I might be out of luck here...


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: [xvag files] Newb need help please.
PostPosted: Thu Sep 22, 2016 2:57 pm 
Offline
ultra-veteran
ultra-veteran

Joined: Thu Aug 12, 2010 8:15 am
Posts: 336
Has thanked: 54 times
Have thanks: 70 times
Here's the 2012 script which does work with those parameters.

I did try with the latest version but I'd need to experiment with the script more to work it out.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: [xvag files] Newb need help please.
PostPosted: Thu Sep 22, 2016 3:02 pm 
Offline
advanced

Joined: Thu Oct 15, 2015 8:15 pm
Posts: 73
Has thanked: 17 times
Have thanks: 2 times
Now that works.
However I have one question: what steps should I take when deinterleaving a .xvag with the script you gave me, especially when dealing with a .xvag file that has a different header like this one?
Code:
00000000  58 56 41 47 00 00 01 74 03 00 00 61 00 00 00 00  XVAG...t...a....
00000010  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000020  66 6D 61 74 00 00 00 24 00 00 00 08 00 00 00 08  fmat...$........
00000030  00 2B F2 00 00 2B F2 00 00 00 00 08 00 00 BB 80  .+ò..+ò.......»€
00000040  00 58 08 00 00 00 00 01 00 00 00 04 63 70 61 6E  .X..........cpan
00000050  00 00 00 90 00 00 00 08 00 00 00 00 00 00 00 3F  ...............?
00000060  00 00 00 00 80 00 00 01 00 00 00 00 00 00 00 00  ....€...........
00000070  00 00 00 00 80 00 00 02 00 00 00 00 00 00 00 00  ....€...........
00000080  00 00 00 00 80 00 00 01 00 00 00 00 00 00 00 00  ....€...........
00000090  00 00 00 00 80 00 00 02 00 00 00 00 00 00 00 00  ....€...........
000000A0  00 00 00 00 80 00 00 01 00 00 00 00 00 00 00 00  ....€...........
000000B0  00 00 00 00 80 00 00 02 00 00 00 00 00 00 00 00  ....€...........
000000C0  00 00 00 00 80 00 00 01 00 00 00 00 00 00 00 00  ....€...........
000000D0  00 00 00 00 80 00 00 02 00 00 00 00 00 00 00 00  ....€...........
000000E0  00 00 00 00 6D 70 69 6E 00 00 00 80 00 00 00 01  ....mpin...€....
000000F0  00 00 00 03 00 00 00 C0 00 00 BB 80 00 00 00 01  .......À..»€....
00000100  00 00 00 02 00 00 00 02 00 00 02 40 00 00 04 B1  ...........@...±
00000110  00 2B F2 00 00 00 02 1C 00 00 00 02 00 00 00 80  .+ò............€
00000120  00 57 F6 00 00 00 00 00 00 00 00 00 00 00 00 00  .Wö.............
00000130  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000140  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000150  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
00000160  00 00 00 00 00 00 00 00 00 00 00 00 30 30 30 30  ............0000
00000170  00 00 00 00 FF FB B4 40 00 00 03 2D 13 4F C9 E9  ....ÿû´@...-.OÉé
But also to avoid this:
Code:
- open input file E:\Journey_Collectors_Edition_PS3-ZRY\_BCUS98377-[Journey Collectors Edition]\PS3_EXTRA\D002\DATA000\NPUA70218\USRDIR\Data\Sounds\Streams\mus\3m6_L12.xvag
- open script E:\quickbms_scripts\file_deinterleave.bms
- set output folder E:\Journey_Collectors_Edition_PS3-ZRY\_BCUS98377-[Journey Collectors Edition]\PS3_EXTRA\D002\DATA000\NPUA70218\USRDIR\Data\Sounds\Streams\mus

  offset   filesize   filename
--------------------------------------
- SCRIPT's MESSAGE:
  Error: file size minus header isn't dividable by blocksize! Aborting...
I mean, sure, I might be avoiding these problems by myself sometime but I still need some tips.


Top
 Profile  
 
 Post subject: Re: [xvag files] Newb need help please.
PostPosted: Thu Sep 22, 2016 4:09 pm 
Offline
advanced

Joined: Thu Aug 06, 2015 12:12 pm
Posts: 48
Has thanked: 0 time
Have thanks: 0 time
Is there no way to set output frequency in VGMStream?


Top
 Profile  
 
 Post subject: Re: [xvag files] Newb need help please.
PostPosted: Fri Sep 23, 2016 7:49 am 
Offline
ultra-veteran
ultra-veteran

Joined: Thu Aug 12, 2010 8:15 am
Posts: 336
Has thanked: 54 times
Have thanks: 70 times
Cameron007 wrote:
Is there no way to set output frequency in VGMStream?

You'd need to change the frequency in the file header. vgmstream reads the header information and then plays it at that. Changing the output frequency won't increase the fidelity but instead make it playback faster or slower.

AnonBaiter wrote:
Now that works. However I have one question: what steps should I take when deinterleaving a .xvag with the script you gave me, especially when dealing with a .xvag file that has a different header like this one? I mean, sure, I might be avoiding these problems by myself sometime but I still need some tips.


You need to adjust the script as needed for the xvag files.


Header size can be found at offset 0x06

If you look at the code you just posted, "01 74" is the header size so you'd put
set HEADER 0x174

And if you look, at offset 0x175 we see the first "FF FB" which is the MPEG frame flag. So that also confirms that is the correct size of the file header.


The number of layers can be found at offset 0x2B. However this number needs to be divided by two.

So if you see "08" at 0x2B you put
set LAYERS 4

If you see "06" at 0x2B you put
set LAYERS 3

etc


To work out the size of a single interleave block,

1. Go to the very end of the file in your hex editor. It should be a block of 00s

2. Select and highlight all of the data from the last 00 in the file all the way up until you reach another block of 00s (Your highlighted data should start with FFFB and end with the last 00 of the file)

3. Copy and paste this into a new file in your hex editor.

4. Scroll to the bottom of the newly created file. The final offset number will represent a single interleave block for that file.

This will give you the INTSIZE so the script can successfully deinterleave the file.


Top
 Profile  
 
 Post subject: Re: [xvag files] Newb need help please.
PostPosted: Fri Sep 23, 2016 2:59 pm 
Offline
advanced

Joined: Thu Aug 06, 2015 12:12 pm
Posts: 48
Has thanked: 0 time
Have thanks: 0 time
I guess I'll need a hex editor for that?


Top
 Profile  
 
 Post subject: Re: [xvag files] Newb need help please.
PostPosted: Fri Sep 23, 2016 6:54 pm 
Offline
ultra-veteran
ultra-veteran

Joined: Thu Aug 12, 2010 8:15 am
Posts: 336
Has thanked: 54 times
Have thanks: 70 times
Yes you will


Top
 Profile  
 
 Post subject: Re: [xvag files] Newb need help please.
PostPosted: Sat Dec 17, 2016 8:41 am 
Offline
double-veteran
double-veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1163
Has thanked: 18 times
Have thanks: 472 times
XVAG splitter:

viewtopic.php?f=17&t=15612


Top
 Profile  
 
 Post subject: Re: [xvag files] Newb need help please.
PostPosted: Sat Jan 14, 2017 8:59 pm 
Offline
ultra-n00b

Joined: Sat Jan 14, 2017 8:55 pm
Posts: 2
Has thanked: 1 time
Have thanks: 0 time
How do i convert mp3 or wav or any other sound format to xvag?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 25 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group