Important information: this site is currently scheduled to go offline indefinitely by end of the year.

My quickBMS scripts

Coders and would-be coders alike, this is the place to talk about programming.
mauzerX
advanced
Posts: 57
Joined: Thu Jul 01, 2010 1:48 pm
Has thanked: 22 times
Been thanked: 10 times

Re: My quickBMS scripts

Post by mauzerX »

cozy wrote:Thanks for the scrips they are good,but is there any chance of a .aa3 to .at3(+)

cheers cozy
+1
It'll be great,from aa3 to RIFF AT3 \ MSF AT3
TEOL
ultra-n00b
Posts: 6
Joined: Thu Jan 27, 2011 7:22 pm

Re: My quickBMS scripts

Post by TEOL »

GenericRipper wrote:Why not run this free script
AlphaTwentyThree wrote:

Code: Select all

get BNAME basename
string BNAME += "_"
set OFFSET 0
set SEARCH OFFSET
math SEARCH += 4
set QUIT 0
for i = 1
	goto SEARCH
	FindLoc SIZE string "RIFX" 0 ""
	if SIZE == ""
		get SIZE asize
		set QUIT 1
	endif
	math SIZE -= OFFSET
	set NAME BNAME
	string NAME += i
	log NAME OFFSET SIZE
	if QUIT != 1
		math OFFSET += SIZE
		set SEARCH OFFSET
		math SEARCH += 4
	else
		cleanexit
	endif
next i
with a help of a free program named QuickBMS and convert resulting *.rifx files using a free program named WW2OGG and this batch file?
for %%a in (*.RIFX) do ww2ogg.exe "%%a"
Thanks dude. It worked. Although they are just called .files. Anyone know what I should rename them to?
GenericRipper
advanced
Posts: 66
Joined: Sun Mar 21, 2010 5:41 pm
Has thanked: 56 times
Been thanked: 4 times

Re: My quickBMS scripts

Post by GenericRipper »

You can rename a huge number of files at once by setting a specific mask in Total Commander (or maybe other file managers but personally I prefer Total Commander). Once you cut music.pck in pieces with a help of Alpha23`s script you can highlight all the resulting files in Total Commander, go to "Files => Multi-rename tool" and change extension mask from [E] to RIFX. But if you`re not content with using paid software at all you can always rename them manually ;) .
TEOL
ultra-n00b
Posts: 6
Joined: Thu Jan 27, 2011 7:22 pm

Re: My quickBMS scripts

Post by TEOL »

GenericRipper wrote:You can rename a huge number of files at once by setting a specific mask in Total Commander (or maybe other file managers but personally I prefer Total Commander). Once you cut music.pck in pieces with a help of Alpha23`s script you can highlight all the resulting files in Total Commander, go to "Files => Multi-rename tool" and change extension mask from [E] to RIFX. But if you`re not content with using paid software at all you can always rename them manually ;) .
Putting .rifx at the end of my files in windows doesn't seem to work, it just gives me a 1kb .ogg file. It's just that I don't wish to pay for anything I'm likely to use only once ever. Sorry if it looked disrespectful when I said it last time.
Last edited by TEOL on Tue Feb 01, 2011 2:24 pm, edited 1 time in total.
AlphaTwentyThree
double-veteran
double-veteran
Posts: 982
Joined: Mon Aug 24, 2009 10:55 pm
Has thanked: 76 times
Been thanked: 660 times

Re: My quickBMS scripts

Post by AlphaTwentyThree »

cozy wrote:Thanks for the scrips they are good,but is there any chance of a .aa3 to .at3(+)

cheers cozy
That would be something like MP2 to MP3... the formats are pretty different and I only program header manipulators but no converters. So, no. :-\
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 ;)
GenericRipper
advanced
Posts: 66
Joined: Sun Mar 21, 2010 5:41 pm
Has thanked: 56 times
Been thanked: 4 times

Re: My quickBMS scripts

Post by GenericRipper »

