Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#76613 - 28/02/2002 23:36 Integer OGG libraries available!
CityBeach
new poster

Registered: 09/02/2002
Posts: 15
http://www.xiph.org/archives/vorbis-dev/0125.html

It appears the integer libraries have been released with a BSD-style license. Let's get it working!

Top
#76614 - 01/03/2002 00:38 Re: Integer OGG libraries available! [Re: CityBeach]
Terminator
old hand

Registered: 12/01/2000
Posts: 1079
Loc: Dallas, TX
fullplay=iobjects. What does the simple attribution requirement mean?

Top
#76615 - 01/03/2002 03:49 Re: Integer OGG libraries available! [Re: Terminator]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4175
Loc: Cambridge, England
Ooooooh.

What does the simple attribution requirement mean?

Presumably it's one of those "This product contains an Ogg Vorbis codec written by such-and-such" sort of things.

Peter

PS. url seems to have changed to http://www.xiph.org/archives/vorbis-dev/200202/0125.html

Top
#76616 - 01/03/2002 16:15 Re: Integer OGG libraries available! [Re: CityBeach]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
I just prodded the guy to get his source. And I don't mean to belittle his efforts, but they're very Cygwin-specific, and I don't have a Cygwin environment set up. Does anyone have a Cygwin running and compiling for the empeg? I think that it should be pretty simple to get ogg123 running, just to test the speed, etc. I got the reference ogg123 running (albeit very slowly) with little problem, and the source he's given looks to be replacements for source files in that, so it ought to work.

Sorry about following up on this in General, BTW. If you have anything more to say than just ``I do'', please let's take this over to Programming.

Edit: Hmmm. Nevermind. I just got back in contact with him and it turns out that it's not a pseudo-patch to the reference sources, but a replacement set of sources linked directly in. That is, he had an application that used the reference Ogg Vorbis API and he replaced it with his new playback implementation. Maybe I can get it to work with ogg123 directly without needing the libraries at all.

Regardless, no Cygwin help needed right now....


Edited by wfaulk (01/03/2002 16:55)
_________________________
Bitt Faulk

Top
#76617 - 01/03/2002 19:09 Re: Integer OGG libraries available! [Re: wfaulk]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Cygwin is just the GNU compilers targeted for x86 Windows console mode together with a gigantic abstraction layer DLL.

What does it need in libraries?

- Trevor

Top
#76618 - 01/03/2002 19:38 Re: Integer OGG libraries available! [Re: tman]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Again, nevermind. I was making several incorrect assumptions. I need nothing from Cygwin.
_________________________
Bitt Faulk

Top
#76619 - 01/03/2002 19:46 Re: Integer OGG libraries available! [Re: wfaulk]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Ah okay. Was kind of wondering
Having Ogg Vorbis support would be quite neat but I'd need to actually get around to encoding stuff in that format.

- Trevor

Top
#76620 - 01/03/2002 21:14 Re: Integer OGG libraries available! [Re: CityBeach]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
In case anyone wants to know, I got the libVorbis decoder_example program running on my empeg. It just takes an Ogg Vorbis file as input and puts out a raw PCM file. No output through the empeg itself. Two problems: (1) There's something wrong and it sounds like the volume is being doubled somewhere. Very loud and horrible clipping. This is likely to be a simple bug somewhere and easy to fix. (2) The decoding takes 99% of the length of the file to occur. That is, the 2:45 track I used took about 2:43. And the load was at 0.99 (I ran it three times in a row, redirecting all output to /dev/null, and then checked /proc/loadavg). And that was at the command prompt with nothing else going on. So there's going to need to be more tweaking, most likely. I'd guess that this isn't going to happen as soon as we'd like.
_________________________
Bitt Faulk

Top
#76621 - 01/03/2002 21:35 Re: Integer OGG libraries available! [Re: wfaulk]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
Are you sure you have the integer math version? The referenced post says a 200 MHz StrongARM can do it using only 30% utilization, and as we all know we've got a 220 MHz SA110 on board... So either they're lying, you have a floating-point encoder, or there are some SERIOUS compiler optimizations that are being left out...
_________________________
- Tony C
my empeg stuff

Top
#76622 - 01/03/2002 21:39 Re: Integer OGG libraries available! [Re: tonyc]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14488
Loc: Canada
207.67Mhz StrongARM-1100 onboard.

Top
#76623 - 02/03/2002 02:26 Re: Integer OGG libraries available! [Re: tonyc]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Throwing `-O9' at everything that would take it sped it up to 2:09, but the CPU was still pegged. Notably, a multiplication routine wouldn't take the -O9, and I'm working on that.

