Author Topic: Can't convert MP3 to AMR resolved  (Read 2073 times)

Offline GOTHBITES

  • Hero Member
  • *****
  • Posts: 749
  • Oh I get it now. Windows 8 is a Bigger Sham
Can't convert MP3 to AMR resolved
« on: January 27, 2010, 03:51:01 PM »
hello

Here is an issue with the software B4 there was an update i could convert mp3 to amr but now i can't do  it now and so far there is nothing that will do the job.

here is the Log of the last try
> Command executed:
"/opt/mmc/ffmpeg" -y -vn -i "/opt/mmc/" -y -acodec libopencore_amrnb -ac 1 -ar 8000 -ab 7.4k -f amr -map_meta_data "/home/Daves/Desktop/.amr":"/opt/mmc/"  "/home/Daves/Desktop/.amr"

>> Result:
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=/usr --enable-shared --libdir=/usr/lib --shlibdir=/usr/lib --incdir=/usr/include --enable-postproc --enable-gpl --enable-pthreads --enable-libtheora --enable-libvorbis --enable-x11grab --disable-debug --enable-swscale --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-libx264 --enable-libxvid --enable-nonfree --enable-libamr_nb --enable-libamr_wb
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Jun  2 2009 20:09:15, gcc: 4.1.1 20060724 (prerelease) (4.1.1-4pclos2007)
/opt/mmc/: Unknown format
----------------------------


>> Command executed:
"/opt/mmc/ffmpeg" -y -vn -i "/home/Daves/Desktop/Shinedown - I Dare You.flac" -y -acodec libopencore_amrnb -ac 1 -ar 8000 -ab 7.4k -f amr -map_meta_data "/home/Daves/Desktop/Shinedown - I Dare You.amr":"/home/Daves/Desktop/Shinedown - I Dare You.flac"  "/home/Daves/Desktop/Shinedown - I Dare You.amr"

>> Result:
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=/usr --enable-shared --libdir=/usr/lib --shlibdir=/usr/lib --incdir=/usr/include --enable-postproc --enable-gpl --enable-pthreads --enable-libtheora --enable-libvorbis --enable-x11grab --disable-debug --enable-swscale --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-libx264 --enable-libxvid --enable-nonfree --enable-libamr_nb --enable-libamr_wb
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Jun  2 2009 20:09:15, gcc: 4.1.1 20060724 (prerelease) (4.1.1-4pclos2007)
Input #0, flac, from '/home/Daves/Desktop/Shinedown - I Dare You.flac':
  Duration: N/A, bitrate: N/A
    Stream #0.0: Audio: flac, 44100 Hz, stereo, s16
Unknown encoder 'libopencore_amrnb'
----------------------------

Thanks for any help
« Last Edit: March 26, 2013, 02:32:19 PM by GOTHBITES »
UPDATED!! ASUS U52F Notebook i5 CPU,  4Gb ram, 640Gb Hard drive Dual-Boot Win 7Pro/KDE 4 3.2.18-pclos2.bfs

ASUS U50F notebook i3 4Gb Ram. 500 GB hard drive dual-boot Win 7/ KDE 3.2.18-pclos2.pae.bfs    Of course thats just my opinion I could wrong

Offline coffeetime

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3426
  • Send me an Angel
Re: Can't convert MP3 to AMR
« Reply #1 on: January 27, 2010, 03:56:31 PM »
MP3->AMR

Code: [Select]
ffmpeg -i origin.mp3 -ac 1 -ab 12 -ar 8000 destination.amr
PCLinuxOS e17 Club member/e17 video/Wifi problems?
those who complain rarely read. those who read rarely complain
 

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: Can't convert MP3 to AMR
« Reply #2 on: January 27, 2010, 03:59:02 PM »
why do you need a amr sound file?

last time i had this format i converted it to mp3 because this format is not that compatible
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline coffeetime

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3426
  • Send me an Angel
Re: Can't convert MP3 to AMR
« Reply #3 on: January 27, 2010, 04:10:24 PM »
T6,

AFAIK, AMR is for mobile phones
PCLinuxOS e17 Club member/e17 video/Wifi problems?
those who complain rarely read. those who read rarely complain
 

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: Can't convert MP3 to AMR
« Reply #4 on: January 27, 2010, 04:15:28 PM »
i know but for very old phones and most of those, you can't upload files, my old sonyericcson used this format if i remember correctly that is why i ask why the need to convert from mp3 to amr
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline coffeetime

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 3426
  • Send me an Angel
