pouët.net

Go to bottom

Extracting MP3's from EXE files?

category: offtopic [glöplog]
Back in the good old days, we had Exotic Ripper for the Amiga, but is there a modern equivilant for the PC? Theres a few demo sound tracks I'd like to get my hands on but they seem to be embedded inside the EXE?
added on the 2012-02-23 14:49:42 by djh0ffman djh0ffman
E-mailing the author is probably the simplest way...
added on the 2012-02-23 14:56:05 by kusma kusma
kusma: but that's no fun!
added on the 2012-02-23 14:58:05 by Frost Frost
you can try kkapture and just select "capture audio".
added on the 2012-02-23 15:04:04 by red red
Them goddamn programmers, hiding soundtracks in guts of their binaries!
added on the 2012-02-23 15:04:22 by kbi kbi
What Frost said.

MP3 doesn't really have a veeeery distinct header (sadly), but I did a little dumper some time ago that applied the following principle:
- Look for the first sequence of bytes that could be an MP3 frame header.
- Calculate frame length from that header.
- If next frame (or next two frames) also have valid headers, traverse the file until invalid header is found.
- Dump the data from the first frame to the last into a separate file.
- Goto first step.
added on the 2012-02-23 15:06:34 by Gargaj Gargaj
Another thing is that some demos has their data packed (in zip or whatever) so it might be good to check that also before doing a search in the data as Gargaj suggested otherwise Gargajs approach is likely the one to take (another thing to notice is that some demos may use ogg vorbis also so you would need to search for that as well)
added on the 2012-02-23 15:14:18 by emoon emoon
Doing it the other way is much more interesting: Finding the demo from the MP3!

1) Download the full scene.org archive
2) Build search-database from kkaptured/emulated music dumps.
3) Success
added on the 2012-02-23 15:17:16 by kusma kusma
emoon: Then again, "OggS" is easier to find :D
added on the 2012-02-23 15:24:42 by Gargaj Gargaj
1) find the demo on youtube.
2) youtube downloader, save as .mp3. done ;)
..or just kkapture it.
added on the 2012-02-23 15:50:33 by gloom gloom
Because the best thing to happen to a soundtrack is compress, uncompress, kkapture, re-compress. :(
added on the 2012-02-23 15:52:09 by Gargaj Gargaj
If you ask the author, you can often get it in even better quality than what was shipped with the demo. My solution wins!
added on the 2012-02-23 15:56:15 by kusma kusma
Your solution qualifies as social engineering, it's not REAL hacking! >:(
added on the 2012-02-23 15:59:14 by Gargaj Gargaj
Even better, if it can't be found here, here or here, then it probably isn't worth spending bandwidth on anyway.
added on the 2012-02-23 15:59:48 by kusma kusma
This helped me so many times... :)
added on the 2012-02-23 16:03:18 by Tomoya Tomoya
1) connect your speaker out to line-in or microphone connector
2) record
added on the 2012-02-23 17:01:20 by imbusy imbusy
1) rename .exe to .mp3
2) play it in vobsub until you recognize audio that is actually music
The process Gargaj described is what any streaming-capable mp3-player does anyway.
You can for example put the exe of this into winamp and listen to the track.
added on the 2012-02-23 18:12:32 by hfr hfr
What Kusma said. If you're gonna rip out the data, make sure the demo itself doesn't do any noteworthy realtime processing (not common, but it happens).
added on the 2012-02-23 18:23:27 by superplek superplek
...there's also the possibility that the zip/rar/whatever data files are password-protected and embedded in the exe, rendering any autodetection tool useless. So, what kusma said.
added on the 2012-02-23 18:52:51 by xTr1m xTr1m
You can also just hook out the BASS/FMOD calls and save the incoming memory ;)
added on the 2012-02-23 19:35:49 by Gargaj Gargaj
What Gargaj said :)
added on the 2012-02-23 22:05:09 by emoon emoon
So, in other words, nobody has written a tool to do this. Bugger! The principal ideas are nice but ima shite coder so won't be implementing then anytime soon.

Will have to opt for option b, emailing the artist although I do have access to a certain archive which has a fair stack of demo tunes readily available.

While we're on the subject of mp3's I wish more people would bloody tag them!!!
added on the 2012-02-24 00:52:28 by djh0ffman djh0ffman
Well, you could just post which demos you're looking into right now and maybe we would be able to help :)
added on the 2012-02-24 00:53:45 by Tomoya Tomoya

login

Go to top