Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: AmigaMance on March 07, 2007, 07:55:38 AM

Title: .amr files on Amiga?
Post by: AmigaMance on March 07, 2007, 07:55:38 AM
  Hi.
 Anyone knows if there is a way to play amr files on an Amiga, or to just convert them to another format?
Title: Re: .amr files on Amiga?
Post by: AmigaMance on March 08, 2007, 03:51:18 PM
 I'll take this as a "no" :-)
Title: Re: .amr files on Amiga?
Post by: LoadWB on March 08, 2007, 04:01:47 PM
On the PC I use a program from Miksoft to convert AMR to WAV.    IIRC he includes the source code for the process.  I considered trying to compile on Amiga but have not had the time.  Maybe someone else can?

MobileAMRconverter
http://www.miksoft.net/mobileAMRconverter.htm
Title: Re: .amr files on Amiga?
Post by: Colani1200 on March 08, 2007, 04:05:36 PM
You might give mplayer a shot if you have OS 4 or Morphos. Or is there a 3.x version I do not know of?
Title: Re: .amr files on Amiga?
Post by: AmigaMance on March 08, 2007, 04:15:54 PM
@LoadWB
 Let's hope so.

@Colani1200
 There is no OS3.x version but i can run MOS and this format is not supported by the MOS port. I don't know if the OS4 port supports it.
Title: Re: .amr files on Amiga?
Post by: Piru on March 08, 2007, 04:59:19 PM
Here are the steps I did to decode the .amr files:

- Download 26104-520.zip (http://www.3gpp.org/ftp/Specs/2003-09/Rel-5/26_series/26104-520.zip)
- Unarchive the two zips.
- Apply quick big endian fix (http://www.iki.fi/sintonen/temp/26104-520.diff) patch
- build it:
Code: [Select]
make -f makefile.gcc decoder
- use decoder the decode the sample:
Code: [Select]
1> decoder t:test.amr t:test.raw
After this stage you have raw sample file, which can be converted to wav, mp3, or whatever you want. For wav you can use for example:
Code: [Select]
1> sox -r 8000 -w -c 1 -s t:test.raw -r 16000 -w -c 1 t:test.wav
Title: Re: .amr files on Amiga?
Post by: AmigaMance on March 08, 2007, 05:18:16 PM
@Piru
 Thank you but because i haven't compile a single file in my life, i need to ask 2 additional questions:
 How do i apply the patch?
 Which archive i need to download to be able to compile files on OS3.x?
Title: Re: .amr files on Amiga?
Post by: Piru on March 08, 2007, 05:20:49 PM
Hm, perhaps someone with a working m68k gcc setup could grab the src, apply the patch and build the decoder?

(I only have ppc-morphos target in my gcc here)
Title: Re: .amr files on Amiga?
Post by: AmigaMance on March 08, 2007, 05:38:02 PM
 In case there are no volunteers, i have a PPC card so a WOS/PUP/MOS exec would be fine. :-)
Title: Re: .amr files on Amiga?
Post by: Piru on March 08, 2007, 05:39:33 PM
http://www.iki.fi/sintonen/temp/decoder_mos.bin
Title: Re: .amr files on Amiga?
Post by: AmigaMance on March 08, 2007, 06:50:00 PM
 Wow, in just 1 minute! Many thanks. :-D