HydrogenAudio

Lossy Audio Compression => Speech Codecs => Topic started by: Anakunda on 2015-04-01 12:13:26

Title: AMR converter
Post by: Anakunda on 2015-04-01 12:13:26
HI!
Please suggest me good(best) AMR-NB encoder for Windows, I can't fine. Thanks
Title: AMR converter
Post by: klonuo on 2015-04-01 13:42:44
You can try Nokia Multimedia Converter. There is no link to this app as Nokia servers were shut by Microsoft, but you can find it elsewhere. I would guess that any AMR encoder would be at least 10 years old since last update, and last NMC version AFAIK is 2.0 from 2003.

About NMC - setup file is just an archive. It's not fully compatible with modern Windows, so best way to use it would be to open the setup.exe archive, and copy MMConverter_Pro folder and then register MultimediaConverter.dll with regsvr32. This way you'll get GUI exe and CLI exe:

Code: [Select]
C:\Programs\nmm>MMConverterCon.exe


Multimedia Converter 2.0 console version
Copyright (c) 2000-2003 Nokia Corporation

USAGE: MMConverterCon [options]
-i      infile          Input file name (required)
-o      outfile         Output file name without file extension
                        Appropriate file extension will be added
                        by the application.
-st     startTime       Conversion start time in seconds [0 sec]
-sl     sizeLimit       Size limit for the converted file in kB [0 kB]
                        Set to 0 to disable size limit.
-p                      Turn off user interaction [on]
-h                      This message

Video options:
-v      imageSize       Video image size [qcif]
                        qcif    =>      176x144
                        subqcif =>      128x96
-fr     frameRate       Target frame rate in frames per second [15 fps]
-intra  period          Key frame period in seconds [15 sec]
                        Set to 0 to disable INTRA frame update
-br     videoBitRate    Video bit rate in kbps [64 kbps].
                        Must be between 20kbps and 64kbps.
                        128kbps is an exception:
                        You can use 128kbps bit rate, but it will only
                        work with certain phones.

Audio options:
-a      audioType       Audio type[amr]
                        amr     =>      AMR
                        wbamr   =>      Wide Band AMR

-amr    AMRMode         Audio bit rate  [7]
                                AMR             WBAMR
                        0 =>    4.75 kbps       6.60 kbps
                        1 =>    5.15 kbps       8.85 kbps
                        2 =>    5.90 kbps       12.65 kbps
                        3 =>    6.70 kbps       14.25 kbps
                        4 =>    7.40 kbps       15.85 kbps
                        5 =>    7.95 kbps       18.25 kbps
                        6 =>    10.2 kbps       19.85 kbps
                        7 =>    12.2 kbps       23.05 kbps
                        8 =>                    23.85 kbps
Title: AMR converter
Post by: Anakunda on 2015-04-01 14:13:41
Thanks for the backend, I give it a try.
I realized that also ffmpeg can handle amr format. Using this
ffmpeg -i balabolka309604.wav balabolka309604.amr
gives error:
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

Any advice about the missing params?
Title: AMR converter
Post by: klonuo on 2015-04-01 14:32:55
You'll need to preprocess you input file to 8KHz mono
Title: AMR converter
Post by: Fairy on 2015-04-01 14:39:02
Thanks for the backend, I give it a try.
I realized that also ffmpeg can handle amr format. Using this
ffmpeg -i balabolka309604.wav balabolka309604.amr
gives error:
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

Any advice about the missing params?


Isn't it the wrong way around? You should enter the AMR file first and then the WAV I guess? See https://ffmpeg.org/ffmpeg.html (https://ffmpeg.org/ffmpeg.html)

Title: AMR converter
Post by: Anakunda on 2015-04-01 15:17:14
Isn't it the wrong way around? You should enter the AMR file first and then the WAV I guess? See https://ffmpeg.org/ffmpeg.html (https://ffmpeg.org/ffmpeg.html)

I think not (converting from WAV to AMR)

You'll need to preprocess you input file to 8KHz mono

You were riight,
ffmpeg -i balabolka309604.wav -ar 8000 balabolka309604.amr
already does work, the audio quality is terrific however