Live data from Hacker News

Shine: A super fast fixed-point MP3 encoder

github.com

11–20 of 44 posts

Re: Shine: A super fast fixed-point MP3 encoder

#11
post #6

Why do people insist on still using MP3, when better stuff is available? YouTube hasn't used MP3 for years, with good reason. You can use Opus or AAC, even most car systems should work with one of them.

marketing

Can you elaborate? Who markets it and stands to gain from MP3's continued usage?

Re: Shine: A super fast fixed-point MP3 encoder

#12
post #6

Why do people insist on still using MP3, when better stuff is available? YouTube hasn't used MP3 for years, with good reason. You can use Opus or AAC, even most car systems should work with one of them.

If your comment was aimed at shine specifically, here is an excerpt from the bottom of the readme:

This code was dug out from the dusty crates of those times before internet and github. It apparently was created by Gabriel Bouvigne sometime around the end of the 20th century.

Re: Shine: A super fast fixed-point MP3 encoder

#13
post #6

Why do people insist on still using MP3, when better stuff is available? YouTube hasn't used MP3 for years, with good reason. You can use Opus or AAC, even most car systems should work with one of them.

> Why do people insist on still using MP3, when better stuff is available?

First, most people here recognize that this is something from the past.

Second, some people work with older systems which do not support AAC due to patent reasons. This is not about libre software, just the fact that MP3 is easy to support because its patent fees (at the time anyway) are lower than AAC and the circuitry can be placed for tenth of a US cent (which Opus don't have advantage of). There are new standalone players (built into speakers or radios) out there which don't support AAC purely because of patent fees (MP3 no longer have active patents). This makes MP3 a lowest-common denominator of compatibility.

Re: Shine: A super fast fixed-point MP3 encoder

#14
post #6

Why do people insist on still using MP3, when better stuff is available? YouTube hasn't used MP3 for years, with good reason. You can use Opus or AAC, even most car systems should work with one of them.

> Why do people insist on still using MP3, when better stuff is available?

It's patent-free and well supported everywhere by everything.

For example, if you want to use audio on a webpage, and you want it to work *everywhere*, and you don't want to have to encode multiple formats/containers then MP3 is the only option. You can't use Opus because of course Safari (it does support it, but only in a Safari-specific container), and AAC is not support on Firefox in certain situations (because it doesn't actually include an AAC codec and relies on the OS to decode it).

Re: Shine: A super fast fixed-point MP3 encoder

#15
Wow, nice seeing this here. Shine was a life saver when I was building the live broadcast capability of othernet.is.

Our Satellite link was really low bitrate ( less than 20kbps). I wanted to keep as much of that as possible for the data-casting part, which was our core offering. So after experimenting with varioud codecs I narrowed down to using Opus@8kbps as my downlink from the satellite to our custom receivers. The problem was, Opus wasn't natively supported as a codec by most browsers (Safari being a major culprit). In fact after analysis, I found the only format that could be reliably played on every browser (including mobile) is mp3. So the solution I derived was to have the downlink in opus, decode that on the reciver, reencode it to mp3, and stream that out to the users browser. Now the reciever was a very low end linux device - 1GHz Arm6, 256MB ram - that ran the entire stack. Satellite receiver, UI server, filesystem maintenance, Wifi Hotspot (softAP). We also didn't want to load it down with large heat sinks or fans as a design goal. So the cpu could not be loaded to its full capacity. Every other MP3 encoder I tried was too heavy duty, and would cause thermal issues for the SoC. But Shine worked perfectly - total cpu consumption remaining less than 10% for real time decoding (from opus) and encoding (to mp3).

Re: Shine: A super fast fixed-point MP3 encoder

#16
post #4

And for the other direction, there's minimp3: https://github.com/lieff/minimp3 I've used minimp3 to implement a MP3 player on a STM32 microcontroller. Works great -- it has no problem playing a 256kbps file at 80 MHz. :)

I remember times when it wasn’ts problem on much less than that… which is what most people had. Guess I’m just old :)

Re: Shine: A super fast fixed-point MP3 encoder

#17
post #15

Wow, nice seeing this here. Shine was a life saver when I was building the live broadcast capability of othernet.is. Our Satellite link was really low bitrate ( less than 20kbps). I wanted to keep as much of that as possible for the data-casting part, which was our core offering. So after experimenting with varioud codecs I narrowed down to using Opus@8kbps as my downlink from the satellite to our custom receivers. T…

That's interesting you were running at such a low bit-rate.

In 1999 I was the 2nd employee at what became one of the world's biggest music streaming services. I was working from home as we didn't have offices yet, and my broadband got cut off because I hadn't been paid yet and I was broke. I ended up having to re-encode the entire music catalog at 8000bps so I could stream it all over my 9600bps cell connection via the serial port of my Nokia 9000, when I was testing the system.

Re: Shine: A super fast fixed-point MP3 encoder

#18
post #11

Earlier quoted context omitted.

marketing

Can you elaborate? Who markets it and stands to gain from MP3's continued usage?

Well currently it would be royalties from licensing it out (the patent is expired so it's technically not needed anymore). There is also a benefit since consumers are more familiar with the word MP3 as opposed to AAC. However I think marketing in the past is much more relevant. I have heard of "MP3 players", but not "AAC" players.

Re: Shine: A super fast fixed-point MP3 encoder

#19
post #6

Why do people insist on still using MP3, when better stuff is available? YouTube hasn't used MP3 for years, with good reason. You can use Opus or AAC, even most car systems should work with one of them.

> Why do people insist on still using MP3, when better stuff is available? First, most people here recognize that this is something from the past. Second, some people work with older systems which do not support AAC due to patent reasons. This is not about libre software, just the fact that MP3 is easy to support because its patent fees (at the time anyway) are lower than AAC and the circuitry can be placed for tenth…

Note AAC-LC patents expired in 2017 (that's the one iTunes uses); HE-AAC should expire in 2024 (that's the one <128kbps streaming uses).

Re: Shine: A super fast fixed-point MP3 encoder

#20
post #16
post #4

And for the other direction, there's minimp3: https://github.com/lieff/minimp3 I've used minimp3 to implement a MP3 player on a STM32 microcontroller. Works great -- it has no problem playing a 256kbps file at 80 MHz. :)

I remember times when it wasn’ts problem on much less than that… which is what most people had. Guess I’m just old :)

On x86, a Pentium 75 was just about the absolute minimum for playing the common 128 kbps stereo MP3s of the time.

A DX4/100 could just barely do it if you were running a performant MS-DOS player and doing nothing else at the same time (the 486 of course had dramatically worse floating point performance than a Pentium clocked at the same frequency).

Post reply on HN