Fires of Heaven Guild Message Board  

Go Back   Fires of Heaven Guild Message Board > General forums > Development
User Name
Password
Or, use your gamerDNA username: (more...)
ForumSpy Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 10-21-2007, 03:11 PM   #1 (permalink)
Aulirophile
Ultima Ratio Regum
 
Join Date: Feb 2003
Location: California
Posts: 1,600
-3 Internets
Compiling something... I think?

I need to decode the Nellymoser codec that Flash player uses when you talk into a mic. I found

nelly2pcm - Google Code

which is supposed to do it. I know very little about this type of thing, from what I can gather that is the source and I need to execute the "makefile" to compile it so it'll be the thing I need. But I haven't found anything that tells me how to do that in a Windows box, which is all I have access to atm.

Or maybe I'm all wrong. I'd be OK with that, so long as I found out why I was wrong. Any help?
__________________
"Someday, after mastering the winds, the waves, the tides and gravity, we shall harness for God the energies of love, and then, for a second time in the history of the world, man will have discovered fire."
~Pierre Teilhard de Chardin
Aulirophile is offline   Reply With Quote
Old 10-21-2007, 03:35 PM   #2 (permalink)
Sidhe
Registered User
 
Join Date: Sep 2003
Location: Waynesburg, PA
Posts: 201
+0 Internets
Send a message via AIM to Sidhe
C++ Compiler 5.5

That'll get you the good old fashioned Borland C++ compiler. I haven't used it in ages, so I don't know what it's like now, but it's a much smaller download than MS Visual C, and it sounds like you just want to do this one project.

