NewsUnrealEdFilesModsFragBULiandri Archives
BeyondUnreal Forums

Go Back   BeyondUnreal Forums > Unreal Development > Content Releases

Reply
 
Thread Tools Display Modes
Old 27th Jan 2008, 04:26 PM   #1
Nereid
・ ω ・
 
Nereid's Avatar
 
Join Date: Apr. 15th, 2003
Location: Vancouver
Posts: 1,843
Oggextract: tool to extract music and sounds from upk files

[repost from before crash]

A while ago I wrote a program that extracts Ogg files that are embedded inside upk files. I was motivated to write this because there was no way to extract data from cooked upk files in UnrealEd, and I wanted to export UT3 sounds.

This is a command-line program, so to use it (on Windows), extract the binaries somewhere, open the command prompt and navigate to this directory, and type the command
Code:
oggextract blah.upk
assuming blah.upk is the path to the upk file you want to obtain sounds from. Unfortunately, I haven't quite figured out how to name the files properly, so at the moment you'll get filenames that resemble A_Music_GoDown.upk_0000168b.ogg, which unfortunately isn't very helpful if there are a lot of sounds in the package (for the curious, 0000168b is the (hexadecimal) offset in the file where the beginning of the ogg file is found). If I feel like it I might try to figure out how to get the names of the SoundNodeWave objects one day.

Note that this program should be able to extract embedded Ogg data from any files, not just upk files. Feel free to use the code for whatever you want.

Latest version: December 30, 2007.

Download and source at http://moriya.ca/oggextract/
__________________
»

Last edited by Nereid; 10th Oct 2011 at 10:23 PM.
Nereid is offline   Reply With Quote
Old 28th Jan 2008, 02:59 PM   #2
EisWiesel
... !!!
 
EisWiesel's Avatar
 
Join Date: Jan. 19th, 2008
Posts: 59
link doesnt work, get timeout everytime

thx at first, would be very usefull and much needed, i just searched for some kind of programm to rip ogg-files from cooked upk-packages all the last time cause i need "A_Music_RomUT05.A_Music_RomUT05Mix" in my ut-tracklist

[edit] link work now after 2 days...
looks good, recommend people should put files to C:\WINDOWS\system32 to have it global in commandline

Last edited by EisWiesel; 29th Jan 2008 at 08:19 PM.
EisWiesel is offline   Reply With Quote
Old 30th Jan 2008, 01:16 AM   #3
Nereid
・ ω ・
 
Nereid's Avatar
 
Join Date: Apr. 15th, 2003
Location: Vancouver
Posts: 1,843
It didn't work because my internets was dead yesterday, Sorry. :P
__________________
»
Nereid is offline   Reply With Quote
Old 30th Jan 2008, 10:51 AM   #4
[VaLkyR]Anubis
Quantum Velocity
 
[VaLkyR]Anubis's Avatar
 
Join Date: Jan. 20th, 2008
Location: Universe, Mother Earth
Posts: 1,487
Nereid you rocks,thank you very much for this tool.
__________________

deviantART~YouTube~Geforce
[VaLkyR]Anubis is offline   Reply With Quote
Old 30th Jan 2008, 10:56 AM   #5
Raynor.Z
Ad Nocendum Potentes Sumus
 
Raynor.Z's Avatar
 
Join Date: Feb. 1st, 2006
Posts: 1,414
Yeah, now I can extract Coret music, thanks for that utility.
__________________

For those willing to build a mountain of bodies
and climb to the top.
In environments that stun.
Against A.I. that kills.
For those willing to stake their lives
in the pursuit of victory...
we salute you.
Raynor.Z is offline   Reply With Quote
Old 6th Oct 2008, 03:30 PM   #6
mirrodin
Registered User
 
Join Date: May. 19th, 2008
Posts: 4
Laughing Uh oh?

Nice utility! as a composer myself I find this should make it much easier for me to be able to analyze how the composers for the retail game developed the music samples. That way I can easily just line up each cue into my DAW and write my own composition to match whatever arrangement i chose from the retail song's pieces i put together. A really useful and quick way of coming up with your own music!
mirrodin is offline   Reply With Quote
Old 29th Oct 2008, 10:50 PM   #7
pine
Official Photography Thread Appreciator
 
pine's Avatar
 
Join Date: Apr. 29th, 2001
Location: IRL
Posts: 6,143
It takes some work, and you get a lot of disjointed/useless files, but worth the effort imho. Thanks Nereid!
__________________
One great big festering neon distraction
I've a suggestion to keep you all occupied
Learn to swim!

Clan pdX
pine is offline   Reply With Quote
Old 30th Oct 2008, 12:44 AM   #8
mirrodin
Registered User
 
Join Date: May. 19th, 2008
Posts: 4
I wonder if it's possible for this utility to be expanded to extract the ogg files with their respective titles stored inside the packages.
mirrodin is offline   Reply With Quote
Old 7th Apr 2009, 02:47 PM   #9
<X-EvE-X>
Registered User
 
Join Date: Apr. 7th, 2009
Posts: 1
after download when i double klick the application it comes up but dissapears immediately
<X-EvE-X> is offline   Reply With Quote
Old 7th Apr 2009, 03:17 PM   #10
Kazimira
Necris Fan
 
Kazimira's Avatar
 
Join Date: Dec. 13th, 2008
Location: UK
Posts: 664
Is there a way to do the same with immage files? I want to export some stuff for skinning but the editor freaks out on me.
__________________
A big Necris fan since the first time I got my hands on UT99.
Send in the clowns.The Nitwitts.
Quote:
Originally Posted by Kazimira
You do realise Necris are corpses right?
So your stareing at a pixulated corpse backside.
Kazimira is offline   Reply With Quote
Old 11th Apr 2009, 06:29 AM   #11
gades
The Grudge Master!
 
