English Amiga Board


Go Back   English Amiga Board > Support > support.Apps

 
 
Thread Tools
Old 09 July 2015, 02:22   #1
gulliver
BoingBagged
 
gulliver's Avatar
 
Join Date: Aug 2007
Location: The South of nowhere
Age: 46
Posts: 2,358
MP3 on a 68000 Amiga

I understand that playing an mp3 with a 68000 Amiga sounds unreasonably mad.

But in this age of fast FPGAs and Minimig reimplementations, not to mention todays insanely fast 68000 accelerators, wouldnt it be reasonable to have a software mp3 playback solution for 68000?

For starters mpega.library seems to be coded for 68020 and up, is there someone willing to recompile it for a plain 68000?
gulliver is offline  
Old 09 July 2015, 02:43   #2
Retrofan
Ruler of the Universe
 
Retrofan's Avatar
 
Join Date: Mar 2010
Location: Lanzarote/Spain
Posts: 6,185
You can use a MAS player with a 68000 http://amigakit.leamancomputing.com/...oducts_id=1078
Retrofan is offline  
Old 09 July 2015, 02:56   #3
gulliver
BoingBagged
 
gulliver's Avatar
 
Join Date: Aug 2007
Location: The South of nowhere
Age: 46
Posts: 2,358
I was talking about a software solution, not a hardware based one.
gulliver is offline  
Old 09 July 2015, 03:02   #4
Retrofan
Ruler of the Universe
 
Retrofan's Avatar
 
Join Date: Mar 2010
Location: Lanzarote/Spain
Posts: 6,185
Ok. Answer: But that's impossible to run without a FPGA accelerator (hardware too) or WinUAE emulation. Do you want it only to work under emulation?

Last edited by Retrofan; 09 July 2015 at 03:07.
Retrofan is offline  
Old 09 July 2015, 06:02   #5
gulliver
BoingBagged
 
gulliver's Avatar
 
Join Date: Aug 2007
Location: The South of nowhere
Age: 46
Posts: 2,358
Simple answer: we have the Chamaleon, MiST, FPGAArcade, Minimig, etc that are all 68000 capable and pretty fast (and all have problems with 68020 cores).

The same goes with Amiga accelerators: we have the Vampire, and there seems to be a handfull of nice and insanely fast, 68000 accelerator projects going on.

So the word impossible is not the right one. There is lot of 68000 hardware that would benefit from it.
gulliver is offline  
Old 09 July 2015, 12:42   #6
Daedalus
Registered User
 
Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,336
There's no reason why it can't be done, but given that mpega.library etc. are optimised for the 020+, there's probably a fair bit of work involved in making it 68000 compatible so it would be more than a simple recompile. But if 68000-alike machines appear and are fast enough to benefit, I'm sure someone will make it happen. Just bear in mind that an 060 was required to play reasonable quality MP3s properly, so you'll need a 68000 solution capable of matching that speed (75 MIPS) which would mean an accelerator equivalent to a 68000 running at around 500MHz. I'm not sure whether the FPGA solutions have reached that yet, but I'm sure they will given time.
Daedalus is offline  
Old 09 July 2015, 18:44   #7
pandy71
Registered User
 
Join Date: Jun 2010
Location: PL?
Posts: 2,749
Quote:
Originally Posted by gulliver View Post
I was talking about a software solution, not a hardware based one.
Nope - you talking about HW solution (or trough software that run on specialized HW or on accelerator).
To decode MP3 you need somewhere usually between 10 - 30MIPS (depend on CPU/system architecture).
pandy71 is offline  
Old 09 July 2015, 18:51   #8
gulliver
BoingBagged
 
gulliver's Avatar
 
Join Date: Aug 2007
Location: The South of nowhere
Age: 46
Posts: 2,358
Many Amiga users have played mp3 (and made youtube videos about it) with just 10 MIPS (68030 at 50Mhz), of course, with not the best of qualities. But it indeed works. As an example, the MiST Amiga core goes beyond 10 MIPS, the same happens with the FPGAArcade, so they are ready to go.
gulliver is offline  
Old 09 July 2015, 19:15   #9
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,754
WAV is much better.
Thorham is offline  
Old 09 July 2015, 19:33   #10
gulliver
BoingBagged
 
