Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Any integer lossless encoder to fit "iRockbox"? (Read 24798 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Any integer lossless encoder to fit "iRockbox"?

Hello,
As some may know the Rockbox iRiverport for iHP1xx is on his way thanks to LinusM releasing his precious "bootloader"...

Actually the team is concentrating his work on the AUDIO part... The great priority of course is decoding (especially MP3 even if a lot of audio codecs are in the TODOlist!)

Anyway the team have made some searchs for encoding part and they complaining they don't find much things that seems suitable for the iRiverport since they need INTEGER encoders that won't overdrive the iHP processor...

So i've asked on the HA "rockbox iRiverport" thread for LOSSY integer encoder with Open-source license of course (check HERE)...

As there is a lossless section i make this thread to ask the same thing but for an interger lossless open source encoder!

I will be very kind of you to put all information you know about such an encoder!
Thanks,

Tanguy

 

Any integer lossless encoder to fit "iRockbox"?

Reply #1
All lossless encoders use integer math only. They can't risk using floats and introduce rounding errors to the audio streams.

I believe WavPack would be an excellent choice, because it's a very fast encoder (not using any x86-only ASM tricks like Monkey's) and the lossy mode would be perfect for people wanting to encode smaller files (because of space constraints). No other high quality lossy codec is freely available in an integer-only implementation, AFAIK.

Any integer lossless encoder to fit "iRockbox"?

Reply #2
Quote
All lossless encoders use integer math only. They can't risk using floats and introduce rounding errors to the audio streams.

I believe WavPack would be an excellent choice, because it's a very fast encoder (not using any x86-only ASM tricks like Monkey's) and the lossy mode would be perfect for people wanting to encode smaller files (because of space constraints). No other high quality lossy codec is freely available in an integer-only implementation, AFAIK.
[a href="index.php?act=findpost&pid=272945"][{POST_SNAPBACK}][/a]
Thanks Roberto
I'm gonna transmit this and your answer in the other thread to Rockbox...

Any integer lossless encoder to fit "iRockbox"?

Reply #3
Quote
No other high quality lossy codec is freely available in an integer-only implementation, AFAIK.
[a href="index.php?act=findpost&pid=272945"][{POST_SNAPBACK}][/a]


What does that make Tremor then? I thought LGPL was free too? are you just talking about it terms lossless/lossy hybrid?
budding I.T professional

Any integer lossless encoder to fit "iRockbox"?

Reply #4
Quote
What does that make Tremor then? I thought LGPL was free too? are you just talking about it terms lossless/lossy hybrid?
[a href="index.php?act=findpost&pid=272986"][{POST_SNAPBACK}][/a]


We are talking about encoders, sire

Any integer lossless encoder to fit "iRockbox"?

Reply #5
Quote
We are talking about encoders, sire


Ahh.. Ok master I apologize read it too fast
budding I.T professional

Any integer lossless encoder to fit "iRockbox"?

Reply #6
Quote
Quote
We are talking about encoders, sire


Ahh.. Ok master I apologize read it too fast
[a href="index.php?act=findpost&pid=272989"][{POST_SNAPBACK}][/a]

Eh eh you're not the only one...

Any integer lossless encoder to fit "iRockbox"?

Reply #7
It'd also be nice to point the rockbox team to the Which is the best lossless codec thread, just in case they're unsure of wavpack's excellent capabilities. Maybe they can do something cool with the hybrid mode.

Any integer lossless encoder to fit "iRockbox"?

Reply #8
(minor correction, lossless encoders can use floating point math.  e.g. libFLAC uses floating point in the LPC analysis stage.)

the latest release of libFLAC has a compiler define (FLAC__INTEGER_ONLY_LIBRARY) that builds the whole library (decoder, encoder, etc.) with integer only.

Josh

Any integer lossless encoder to fit "iRockbox"?

Reply #9
Oops. I stand corrected. 

Any integer lossless encoder to fit "iRockbox"?

Reply #10
Quote
(minor correction, lossless encoders can use floating point math.  e.g. libFLAC uses floating point in the LPC analysis stage.)

the latest release of libFLAC has a compiler define (FLAC__INTEGER_ONLY_LIBRARY) that builds the whole library (decoder, encoder, etc.) with integer only.

Josh
[a href="index.php?act=findpost&pid=273053"][{POST_SNAPBACK}][/a]

Hi,
Thanks for these correction... in fact seems that for now the Rbx team get info directly here in the HA threads... It's the best way... So there is no need for me to report them any new information..  I guess they will subscribe to HA board when they will encounter big issue and would contact any precise member or ask something to community...

BTW I'm very thankfull to every HA people...
Best regards,
Tanguy