gades's Avatar
 
Join Date: Nov. 20th, 2004
Location: Behind you biatch!!
Posts: 263
Quote:
Originally Posted by <X-EvE-X> View Post
after download when i double klick the application it comes up but dissapears immediately
You have to run it from the commandline:
Start Button/Run/cmd
A Dos box should pop up. Use cd:\directoryname to change directories, to where you placed oggextract. Then go oggextract whatever.upk (I drag a copy of the upk file to the oggextract directory 1st).
__________________
gades is offline   Reply With Quote
Old 12th May 2009, 02:17 AM   #12
Nereid
・ ω ・
 
Nereid's Avatar
 
Join Date: Apr. 15th, 2003
Location: Vancouver
Posts: 1,843
Quote:
Originally Posted by mirrodin View Post
I wonder if it's possible for this utility to be expanded to extract the ogg files with their respective titles stored inside the packages.
I have no idea what the .upk file structure is like. I just search the file for stuff that looks like pieces of an Ogg file and extract them.
__________________
»
Nereid is offline   Reply With Quote
Old 10th Oct 2009, 08:18 PM   #13
Psy_Commando
Registered User
 
Join Date: Oct. 10th, 2009
Posts: 1
Thumbs up

hey there, yesterday I stumbled on your neat little program, while I was looking for something to extract mass effect sounds and music. I was a little annoyed that the filename wouldn't get extracted, so I gave a shot at messing around with the code.

It should name properly the extracted audio, and an output dir can be specified. I rewritten the whole main function, added lots of comments, and turned it into c++. However, because I used windows.h, its only for windows, but only a few functions need to be changed to make it linux compatible. I included the source code, the exe, and the visual studio 2005 sln.

I hope someone will find this useful.
Attached Files
File Type: zip oggextract_title.zip (11.8 KB, 624 views)
Psy_Commando is offline   Reply With Quote
Old 10th Oct 2009, 10:47 PM   #14
Waffnuffly
>:E
 
Waffnuffly's Avatar
 
Join Date: Nov. 4th, 2001
Location: The Kitchen
Posts: 2,197
Oh, I'll have to try this again on the Gears of War music, as I used oggextract to grab all that stuff. When I extracted the UT3 music, I used some other program someone made that grabbed the titles, but that didn't work for GoW.
Waffnuffly is offline   Reply With Quote
Old 17th Oct 2009, 02:58 PM   #15
Teridax
Fresh meat.
 
Teridax's Avatar
 
Join Date: Nov. 2nd, 2008
Posts: 203
I'm having a bit of trouble with this; whenever I try and run the prompt, I get the following error message:

Quote:
This application has failed to start because cygwin1.dll was not found. Re-installing the application may fix this problem.
I've got no clue why it's doing this. I moved the files to C:\WINDOWS\system32, and everything should technically be working. I'm kind of guessing that the fact that I have Vista has something to do with it. Any help with this would be greatly appreciated.
Teridax is offline   Reply With Quote
Old 17th Oct 2009, 04:49 PM   #16
Raynor.Z
Ad Nocendum Potentes Sumus
 
Raynor.Z's Avatar
 
Join Date: Feb. 1st, 2006
Posts: 1,414
It says the cause: you need file named cygwin1.dll to be in same directory (or path) with your executable.
Try from here: http://www.dll-files.com/dllindex/dl....shtml?cygwin1
__________________

For those willing to build a mountain of bodies
and climb to the top.
In environments that stun.
Against A.I. that kills.
For those willing to stake their lives
in the pursuit of victory...
we salute you.
Raynor.Z is offline   Reply With Quote
Old 17th Oct 2009, 05:35 PM   #17
Teridax
Fresh meat.
 
Teridax's Avatar
 
Join Date: Nov. 2nd, 2008
Posts: 203
I did move the cygwin1.dll that came with the oggextractor to the same directory, though, and it still says that it can't find it.

Edit: That's weird, I used the cygwin1.dll you linked to, and it worked once, but now I'm getting the same error again.

Last edited by Teridax; 17th Oct 2009 at 05:37 PM.
Teridax is offline   Reply With Quote
Old 18th Feb 2010, 03:25 AM   #18
colir
Registered User
 
Join Date: Feb. 18th, 2010
Posts: 1
Hello,
i'm a newbbie with command line.
Can someone explain me how to extract sound from gears of war step by step please?

thanks you
colir is offline   Reply With Quote
Old 24th Mar 2010, 02:03 PM   #19
Pablooo
LD_
 
Join Date: Mar. 24th, 2010
Posts: 2
Hello, I don´t know if I did something wrong but I extracted the ogg files from the UT3 demo but no one plays. I tried in Winamp that supports oog vorbis and VLC.
I got 37 files from the CookedPC directory like
VCTF-Suspense_LOC_int.ut3_000837df or
UTFrontEnd.ut3_01371f35

Any hint on what´s going on?
btw I used Nereid extractor.

Thanks in advanced.
Pablooo is offline   Reply With Quote
Old 24th Mar 2010, 03:01 PM   #20
GreatEmerald
Khnumhotep
 
GreatEmerald's Avatar
 
Join Date: Jan. 20th, 2008
Location: Lithuania
Posts: 4,026
IIRC it doesn't work on demo files.
GreatEmerald is offline   Reply With Quote
Reply

Tags
ut3 music

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:44 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.

Copyright ©1998 - 2012, BeyondUnreal, Inc.
Privacy Policy | Terms of Use
Bandwidth provided by AtomicGamer