E: Took a look, all the old standards are still there. The command is "make." Just put that Borland stuff in a folder with a nice short path like c:\bcc55(this will save having to set environment variables you're only going to use once), then open a command prompt, change to the directory your nelly2pcm stuff is in, and type c:\bcc55\bin\make nelly2pcm
That should do it.

Last edited by Sidhe : 10-21-2007 at 03:46 PM.
Sidhe is offline   Reply With Quote
Old 10-21-2007, 04:11 PM   #3 (permalink)
Aulirophile
Ultima Ratio Regum
 
Join Date: Feb 2003
Location: California
Posts: 1,600
-3 Internets
Thanks Sidhe, that was more progress then I've made in a while... though it still doesn't work. I get errors saying it can't find and doesn't know how to make nelly_tables.o. There is a nelly_tables.c, so I renamed that and then I got some other errors about other files, renamed those, then it errors out completely and the window closes.

I'll keep fiddling with it. Any suggestions?
__________________
"Someday, after mastering the winds, the waves, the tides and gravity, we shall harness for God the energies of love, and then, for a second time in the history of the world, man will have discovered fire."
~Pierre Teilhard de Chardin
Aulirophile is offline   Reply With Quote
Old 10-21-2007, 04:24 PM   #4 (permalink)
Sidhe
Registered User
 
Join Date: Sep 2003
Location: Waynesburg, PA
Posts: 201
+0 Internets
Send a message via AIM to Sidhe
Oh, you'll definitely want the C files to remain .c. .o should be the object files, the output used as the midpoint to becoming a .exe.

Looking at the code, I actually think someone saved it as formatted text(i/e not plaintext) which is completely stupid and non-working. Gonna compile it here in a sec.
Sidhe is offline   Reply With Quote
Old 10-21-2007, 04:35 PM   #5 (permalink)
Aulirophile
Ultima Ratio Regum
 
Join Date: Feb 2003
Location: California
Posts: 1,600
-3 Internets
Quote:
Originally Posted by Sidhe View Post
Oh, you'll definitely want the C files to remain .c. .o should be the object files, the output used as the midpoint to becoming a .exe.

Looking at the code, I actually think someone saved it as formatted text(i/e not plaintext) which is completely stupid and non-working. Gonna compile it here in a sec.
Ah, well, I got an .obj file once with the name-changing....

Wish I knew more about programming, I feel like an idiot taking days to figure some of this stuff out. And yeah, the text definitely isn't plaintext. I wondered if that was weird, since most source I've seen is, but...

I actually found this thing because FFMPEG integrated it so it can decode nellymoser. I didn't want to compile the whole FFMPEG thing to use it though.
__________________
"Someday, after mastering the winds, the waves, the tides and gravity, we shall harness for God the energies of love, and then, for a second time in the history of the world, man will have discovered fire."
~Pierre Teilhard de Chardin
Aulirophile is offline   Reply With Quote
Old 10-21-2007, 05:00 PM   #6 (permalink)
Sidhe
Registered User
 
Join Date: Sep 2003
Location: Waynesburg, PA
Posts: 201
+0 Internets
Send a message via AIM to Sidhe
Well, the good news is the BCC compiler is fine with the formatted text. However, I was getting some weird results compiling the individual files (the makefile isn't really gonna work, so don't even worry about that).

The bad news is that nelly2pcm.c wants to include some header files that this compiler just doesn't have. I don't know if they're Linux-specific, or just not ANSI C. I'm about to head home, so I'll see if VC++ has them.
Sidhe is offline   Reply With Quote
Old 10-21-2007, 05:06 PM   #7 (permalink)
Aulirophile
Ultima Ratio Regum
 
Join Date: Feb 2003
Location: California
Posts: 1,600
-3 Internets
Quote:
Originally Posted by Sidhe View Post
Well, the good news is the BCC compiler is fine with the formatted text. However, I was getting some weird results compiling the individual files (the makefile isn't really gonna work, so don't even worry about that).

The bad news is that nelly2pcm.c wants to include some header files that this compiler just doesn't have. I don't know if they're Linux-specific, or just not ANSI C. I'm about to head home, so I'll see if VC++ has them.
If they're linux specific, does that mean the final compile wouldn't run on a windows box?

Anyway, thanks for all the help Sidhe. Getting this working would be the end of my half of this project.
__________________
"Someday, after mastering the winds, the waves, the tides and gravity, we shall harness for God the energies of love, and then, for a second time in the history of the world, man will have discovered fire."
~Pierre Teilhard de Chardin
Aulirophile is offline   Reply With Quote
Old 10-21-2007, 08:10 PM   #8 (permalink)
Hachima
Registered User
 
Join Date: Oct 2004
Posts: 1,758
Just type 'make' under a Cygwin shell and you are done. Cygwin Information and Installation is a Unix like shell under windows.

If you don't want to install it you can run it from a command prompt just fine with just the cygwin dll and the app that was compiled under it.

Attached is the app compiled under cygwin.
Attached Files
File Type: zip Nelly2pcm.zip (722.8 KB, 90 views)

Last edited by Hachima : 10-21-2007 at 08:13 PM.
Hachima is offline   Reply With Quote
Old 10-21-2007, 08:54 PM   #9 (permalink)
Aulirophile
Ultima Ratio Regum
 
Join Date: Feb 2003
Location: California
Posts: 1,600
-3 Internets
Quote:
Originally Posted by Hachima View Post
Just type 'make' under a Cygwin shell and you are done. Cygwin Information and Installation is a Unix like shell under windows.

If you don't want to install it you can run it from a command prompt just fine with just the cygwin dll and the app that was compiled under it.

Attached is the app compiled under cygwin.
Certainly looks right, tried converting a file and it didn't take though. This thing is very frustrating.

Thanks Hachima.
__________________
"Someday, after mastering the winds, the waves, the tides and gravity, we shall harness for God the energies of love, and then, for a second time in the history of the world, man will have discovered fire."
~Pierre Teilhard de Chardin
Aulirophile is offline   Reply With Quote
Old 10-21-2007, 10:56 PM   #10 (permalink)
Hachima
Registered User
 
Join Date: Oct 2004
Posts: 1,758
Where are you getting you flv files from. I tested it on a sample nelly mopser file from Index of /A-codecs/Nelly_Moser/ and it worked.


If you are trying to rip stuff from a youtube FLV those aren't nellymoser encoded and you need to use a program like this C# one http://www.moitah.net/download/latest/FLV_Extract.zip
Hachima is offline   Reply With Quote
Old 10-21-2007, 11:48 PM   #11 (permalink)
tikkus
Banned
 
Join Date: Nov 2003
Posts: 1,219
-3 Internets
Visual C++ is available for download on Microsoft's website for free, I believe.
tikkus is offline   Reply With Quote
Old 10-22-2007, 09:16 AM   #12 (permalink)
Aulirophile
Ultima Ratio Regum
 
Join Date: Feb 2003
Location: California
Posts: 1,600
-3 Internets
Quote:
Originally Posted by Hachima View Post
Where are you getting you flv files from. I tested it on a sample nelly mopser file from Index of /A-codecs/Nelly_Moser/ and it worked.


If you are trying to rip stuff from a youtube FLV those aren't nellymoser encoded and you need to use a program like this C# one http://www.moitah.net/download/latest/FLV_Extract.zip
Heh, no, normal FLVs use mp3, if only it were that simple. I'm using a couple I found on the net, like the one you're using, and one I did with the free Flash Media Encoder tool from Adobe's site.

I downloaded the one you said you converted and tried it, I get a series of very loud annoying beeps and a lot of nonsense scrolling by in the command prompt, which is the same thing I got with my files. I'm open to the idea that I am doing something wrong.
__________________
"Someday, after mastering the winds, the waves, the tides and gravity, we shall harness for God the energies of love, and then, for a second time in the history of the world, man will have discovered fire."
~Pierre Teilhard de Chardin
Aulirophile is offline   Reply With Quote
Old 10-22-2007, 12:52 PM   #13 (permalink)
Hachima
Registered User
 
Join Date: Oct 2004
Posts: 1,758
Ok, the problem is that program you found doesn't directly output to a wav file. What you have to do is pipe the output into yet another program. The source code gives an example

/*
* to get a wav do something like:
* ./nelly2pcm test.flv | sox -t raw -c 1 -2 -r -s - test.wav
*/

So basically you are stuck installing cygwin and then SoX

Download HTK 3.2.1 & SoX - voxforge.org

has some steps for the sox installation.
Hachima is offline   Reply With Quote
Old 10-22-2007, 01:09 PM   #14 (permalink)
Aulirophile
Ultima Ratio Regum
 
Join Date: Feb 2003
Location: California
Posts: 1,600
-3 Internets
Quote:
Originally Posted by Hachima View Post
Ok, the problem is that program you found doesn't directly output to a wav file. What you have to do is pipe the output into yet another program. The source code gives an example

/*
* to get a wav do something like:
* ./nelly2pcm test.flv | sox -t raw -c 1 -2 -r -s - test.wav
*/

So basically you are stuck installing cygwin and then SoX

Download HTK 3.2.1 & SoX - voxforge.org

has some steps for the sox installation.
It's OK. I ended up compiling the complete ffmpeg.exe from source because they integrated it, and I can convert the files fine now, so proof of concept done. Now I just need to figure out a way to convert a stream in real time and then stream it back out as the new format. Wonder if ffserver would work...
__________________
"Someday, after mastering the winds, the waves, the tides and gravity, we shall harness for God the energies of love, and then, for a second time in the history of the world, man will have discovered fire."
~Pierre Teilhard de Chardin
Aulirophile is offline   Reply With Quote
Old 10-22-2007, 02:59 PM   #15 (permalink)
Aulirophile
Ultima Ratio Regum
 
Join Date: Feb 2003
Location: California
Posts: 1,600
-3 Internets
ffserver is out, considering the number of people who know more then I do and still can't get it to compile on windows....

Anyone ever heard of fobs? It is a JMF wrapper for ffmpeg, the last update was in January so even if I could get it compiled it wouldn't work. Anyone know of anything similar?
__________________
"Someday, after mastering the winds, the waves, the tides and gravity, we shall harness for God the energies of love, and then, for a second time in the history of the world, man will have discovered fire."
~Pierre Teilhard de Chardin
Aulirophile is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
uberguilds network



All times are GMT -7. The time now is 01:08 AM.


Powered by vBulletin® Version 3.6.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 RC6