PS: I'll check the Rbx HA thread to add any new infomation if it appears necessary...  in fac I'm gonna add something NOW (latest progress) so stay tuned...

Any integer lossless encoder to fit "iRockbox"?

Reply #11
Hi!
Actually there is a really fast free (non-commercial) mp3 encoder. I tested it on Intel XScale PXA255 @400MHz, 100MHz 32bit SDRAM. This processor is quite common in PDA's, and has no floating point unit! It took 40sec to compress 60sec audio, so it works real time.
Input: 44100Hz 16bit stereo
Output: 128kbps 44.1KHz mp3
The encoder is the sample mp3 encoder for the Intel Performance Primitives (IPP) library. It can be freely downloaded from intel's website!

Any integer lossless encoder to fit "iRockbox"?

Reply #12
Quote
Hi!
Actually there is a really fast free (non-commercial) mp3 encoder. I tested it on Intel XScale PXA255 @400MHz, 100MHz 32bit SDRAM. This processor is quite common in PDA's, and has no floating point unit! It took 40sec to compress 60sec audio, so it works real time.
Input: 44100Hz 16bit stereo
Output: 128kbps 44.1KHz mp3
The encoder is the sample mp3 encoder for the Intel Performance Primitives (IPP) library. It can be freely downloaded from intel's website!
[a href="index.php?act=findpost&pid=289969"][{POST_SNAPBACK}][/a]

Hi Twinsen,
Thanks for the notice, i'm gonna relay this to Rockbox immediatly.. Thanks a lot...
Best regards,
Tanguy

Any integer lossless encoder to fit "iRockbox"?

Reply #13
Quote
The encoder is the sample mp3 encoder for the Intel Performance Primitives (IPP) library. It can be freely downloaded from intel's website!
[a href="index.php?act=findpost&pid=289969"][{POST_SNAPBACK}][/a]


I'm afraid that encoder is incompatible with the GPL, therefore it would conflict with the rest of the RockBox code.

Also, I would suspect it's not optimized at all for M68K.

Any integer lossless encoder to fit "iRockbox"?

Reply #14
Quote
Quote
The encoder is the sample mp3 encoder for the Intel Performance Primitives (IPP) library. It can be freely downloaded from intel's website!
[a href="index.php?act=findpost&pid=289969"][{POST_SNAPBACK}][/a]


I'm afraid that encoder is incompatible with the GPL, therefore it would conflict with the rest of the RockBox code.

Also, I would suspect it's not optimized at all for M68K.
[a href="index.php?act=findpost&pid=289992"][{POST_SNAPBACK}][/a]

MMM indeed if it isn't GPL compatible it's a fatal issue..

The non optimisation should not be a real matter since there is no mp3 integer encoder optimized for M68k...

Cheers Roberto

Any integer lossless encoder to fit "iRockbox"?

Reply #15
Quote
MMM indeed if it isn't GPL compatible it's a fatal issue..
[{POST_SNAPBACK}][/a]


Intel is delightfully vague on that subject

[a href="http://www.intel.com/software/products/noncom/faq.htm]http://www.intel.com/software/products/noncom/faq.htm[/url]

Quote
Q. If I use the non-commercial product to build my product, can I open source it?
A. The FAQ for GNU GPL has information related to this question. Please refer to the GNU website "Frequently Asked Questions about the GNU GPL" at: http://www.gnu.org/licenses/gpl-faq.html For further clarification, please contact the Free Software Foundation at: [...]

Any integer lossless encoder to fit "iRockbox"?

Reply #16
Eh eh very sympathetic as a perfect "langue-de-bois" exemple!


Any integer lossless encoder to fit "iRockbox"?

Reply #17
Quote
Hi!
Actually there is a really fast free (non-commercial) mp3 encoder. I tested it on Intel XScale PXA255 @400MHz, 100MHz 32bit SDRAM. This processor is quite common in PDA's, and has no floating point unit! It took 40sec to compress 60sec audio, so it works real time.
Input: 44100Hz 16bit stereo
Output: 128kbps 44.1KHz mp3
The encoder is the sample mp3 encoder for the Intel Performance Primitives (IPP) library. It can be freely downloaded from intel's website!
[a href="index.php?act=findpost&pid=289969"][{POST_SNAPBACK}][/a]


Twinsen,
Thanks for this performance data.  I had recently built the IPP encoder sample and tested at 44.1Khz, 16 bit stereo in and 192kbps out.  Performance on a very similar PDA was about 4x SLOWER than real time so I put the IPP encoder sample on the sidelines. I am using eVC4.1 with all optimization turned on. What compiler did you use and any special compiler switches??  Thanks