FSB OGG Unpacker

Codecs, formats, encoding/decoding of game audio, video and music
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FSB OGG Unpacker

Post by aluigi »

The problems are not the effects, it's just the target of the fsbext tool that is different.
The idea is a tool that dumps the data as-is and, if necessary, adapts the data for creating a playable file (like what happens with mp3 that are very similar to ogg in their concept).

Regarding the raw pcm topic I already expressed my opinion, it's not possible to recognize a raw pcm stream inside a file contaiing any random data.
spider91
Posts: 233
Joined: Sun Aug 24, 2014 5:26 pm

Re: FSB OGG Unpacker

Post by spider91 »

I've ansvered about raw on that topic. That is possible and that tool recognizes raw data. Search the dumped file for TAK entries. It extracts raw, adds header, compress it with TAK and put it back in a whole file. So there are a way to recognize that data. Also you can just try to extract it with "e" command, but it will extract raw data without header.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FSB OGG Unpacker

Post by aluigi »

I made a test and that tool didn't work with me.
The reason is logic, go on Linux and make: cat /dev/urandom > /tmp/audio_data.raw

The generated file can be a sequence of random bytes or just a "noisy" PCM 8 or 16bit raw audio file, nobody can tell or maybe a valid PCM raw in the middle of other non-audio data.

That's the reason why it's not possible to find headerless raw PCM audio data (no RIFF, no other magic signatures to search) in a file, and I already tested the tool and it failed.

I want to be sure that we are in sync on the correct terms, with PCM raw data I mean just the sequence of audio without headers.
If the data has an header then it's a format (RIFF WAV for example) and, yes, in that case it's possible to search the files, but it's a format scanner and not a "raw" scanner.

Hope it's clear now.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FSB OGG Unpacker

Post by aluigi »

happyend
Posts: 157
Joined: Sun Aug 24, 2014 8:54 am

Re: FSB OGG Unpacker

Post by happyend »

hi~aluigi
I do not compile them,how to get compiled exe download link?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FSB OGG Unpacker

Post by aluigi »

I have the same problem on both Windows and Linux so I can't help much.
Hope to update fsbext soon.
happyend
Posts: 157
Joined: Sun Aug 24, 2014 8:54 am

Re: FSB OGG Unpacker

Post by happyend »

ok,wait fsbext update
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: FSB OGG Unpacker

Post by id-daemon »

aluigi wrote:https://github.com/tmiasko/fsb-vorbis-extractor


Requires a lot of external libraries. C++ coders always use tons of external stuff so they can't even remember where did they get them.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FSB OGG Unpacker

Post by aluigi »

Yeah, I already told that to the developer.
It's bad because they are not requirements so there is no reason to have those google stuff, they are used only for logging and argv parsing.
My dream would be to not even rely on libogg and libvorbis but I guess I'm asking too much :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FSB OGG Unpacker

Post by aluigi »

An update: the first test to make a standalone samples->ogg rebuilder in C just failed.
After having spent many time solving C++ to C problems of the rebuilder.cpp code, there are still things not working.
Honestly if it takes too much time and effort I will probably just not update fsbext.