Re: Can't convert MP3 to AMR
« Reply #5 on: January 27, 2010, 04:19:11 PM »
Well, the OP needs to convert it to AMR. Let's all learn :D ;)
PCLinuxOS e17 Club member/e17 video/Wifi problems?
those who complain rarely read. those who read rarely complain
 

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Can't convert MP3 to AMR
« Reply #6 on: January 27, 2010, 05:35:04 PM »
Quote
.... top/Shinedown - I Dare You.flac" -y -acodec libopencore_amrnb -ac 1 -ar 8000 ....

Why are you specifying   libopencore_amrnb  ?

Drop it and see what happens.

I do not see that mentioned in the ffmpeg output, so I guess ffmpeg was not built with this enabled ......  in fact it seems quite clear that ffmpeg was built with 
Quote
--enable-libamr_nb --enable-libamr_wb

You could try  libamr_nb  in its place if you wish .....

Offline GOTHBITES

  • Hero Member
  • *****
  • Posts: 749
  • Oh I get it now. Windows 8 is a Bigger Sham
Re: Can't convert MP3 to AMR
« Reply #7 on: January 27, 2010, 08:05:30 PM »
Quote
.... top/Shinedown - I Dare You.flac" -y -acodec libopencore_amrnb -ac 1 -ar 8000 ....

Why are you specifying   libopencore_amrnb  ?

Drop it and see what happens.

I do not see that mentioned in the ffmpeg output, so I guess ffmpeg was not built with this enabled ......  in fact it seems quite clear that ffmpeg was built with 
Quote
--enable-libamr_nb --enable-libamr_wb

You could try  libamr_nb  in its place if you wish .....

OK I see what your looking at but its not my doing. Thats  whats on the choice of the software MMC (mobile media center )it says mobile audio-AMr-NB audio Can't change the settings yet   and that was after it was upgraded that i noticed that .

And T6 the reason is exactly what  coffeetime mentioned its for a recent mobile phone a Motorola i465 it can only play amr files and just learned after i posted this it can play mp3 if only its in mono and 8 bits so I have to seriously downgrade any mp3 file to play and amr is the first that worked when i tried it.

UPDATED!! ASUS U52F Notebook i5 CPU,  4Gb ram, 640Gb Hard drive Dual-Boot Win 7Pro/KDE 4 3.2.18-pclos2.bfs

ASUS U50F notebook i3 4Gb Ram. 500 GB hard drive dual-boot Win 7/ KDE 3.2.18-pclos2.pae.bfs    Of course thats just my opinion I could wrong

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: Can't convert MP3 to AMR
« Reply #8 on: January 27, 2010, 08:49:18 PM »
recent?

if you need those settings on mp3, audacity can do that
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Can't convert MP3 to AMR
« Reply #9 on: January 28, 2010, 03:43:46 AM »

OK I see what your looking at but its not my doing. Thats  whats on the choice of the software MMC (mobile media center )it says mobile audio-AMr-NB audio Can't change the settings yet   and that was after it was upgraded that i noticed that .

Use the command from a terminal with the codec changed to suit what is installed and see if it functions for you ....

ffmpeg" -y -vn -i "/home/Daves/Desktop/Shinedown - I Dare You.flac" -y -acodec libamr_nb -ac 1 -ar 8000 -ab 7.4k -f amr -map_meta_data "/home/Daves/Desktop/Shinedown - I Dare You.amr"

I suspect this would work ......

As I understand it the libopenamr codecs will be included in a future updates of ffmpeg in PCLOS, but at present the other codecs are there for use, as in the command above.

regards.

Offline GOTHBITES

  • Hero Member
  • *****
  • Posts: 749
  • Oh I get it now. Windows 8 is a Bigger Sham
Re: Can't convert MP3 to AMR
« Reply #10 on: January 29, 2010, 01:28:03 PM »

OK I see what your looking at but its not my doing. Thats  whats on the choice of the software MMC (mobile media center )it says mobile audio-AMr-NB audio Can't change the settings yet   and that was after it was upgraded that i noticed that .

Use the command from a terminal with the codec changed to suit what is installed and see if it functions for you ....

ffmpeg" -y -vn -i "/home/Daves/Desktop/Shinedown - I Dare You.flac" -y -acodec libamr_nb -ac 1 -ar 8000 -ab 7.4k -f amr -map_meta_data "/home/Daves/Desktop/Shinedown - I Dare You.amr"

