BCSTM header to BRSTM header? by Kurausukun at 7:38 PM EST on November 24, 2014
So I have some bcstm files that I want to convert to brstm, but I don't want to decode to wav and then re-encode to brstm because that's hideous (inb4whocares). Is rebuilding the header without re-encoding possible/simple enough that an idiot like me could do it?
by soneek at 9:21 PM EST on November 24, 2014
It's possible, though not exactly simple.
by Kurausukun at 10:42 PM EST on November 24, 2014
What prerequisite knowledge, etc. would I need? I'm not so hell-bent on this that I'm going to keep trying if it's obviously not feasible for me.
by bxaimc at 9:56 AM EST on November 25, 2014
Me for example, would just need to look at vgmstream's source code for bcstm and brstm and then just use a hex editor to manually change everything I need to.
by Kurausukun at 12:17 PM EST on November 25, 2014
Well, I really have no idea how to read source code (at least I've never tried, I don't really know what it looks like), nor do I know where to find vgmstream's source code. BUT I had a really stupid idea that ALMOST worked--just make a brstm of the bcstm using brstmmake, and copy the header over from the brstm to the bcstm. It opens, it plays, and it loops just fine--but it sounds incredibly noisy and corrupted. Why is this/can I fix it manually?
possible way by kapodamy at 12:41 PM EST on November 25, 2014
try use Revolution B on the ripping tools page.

this tool extract BRUTE adpcm data + coeff in separate channels.

In the following way:
revb.exe --extract your_stream.bcstm ch_L.dsp ch_R.dsp
revb.exe --build new_file.brstm ch_L.dsp ch_R.dsp
by Kurausukun at 1:04 PM EST on November 25, 2014
Unless I'm misunderstanding what Revolution B is doing, that's exactly what I don't want to do--I'm not trying to rebuild the entire stream, I just want to change the header, and it seemed like I was very close to doing that.
by starerik at 1:09 PM EST on November 25, 2014
@Kurausukun Is the sample rate the same in both files?
by Kurausukun at 1:28 PM EST on November 25, 2014
Yes, the sample rate is consistently 32728 Hz. I don't see why it would change though. At least I wish the problem were that simple :p
by soneek at 2:22 PM EST on November 25, 2014
You said it yourself before, re-encoding isn't lossless. The header data for the new BRSTM is completely different from the BCSTM. Look at kode54's github for the vgmstream source. Check src/meta/brstm.c, and src/meta/bcstm.c.

I can update the bcstm source with more specific information on the header when I get back. Drop by IRC later tonight if anything.
by Kurausukun at 3:30 PM EST on November 25, 2014
Well I'll be on IRC, but I'm not sure about how this will work... I looked at that source code, and I sort of understood what it meant (a little), but it wasn't really enough information for me to know what to do.


Go to Page 0

Search this thread

Show all threads

Reply to this thread:

User Name Tags:

bold: [b]bold[/b]
italics: [i]italics[/i]
emphasis: [em]emphasis[/em]
underline: [u]underline[/u]
small: [small]small[/small]
Link: [url=http://www.google.com]Link[/url]

[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message

HCS Forum Index
Halley's Comet Software
forum source