gulliver's Avatar
 
Join Date: Aug 2007
Location: The South of nowhere
Age: 46
Posts: 2,358
Quote:
Originally Posted by Thorham View Post
WAV is much better.
Not really, as it occupies a lot of HDD space and keeps the disk interface pretty busy. It is much better in that it requires less cpu resources. But then the average computer user moved to mp3 long ago, and for a good reason.
gulliver is offline  
Old 09 July 2015, 20:16   #11
matthey
Banned
 
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
Quote:
Originally Posted by gulliver View Post
Many Amiga users have played mp3 (and made youtube videos about it) with just 10 MIPS (68030 at 50Mhz), of course, with not the best of qualities. But it indeed works. As an example, the MiST Amiga core goes beyond 10 MIPS, the same happens with the FPGAArcade, so they are ready to go.
Both Mist and FPGA Arcade have 68020 cores. Meynaf's 68020 mpega.library probably uses a minimum of double memory indirect addressing modes and bitfield instructions which could cause problems but should still benefit from more common 68020 ISA enhancements providing a performance increase and better code density. Compiling with vbcc for the 68020 or above avoids most double memory indirect addressing modes and bitfield instructions as well. The 68020 ISA provides some very nice features including misaligned addressing support, index register scaling, long branches and wider multiply and divide besides the less common problematic stuff. It should be possible to compile C code for the 68000 but it will be slow without 68020 or assembler enhancements. The best solution is to debug these "supposedly" 68020 compatible cores.
matthey is offline  
Old 10 July 2015, 07:04   #12
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,754
Quote:
Originally Posted by gulliver View Post
Not really, as it occupies a lot of HDD space
Who cares? I have an enormous amount of space on my Amiga hard disk, and the only data that's large that is actually usable is audio data.

Quote:
Originally Posted by gulliver View Post
and keeps the disk interface pretty busy.
28 Khz 16 bit stereo WAVs use up 112Kb of bandwidth per second. That's not busy.

Quote:
Originally Posted by gulliver View Post
It is much better in that it requires less cpu resources.
Exactly, especially important when you want good quality on an Amiga with a 50 mhz 68030.

Quote:
Originally Posted by gulliver View Post
But then the average computer user moved to mp3 long ago, and for a good reason.
Yeah, but we're not exactly average computer users, are we?

Bottom line: WAV is best for computers with 68K CPUs with a large hard disk. Native would actually be even better, but what outputs native Amiga 14 bit audio?

Last edited by Thorham; 10 July 2015 at 10:13.
Thorham is offline  
Old 10 July 2015, 09:48   #13
GhstWlf
Registered User
 
Join Date: May 2015
Location: Sweden
Posts: 48
If I remember correctly, one of the u-law or a-law codecs outputs 14-bit samples. It also compresses the sound a bit.

Edit: u-law has 14-bit samples, a-law has 13-bit samples Wikipedia on G.711 standard

Last edited by GhstWlf; 10 July 2015 at 10:00.
GhstWlf is offline  
Old 10 July 2015, 10:12   #14
Thorham
Computer Nerd
 
Thorham's Avatar
 
Join Date: Sep 2007
Location: Rotterdam/Netherlands
Age: 47
Posts: 3,754
Quote:
Originally Posted by GhstWlf View Post
If I remember correctly, one of the u-law or a-law codecs outputs 14-bit samples. It also compresses the sound a bit.

Edit: u-law has 14-bit samples, a-law has 13-bit samples Wikipedia on G.711 standard
The sample rate is only 8000 hertz, though. You'd also have to hope something actually plays it, preferably Hippoplayer or Delitracker.
Thorham is offline  
Old 10 July 2015, 10:51   #15
Retrofan
Ruler of the Universe
 
