Exporting in format AMR

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.x.x package for your distribution or compile Audacity from the source code.
Locked
cpighin
Posts: 3
Joined: Mon Jan 24, 2011 8:56 am
Operating System: Please select

Exporting in format AMR

Post by cpighin » Mon Jan 24, 2011 9:24 am

Hi :)

I needed to export an mp3 file in format AMR and I did not success with Audacity 1.3.12.7 running with Ubuntu 10.10, while I had success with the same version of Audacity running in Windows 7.

I can't explain this behaviour, since I am confident to have loaded correctly FFmpeg library (I followed this guide http://ubuntuforums.org/showpost.php?p= ... ostcount=1 to load it).
It may be interesting to note that under Windows the application shows in the export option list the "amr" item, while this is not the case under Ubuntu and that if I play an amr file created under Windows with Ubuntu/Audacity, I hear a very bad sound as if the file is not red correctly.

I'm posting this to contribute to the improvement of the linux version of the application and if an expert wants to dedicate time to this issue I'm happy to provide any detailed information is needed.

Claudio ;)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Exporting in format AMR

Post by Gale Andrews » Mon Jan 24, 2011 8:12 pm

cpighin wrote:I needed to export an mp3 file in format AMR and I did not success with Audacity 1.3.12.7 running with Ubuntu 10.10, while I had success with the same version of Audacity running in Windows 7.

I can't explain this behaviour, since I am confident to have loaded correctly FFmpeg library (I followed this guide http://ubuntuforums.org/showpost.php?p= ... ostcount=1 to load it).
It may be interesting to note that under Windows the application shows in the export option list the "amr" item, while this is not the case under Ubuntu and that if I play an amr file created under Windows with Ubuntu/Audacity, I hear a very bad sound as if the file is not red correctly.
Please post to the correct forum for the version of Audacity you are using - I moved this now to the correct *1.3* forum for Linux.

1. When you configured FFmpeg before make, did you type

Code: Select all

--enable-libopencore-amrnb 
--enable-libopencore-amrwb   
2 Audacity doesn't have any "1.3.12.7" release. Is that the Ubuntu PPA-packaged version of Audacity? If so, did you check with Ubuntu if they have modified Audacity to disable amr in that version? Are you browsing in the Audacity Libraries Preferences to the correct version of FFmpeg?

You might do better to compile SVN HEAD of Audacity. See these steps and the Manual for the modifications you need to make to HEAD use latest FFmpeg.




Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

cpighin
Posts: 3
Joined: Mon Jan 24, 2011 8:56 am
Operating System: Please select

Re: Exporting in format AMR

Post by cpighin » Tue Jan 25, 2011 8:25 am

Gale, thanks for you reply.
Gale Andrews wrote: 1. When you configured FFmpeg before make, did you type

Code: Select all

--enable-libopencore-amrnb 
--enable-libopencore-amrwb   
2 Audacity doesn't have any "1.3.12.7" release. Is that the Ubuntu PPA-packaged version of Audacity? If so, did you check with Ubuntu if they have modified Audacity to disable amr in that version? Are you browsing in the Audacity Libraries Preferences to the correct version of FFmpeg?

3.You might do better to compile SVN HEAD of Audacity. See these steps and the Manual for the modifications you need to make to HEAD use latest FFmpeg.
Hereunder there are my answers to your questions. Please consider that I am not expert and what is very simple for you is sometime very difficult for me ;)
1. Yes I did the following, as instructed by the mentioned guide:

Code: Select all

cd
git clone git://git.ffmpeg.org/ffmpeg.git
cd ffmpeg
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc 
    --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb 
    --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis 
    --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
make
sudo checkinstall --pkgname=ffmpeg --pkgversion="5:$(./version.sh)" --backup=no 
    --deldoc=yes --fstrans=no --default
hash x264 ffmpeg ffplay ffprobe
2.I installed Audacity by Packages Manager and if I open the help window into Audacity, it gives this information: Audacity 1.3.12.beta (unicode).
I don't know how to check with Ubuntu if they have modified Audacity to disable amr in their version.
I read in Audacity Preferences that the FFmpeg library used is: F(52.64.2),C(52.72.2),U(50.15.1)

3.I don't understand what you mean for "to compile SVN HEAD of Audacity". SVN and HEAD are acronyms of which words?

Do you know a possible way to solve the problem avoiding a new installation of Audacity?

Claudio :)

