Re: tremor (libivorbis) on mips

2010-04-27 Thread Stefan Monnier
 I'll be back when they've implemented --enable-tremor in ffmpeg. :-)

But this issue goes a lot further than ffmpeg.
I'm using OpenWRT on my NAS specifically because OpenWRT uses tremor for
its Ogg decoding whenever possible, which lets MPD run just fine
(20-30% CPU on a 266MHz WL-700gE home router).
On my ARM-based but FPU-less cell-phone, Debian's version of Navit is
unusable, so I had to use a home-built version to avoid the use of
floating point.


Stefan


___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers


Re: tremor (libivorbis) on mips

2010-04-23 Thread jscottkasten
--- On Fri, 4/23/10, Reinhard Tartler siret...@tauware.de wrote:

 From: Reinhard Tartler siret...@tauware.de

 (CEST), Thorsten Hirsch wrote:

  decoding ogg on my mips based nas device is slower
 than real-time, so
  it's not really usable here.
  I've already done some research on this and I think
 the reason is that
  the mips cpu has no fpu, so floating point
 calculations are really
  slow. Unfortunately libogg is based on floating point
 calculations.
  But there's also an integer based version of libogg:
 tremor (or is it
  called libivorbis?). It's also available in ffmpeg
 (there's a
  configure parameter --enable-tremor or something
 like that)
 
  And here's my question to you: is it possible to use
 tremor-enabled
  packages on mips instead of the normal ones? Can you
 provide something
  like a ffmpeg (libavcodec) package on mips that
 depends on libivorbis
  instead of libvorbis?

 If the debian-mips porters confirm that there are FPU
 enabled mips
 machines, or they are at least pretty uncommon, then I
 think we should
 add this switch for mips only. CC'ing debian-mips for their
 feedback on
 this.

Here's the deal.  The mips port covers desktop mips systems such as SGI's and 
embedded mips devices such as PDA's.  Desktop mips chips have decent floating 
point units, while embedded mips chips traditionally have not.  Traditionally, 
the desktop mips have usually run big endian, and the embedded have usually 
been little endian.  (I did say usually.)  The mips port has been divided 
into separate mips and mipsel builds.  Thus you may be able to accomplish such 
a change without offending too many people by targeting mipsel for either the 
fast integer library, or possibly using -msoft-float as a general build-option 
for the media libaries.  (The -msoft-float flag causes gcc to emit emulation 
code in the binary itself, thus avoiding the costly overhead of the kernel 
emulation for the missing FPU.)

The newer embedded mips chips sometimes do have traditional FPU, or more likely 
some flavor of SIMD.  I'm not aware for general, widespread support for the 
mips SIMD that is out there yet, but it may happen thanks to the wide spread 
demand for embedded multi-media devices.

Cheers,

-S-


___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers


Re: tremor (libivorbis) on mips

2010-04-23 Thread Geert Uytterhoeven
On Fri, Apr 23, 2010 at 14:32, Reinhard Tartler siret...@tauware.de wrote:
 On Thu, Apr 22, 2010 at 21:47:05 (CEST), Thorsten Hirsch wrote:
 decoding ogg on my mips based nas device is slower than real-time, so
 it's not really usable here.
 I've already done some research on this and I think the reason is that
 the mips cpu has no fpu, so floating point calculations are really
 slow. Unfortunately libogg is based on floating point calculations.
 But there's also an integer based version of libogg: tremor (or is it
 called libivorbis?). It's also available in ffmpeg (there's a
 configure parameter --enable-tremor or something like that)

 And here's my question to you: is it possible to use tremor-enabled
 packages on mips instead of the normal ones? Can you provide something
 like a ffmpeg (libavcodec) package on mips that depends on libivorbis
 instead of libvorbis?

 If the debian-mips porters confirm that there are FPU enabled mips
 machines, or they are at least pretty uncommon, then I think we should
 add this switch for mips only. CC'ing debian-mips for their feedback on
 this.

 I know I can compile everything myself, but I'd like to see a
 beautiful solution with debian packages. :-)

 indeed. Would you mind filing a bug against ffmpeg so that we don't look
 track of this discussion? Please also X-Debbugs-CC: debian-mips.

FWIW, on the RBTX4927, which has a 200 MHz TX4927 (with FPU), mpd
uses ca 25% of the CPU while playing ogg files, in a Debian userland.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say programmer or something like that.
-- Linus Torvalds

___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers


tremor (libivorbis) on mips

2010-04-22 Thread Thorsten Hirsch
Hi,

decoding ogg on my mips based nas device is slower than real-time, so
it's not really usable here.
I've already done some research on this and I think the reason is that
the mips cpu has no fpu, so floating point calculations are really
slow. Unfortunately libogg is based on floating point calculations.
But there's also an integer based version of libogg: tremor (or is it
called libivorbis?). It's also available in ffmpeg (there's a
configure parameter --enable-tremor or something like that)

And here's my question to you: is it possible to use tremor-enabled
packages on mips instead of the normal ones? Can you provide something
like a ffmpeg (libavcodec) package on mips that depends on libivorbis
instead of libvorbis?

I know I can compile everything myself, but I'd like to see a
beautiful solution with debian packages. :-)

Thorsten

___
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-multimedia-maintainers