Edit: Fixed the two bugs that prevented `-O9' from working on those multiplication routines and it cut another 2 seconds off, but the CPU is still pegged. (Not surprising since they're hand coded ARM assembler anyway.)

Oh, and it's definitely the fixed point version.


Edited by wfaulk (02/03/2002 02:43)
_________________________
Bitt Faulk

Top
#76624 - 02/03/2002 02:42 Re: Integer OGG libraries available! [Re: mlord]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
Er, no, 221MHz.

Current SA1110 parts don't go that fast, but we used the older, faster, 2.0v VCORE DE-S1100-DA parts.

Hugo

Top
#76625 - 02/03/2002 06:31 Re: Integer OGG libraries available! [Re: altman]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14488
Loc: Canada
Oh, okay. I guess /proc/cpuinfo is slightly out of calibration, then.

Cheers

Top
#76626 - 02/03/2002 08:06 Re: Integer OGG libraries available! [Re: wfaulk]
tonyc
carpal tunnel

Registered: 27/06/1999
Posts: 7058
Loc: Pittsburgh, PA
So they're just lying about the 30% thing?
_________________________
- Tony C
my empeg stuff

Top
#76627 - 02/03/2002 11:59 Re: Integer OGG libraries available! [Re: tonyc]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
Not necessarily. Their compiler might be doing a better job of optimization than mine. There's still a bug to work out, as the sound quality is awful, and that might have some impact. I don't know if decoder_example might be remarkably unoptimized. I should probably get someone else to compile it and see if it runs faster for them.

Note that I got ogg123 running on the empeg before using the reference floating point Ogg libraries and decoding took something on the order of 3 times real track time, so this is a vast improvement, regardless.
_________________________
Bitt Faulk

Top
#76628 - 03/03/2002 00:20 Re: Integer OGG libraries available! [Re: altman]
JerryW
new poster

Registered: 23/12/2001
Posts: 23
What kind of other differences are there between the SA1110 and the DE-S1100-DA? Is it just voltage or does the SA1110 have more arithmetic units or something like that?

Top
#76629 - 03/03/2002 00:39 Re: Integer OGG libraries available! [Re: wfaulk]
TheAmigo
enthusiast

Registered: 14/09/2000
Posts: 363
...but the CPU was still pegged.

If you're letting it run full-speed and outputting to /dev/null for speed test, the CPU will always be pegged. But if they get 30% CPU usage, that should be (percentage of real-time playback) x (average CPU usage during decode) = 30%. So it should be finishing in 0:50. Even so, with your -O9 finishing in 2:09, that's 78% (a pretty good start).
_________________________
--The Amigo

Top
#76630 - 03/03/2002 08:35 Re: Integer OGG libraries available! [Re: mlord]
drakino
carpal tunnel

Registered: 08/06/1999
Posts: 7868
Oh, okay. I guess /proc/cpuinfo is slightly out of calibration, then.

Just a shot in the dark here from a Linux user, but not a programmer. Isn't the correct CPU speed important for the kernel to have an accurate clock for timing? Could this be related at all to the lockups being tracked down in 2.0?

Top
#76631 - 03/03/2002 09:00 Re: Integer OGG libraries available! [Re: drakino]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14488
Loc: Canada
>Isn't the correct CPU speed important for the kernel

Yes, but mostly in the drivers. And 10% probably won't break anything. But one never knows..

Top
#76632 - 03/03/2002 17:16 Re: Integer OGG libraries available! [Re: JerryW]
altman
carpal tunnel

Registered: 19/05/1999
Posts: 3457
Loc: Palo Alto, CA
The DE-S1100-DA is the intel part code for the 221MHz SA1100.

The SA1110 is in BGA package only, has SDRAM and a few bugfixes+ some small addons like faster cycle time options for I/O. There are no differences in the CPU core, just peripherals.

The Rio Central uses the SA1110.

Hugo

Top
#76633 - 03/03/2002 21:28 Re: Integer OGG libraries available! [Re: wfaulk]
Shonky
pooh-bah

Registered: 12/01/2002
Posts: 2009
Loc: Brisbane, Australia
Hey Bitt,

Would you mind sending me what you have done so far. I emailed that Dan Conti guy and he pointed me to the sourceforge web site http://ivdev.sourceforge.net.

But all this consists of is source files. There is no makefile or even a main() routine. I had a quick crack at trying to get something together with no real luck

Thanks,
_________________________
Christian
#40104192 120Gb (no longer in my E36 M3, won't fit the E46 M3)

Top
#76634 - 03/03/2002 21:38 Re: Integer OGG libraries available! [Re: Shonky]
wfaulk
carpal tunnel

Registered: 25/12/2000
Posts: 16706
Loc: Raleigh, NC US
I'm taking this over to the Programming forum.
_________________________
Bitt Faulk

Top
#76635 - 04/03/2002 13:59 Re: Integer OGG libraries available! [Re: wfaulk]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31584
Loc: Seattle, WA
Bitt's right, take this over to the Programming forum. Locking this thread now.
_________________________
Tony Fabris

Top