Gale Andrews
Quality Assurance
Posts: 41761
Joined: Fri Jul 27, 2007 12:02 am
Operating System: Windows 10

Re: Exporting in format AMR

Post by Gale Andrews » Wed Jan 26, 2011 1:38 am

cpighin wrote: 1. Yes I did the following, as instructed by the mentioned guide:

Code: Select all

cd
git clone git://git.ffmpeg.org/ffmpeg.git
cd ffmpeg
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc 
    --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb 
    --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis 
    --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab
make
sudo checkinstall --pkgname=ffmpeg --pkgversion="5:$(./version.sh)" --backup=no 
    --deldoc=yes --fstrans=no --default
hash x264 ffmpeg ffplay ffprobe
OK.
cpighin wrote: 2.I installed Audacity by Packages Manager and if I open the help window into Audacity, it gives this information: Audacity 1.3.12.beta (unicode).
Then that version won't recognise git FFmpeg.
cpighin wrote: I don't know how to check with Ubuntu if they have modified Audacity to disable amr in their version.
http://ubuntuforums.org/
cpighin wrote: I read in Audacity Preferences that the FFmpeg library used is: F(52.64.2),C(52.72.2),U(50.15.1)
Then you are loading the pre-installed FFmpeg library that comes with Ubuntu, not the FFmpeg git version you compiled. If you browse for the git version, Audacity won't load it because it needs to be recompiled with the changes I mentioned.
cpighin wrote:
3.I don't understand what you mean for "to compile SVN HEAD of Audacity". SVN and HEAD are acronyms of which words?
SVN = the subversion version control system. HEAD means the latest trunk development code. "HEAD" would mean the same as "SVN HEAD" assuming there is not another trunk under another version control system (there isn't).
cpighin wrote:
Do you know a possible way to solve the problem avoiding a new installation of Audacity?

As it is now, either the 1.3.12 Ubuntu package of Audacity has amr export disabled, or the FFmpeg library they built (F(52.64.2),C(52.72.2),U(50.15.1)) has amr disabled. To use the git FFmpeg that has amr enabled so as to give you an AMR menu choice in the Audacity export window, you have to compile the latest HEAD code of Audacity using the steps I gave you.

Alternatively, export as WAV from the Audacity 1.3.12 you have now, then convert the WAV to AMR at the command line using git FFmpeg.

You could also try sending a command to git FFmpeg using the Audacity command line encoder. I am not sure if that would work with git FFmpeg or not, but it might as it avoids the FFmpeg library checking and loading from Preferences that is done if you use the export items for WMA, AC3 and so on. There is no way to import files supported by FFmpeg into Audacity without loading the FFmpeg libraries via Preferences.



Gale
________________________________________FOR INSTANT HELP: (Click on Link below)
* * * * * Tips * * * * * Tutorials * * * * * Quick Start Guide * * * * * Audacity Manual

cpighin
Posts: 3
Joined: Mon Jan 24, 2011 8:56 am
Operating System: Please select

Re: Exporting in format AMR

Post by cpighin » Wed Jan 26, 2011 2:58 pm

Thanks Gale :)

I wiil consider carefully your tips and before taking a stronger decision, few minutes ago I tried a file exportation (Export>CustomFFmpegExport>Options>amr without any codec selected) and this is the code I recorded:

Code: Select all

15:18:43: Trying to load FFmpeg libraries
15:18:43: mLibAVFormatPath is not empty, = /usr/lib/libavformat.so.52.64.2. Loading from it.
15:18:43: Loading avformat from /usr/lib/libavformat.so.52.64.2
15:18:43: Importing symbols...
15:18:43: All symbols loaded successfully. Initializing the library.
15:18:43: Retrieving library version.
15:18:43: AVCodec version 0x344802 - 52.72.2 (built against 0x344802 - 52.72.2)
15:18:43: AVFormat version 0x344002 - 52.64.2 (built against 0x344002 - 52.64.2)
15:18:43: AVUtil version 0x320f01 - 50.15.1 (built against 0x320f01 - 50.15.1)
15:18:43: AVCodec version mismatch is 0
15:18:43: AVFormat version mismatch is 0
15:18:43: AVUtil version mismatch is 0
15:18:43: Libraries loaded successfully!
15:20:57: FFmpeg : ERROR - Can't find audio codec 0x12000.
Than I wanted to follow instruction you suggested to amend file src/FFmpeg.cpp, but I could not find it. It has a different name in Ubuntu? Can you help me?

Claudio

Locked