I suspect this would work ......

As I understand it the libopenamr codecs will be included in a future updates of ffmpeg in PCLOS, but at present the other codecs are there for use, as in the command above.

regards.

Ok now i just tried no go yet tried it two ways.  now have you tried on your system to see if its just me

again thank you

and T6
"
if you need those settings on mp3, audacity can do that"

I have DL Audacity and Pearl  as a alternative and I couldn't seem to find to get it to do as easily as MMC does
UPDATED!! ASUS U52F Notebook i5 CPU,  4Gb ram, 640Gb Hard drive Dual-Boot Win 7Pro/KDE 4 3.2.18-pclos2.bfs

ASUS U50F notebook i3 4Gb Ram. 500 GB hard drive dual-boot Win 7/ KDE 3.2.18-pclos2.pae.bfs    Of course thats just my opinion I could wrong

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Can't convert MP3 to AMR
« Reply #11 on: January 29, 2010, 01:58:28 PM »
This worked here

Code: [Select]
ffmpeg -y -vn -i "/home/user/Development/audio.mp3" -y -acodec libamr_nb -ac 1 -ar 8000 -ab 7.4k -f amr -map_meta_data  -o "/home/user/Development/audio.amr"
as you can see I used an .mp3 file to convert from.

Offline GOTHBITES

  • Hero Member
  • *****
  • Posts: 749
  • Oh I get it now. Windows 8 is a Bigger Sham
Re: Can't convert MP3 to AMR
« Reply #12 on: January 29, 2010, 03:31:01 PM »
This worked here

Code: [Select]
ffmpeg -y -vn -i "/home/user/Development/audio.mp3" -y -acodec libamr_nb -ac 1 -ar 8000 -ab 7.4k -f amr -map_meta_data  -o "/home/user/Development/audio.amr"
as you can see I used an .mp3 file to convert from.

OK just tried it again but nothing changed yet lol

again may have to do the massive update just don't want to mess with the libntfs-3ft the one of many things that must be removed  which is why i didn't update 2 weeks ago

still missing DESC thing now DVD playing is a hit or miss. 

but I may have to do it went from 243 to over 500 lol
UPDATED!! ASUS U52F Notebook i5 CPU,  4Gb ram, 640Gb Hard drive Dual-Boot Win 7Pro/KDE 4 3.2.18-pclos2.bfs

ASUS U50F notebook i3 4Gb Ram. 500 GB hard drive dual-boot Win 7/ KDE 3.2.18-pclos2.pae.bfs    Of course thats just my opinion I could wrong

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Can't convert MP3 to AMR
« Reply #13 on: January 29, 2010, 03:46:10 PM »
Post back the terminal output you get .........  include the command as well  ........ and maybe it will give some indication.

Offline GOTHBITES

  • Hero Member
  • *****
  • Posts: 749
  • Oh I get it now. Windows 8 is a Bigger Sham
Re: Can't convert MP3 to AMR
« Reply #14 on: January 31, 2010, 02:03:49 PM »
Post back the terminal output you get .........  include the command as well  ........ and maybe it will give some indication.


Ok this is from the first one you posted

[Daves@w-98-211-134-787 ~]$ ffmpeg" -y -vn -i "/home/Daves/Desktop/Shinedown - I Dare You.flac" -y -acodec libamr_nb -ac 1 -ar 8000 -ab 7.4k -f amr -map_meta_data "/home/Daves/Desktop/Shinedown - I Dare You.amr"
> ffmpeg" -y -vn -i "/home/Daves/Desktop/Shinedown - I Dare You.flac" -y -acodec libamr_nb -ac 1 -ar 8000 -ab 7.4k -f amr -map_meta_data "/home/Daves/Desktop/Shinedown - I Dare You.amr"

bash: ffmpeg -y -vn -i /home/Daves/Desktop/Shinedown: No such file or directory

And the file is still there

please and thank you very much for the assist

Update!!: I did however find the setting menu for MMC didn't help with the conversion to amr but it did help with some other issue and I wouldn't have looked for it if you hadn't give that idea.
UPDATED!! ASUS U52F Notebook i5 CPU,  4Gb ram, 640Gb Hard drive Dual-Boot Win 7Pro/KDE 4 3.2.18-pclos2.bfs

ASUS U50F notebook i3 4Gb Ram. 500 GB hard drive dual-boot Win 7/ KDE 3.2.18-pclos2.pae.bfs    Of course thats just my opinion I could wrong