Retrofan's Avatar
 
Join Date: Mar 2010
Location: Lanzarote/Spain
Posts: 6,185
Certainly the mp3 offers better sizes. For example I've got some mp3 songs converted to aiff (another nice format for the amiga) and while "Whodini -I need a break" takes 53,5Mb for aiff, it only takes 12,1Mb for mp3.
Retrofan is offline  
Old 10 July 2015, 13:31   #16
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,344
Install a server on your NAS / PC with an MP3->WAV converter? Stream to the amiga over ethernet?
alexh is offline  
Old 10 July 2015, 14:52   #17
daxb
Registered User
 
Join Date: Oct 2009
Location: Germany
Posts: 3,303
Of course it depends on what do you want/have and how to handle. In the `90 mp3 was usefull because of limited available drive space. From `00 on that doesn`t matter. Without loss of quality you need 060 cpu. On 040/40 you have to reduce qualtity nevertheless with 100% cpu usage. With 030 it doesn`t become better. So, if you really need a 500 MHz 68000 then I doubt that it is useful.

Using wav/aiff/... works already and at least an accelerated 68000 should be fast enough to play it from HD. Filesize could be an issue but that depends on how often do you move it around and the used system.

Overall, I guess it isn`t worth the effort if you have alternatives. Modern FPGA stuff should at least have 020+ core. IMHO it makes more sense to have a super fast 020/040/060 then a super fast 68000.
daxb is offline  
Old 10 July 2015, 21:04   #18
GhstWlf
Registered User
 
Join Date: May 2015
Location: Sweden
Posts: 48
Quote:
Originally Posted by Thorham View Post
The sample rate is only 8000 hertz, though. You'd also have to hope something actually plays it, preferably Hippoplayer or Delitracker.
A-law and U-law is compression on the dynamic range not time or frequency. The compression is applied on every sample individually.
That means that they can have any sample rate you want, as long as the playback software/hardware can handle it.
GhstWlf is offline  
Old 10 July 2015, 21:12   #19
GhstWlf
Registered User
 
Join Date: May 2015
Location: Sweden
Posts: 48
Quote:
Originally Posted by gulliver View Post
I understand that playing an mp3 with a 68000 Amiga sounds unreasonably mad.

But in this age of fast FPGAs and Minimig reimplementations, not to mention todays insanely fast 68000 accelerators, wouldnt it be reasonable to have a software mp3 playback solution for 68000?

For starters mpega.library seems to be coded for 68020 and up, is there someone willing to recompile it for a plain 68000?
What are you going to use it for? Play your mp3s or develop some software?
GhstWlf is offline  
Old 10 July 2015, 22:07   #20
gulliver
BoingBagged
 
gulliver's Avatar
 
Join Date: Aug 2007
Location: The South of nowhere
Age: 46
Posts: 2,358
Quote:
Originally Posted by GhstWlf View Post
What are you going to use it for? Play your mp3s or develop some software?
To play mp3. There are couple of Amiga sound players that could work with a 68000 if just mpega.library was available for 68000.

I am okay anyway if someone wants to build a new player for 68000 altogether (one that doesnt require mpega.library), but this route is probably more unlikely to occur. It is just that mpega.library widens up the possibilities for both devs and users.

Of course it would be better if fpga 68020 cores out there worked, but reality is that they still fail here and there, which prevents them to be stable enough for daily usage. On the contrary, 68000 cores are rock steady.
gulliver is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
mp3@64 in amiga 1200d CU_AMiGA support.Hardware 8 10 April 2008 05:56
Amiga MP3 stuff Galahad/FLT request.Modules 25 14 October 2007 12:30
For Sale: MP3@64 (Clockport MP3 player!) Smiley MarketPlace 6 18 March 2007 01:13
Amiga MP3 Player Zetr0 Amiga scene 8 11 January 2007 09:46
MP3@64 can it be used on a clockport on an Amiga? keropi support.Hardware 6 24 August 2006 23:13

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:15.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.09678 seconds with 13 queries