TEOL wrote:Putting .rifx at the end of my files in windows doesn't seem to work, it just gives me a 1kb .ogg file.
I`ll try to follow your actions step by step skipping BMS script phase.
  • You have roughly 100 files without an extension but you rename them so that all of them have RIFX extension;
    You download that Wwise RIFF OGG vorbis conversion program;
    You unpack WW2OGG.ZIP in the directory containing *.RIFX;
    You put this text
for %%a in (*.RIFX) do ww2ogg.exe "%%a"
in a notepad and save it as *.BAT in the directory already containing WW2OGG program files and SVR 2011 tracks;
  • You run the batch file and should find standard and easily playable OGG files in that folder after conversion.
TEOL
ultra-n00b
Posts: 6
Joined: Thu Jan 27, 2011 7:22 pm

Re: My quickBMS scripts

Post by TEOL »

I had 100% success. Thanks guys for the prompt support you gave me. It was .ogg I was supposed to rename them to in Windows. A RIFX converter script gave me the instructions rename to .ogg before putting it into the ogg converter, so I did that and got the inners.
User avatar
cozy
beginner
Posts: 39
Joined: Mon Dec 07, 2009 10:18 pm
Been thanked: 21 times

Re: My quickBMS scripts

Post by cozy »

AlphaTwentyThree wrote:
cozy wrote:Thanks for the scrips they are good,but is there any chance of a .aa3 to .at3(+)

cheers cozy
That would be something like MP2 to MP3... the formats are pretty different and I only program header manipulators but no converters. So, no. :-\
You did a script for at3 to aa3 header why not aa3 to at3?i used your script to convert at3plus files to aa3 then used sound forge to downsample to a low bit rate justneed the at3 header putting back on?

cheers for the reply :)
AlphaTwentyThree
double-veteran
double-veteran
Posts: 982
Joined: Mon Aug 24, 2009 10:55 pm
Has thanked: 76 times
Been thanked: 660 times

Re: My quickBMS scripts

Post by AlphaTwentyThree »

cozy wrote:
AlphaTwentyThree wrote:
cozy wrote:Thanks for the scrips they are good,but is there any chance of a .aa3 to .at3(+)

cheers cozy
That would be something like MP2 to MP3... the formats are pretty different and I only program header manipulators but no converters. So, no. :-\
You did a script for at3 to aa3 header why not aa3 to at3?i used your script to convert at3plus files to aa3 then used sound forge to downsample to a low bit rate justneed the at3 header putting back on?

cheers for the reply :)
Oh lol, I didn't read properly, gg. I'll try to although I'm not sure if the values that are unprocessed in the RIFF header are important for the PS3 or PSP to play them. I'll code one later and you tell me if it works, ok? ;)
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 ;)
User avatar
cozy
beginner
Posts: 39
Joined: Mon Dec 07, 2009 10:18 pm
Been thanked: 21 times

Re: My quickBMS scripts

Post by cozy »

]You did a script for at3 to aa3 header why not aa3 to at3?i used your script to convert at3plus files to aa3 then used sound forge to downsample to a low bit rate justneed the at3 header putting back on?

cheers for the reply :)[/quote]
Oh lol, I didn't read properly, gg. I'll try to although I'm not sure if the values that are unprocessed in the RIFF header are important for the PS3 or PSP to play them. I'll code one later and you tell me if it works, ok? ;)[/quote]

Thanks :) ,do you want a sample of at3 that i downsampled and the original?
at3_samples.7z
Original =44100Hz,128kbps,16 Bit, stereo ATRAC3+
downsampled=44100Hz,32Kbps,16 Bit, Mono, ATRAC3+
You do not have the required permissions to view the files attached to this post.
Last edited by cozy on Tue Feb 01, 2011 10:38 pm, edited 2 times in total.
AlphaTwentyThree
double-veteran
double-veteran
Posts: 982
Joined: Mon Aug 24, 2009 10:55 pm
Has thanked: 76 times
Been thanked: 660 times

Re: My quickBMS scripts

Post by AlphaTwentyThree »

Nope, don't need that, thanks.
Last edited by AlphaTwentyThree on Wed Feb 02, 2011 2:31 am, 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 ;)
User avatar
cozy
beginner
Posts: 39
Joined: Mon Dec 07, 2009 10:18 pm
Been thanked: 21 times

Re: My quickBMS scripts

Post by cozy »

AlphaTwentyThree wrote:add_aa3_header.bms
Adds a standard aa3 header to a headerless file.

Code: Select all

# adjust format!
# set CODE 0x01002417 # 44100, 1,  32
# set CODE 0x01002422 # 44100, 1,  48
# set CODE 0x0100242E # 44100, 1,  64
# set CODE 0x01002445 # 44100, 1,  96
# set CODE 0x0100245c # 44100, 1, 128
# set CODE 0x0100248B # 44100, 1, 192
# set CODE 0x01002817 # 44100, 2,  32
# set CODE 0x01002822 # 44100, 2,  48
# set CODE 0x0100282E # 44100, 2,  64
# set CODE 0x01002845 # 44100, 2,  96
set CODE 0x0100285C # 44100, 2, 128
# set CODE 0x0100288B # 44100, 2, 192
# set CODE 0x010034E8 # 44100, 6, 320
# set CODE 0x01003573 # 44100, 6, 512
# set CODE 0x01004455 # 48000, 1, 128
# set CODE 0x01004855 # 48000, 2, 128
# set CODE 0x010054AA # 48000, 6, 256
# set CODE 0x010054D5 # 48000, 6, 320
# set CODE 0x010054FF # 48000, 6, 384
# set CODE 0x01005555 # 48000, 6, 512
reverselong CODE

set OFFSET 0x0
set MEMORY_FILE binary "\x65\x61\x33\x3\x0\x0\x0\x0\x7\x76\x47\x45\x4f\x42\x00\x00\x01\xc6\x00\x00\x02\x62\x69\x6e\x61\x72\x79\x00\x00\x00\x00\x4f\x00\x4d\x00\x47\x00\x5f\x00\x4c\x00\x53\x00\x49\x00\x00\x00\x01\x00\x40\x00\xdc\x00\x70\x00\x08\x00\x00\x00\x00\x00\x00\x4b\x45\x59\x52\x49\x4e\x47"
putVarChr MEMORY_FILE 0x400 0x1334145 long
putVarChr MEMORY_FILE 0x404 0xffff6000 long
putVarChr MEMORY_FILE 0x420 CODE long
goto OFFSET
get FIRST long
putVarChr MEMORY_FILE 0x460 FIRST long
savepos DATA
get SIZE asize
math SIZE -= OFFSET
math SIZE -= 4
append
log MEMORY_FILE DATA SIZE
append
get NAME basename
string NAME += ".aa3"
math SIZE += 0x460

log NAME 0 SIZE MEMORY_FILE
Hope that helps, Orange ;)
For your script to work on a headerless at3Plus you must remove the junk data from the headerless file,like the ones found when you extract the avi and at3 file from a PMF file Look at the hex in this at3 file find and remove the HEX:- 0FD0285C00000000 (i think this 128kbps)
There are 854 in this at3 file,i use a hex editor to find and replace but it takes forever to search each file ;(
Image

So if you could add this to the script to search and remove the hex 0FD0285C00000000 from each at3 headerless file then add the aa3 header this will work!!

Hope this helps
AlphaTwentyThree
double-veteran
double-veteran
Posts: 982
Joined: Mon Aug 24, 2009 10:55 pm
Has thanked: 76 times
Been thanked: 660 times

Re: My quickBMS scripts

Post by AlphaTwentyThree »

Not for all headerless AT3+ files I think. Nevertheless, just use my PMF_at3_to_aa3 script, that does exactly that. ;)
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 ;)
snakemeat
advanced
Posts: 45
Joined: Tue Jan 27, 2009 5:00 pm
Has thanked: 12 times
Been thanked: 24 times

Re: My quickBMS scripts

Post by snakemeat »

AlphaTwentyThree wrote:add_aa3_header.bms
Adds a standard aa3 header to a headerless file.

Code: Select all

.
.
.
savepos DATA
get SIZE asize
math SIZE -= OFFSET
math SIZE -= 4
.
.
.
string NAME += ".aa3"
math SIZE += 0x460

math SIZE += 4 # <--- add this line

log NAME 0 SIZE MEMORY_FILE
just a quick note that the currently posted version seems to trim the last 4 bytes off the file. Adding the line of code should fix it.
OrangeC
double-veteran
double-veteran
Posts: 868
Joined: Sun Apr 20, 2008 2:58 am
Has thanked: 5 times
Been thanked: 41 times

Re: My quickBMS scripts

Post by OrangeC »

The contents of this post was deleted because of possible forum rules violation.
Post Reply