Bug while exporting to m4a

Help for Audacity on Windows.
Forum rules
ImageThis forum is for Audacity on Windows.
Please state which version of Windows you are using,
and the exact three-section version number of Audacity from "Help menu > About Audacity".


Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade at https://www.audacityteam.org/download/.
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
Post Reply
Roitelet
Posts: 4
Joined: Wed May 01, 2013 10:25 am
Operating System: Please select

Bug while exporting to m4a

Post by Roitelet » Wed May 01, 2013 10:36 am

Hi all,

I use Audacity 2.0.3 to export mp3 files to m4a. Most of the time the export is fine. But sometimes, the end result is an empty file and I can't understand what causes the error.

Please try for yourself with the attached file. Can you help me? Is this a bug?

In case, this may help, the log below.

Nicolas.


Code: Select all

11:25:08: Audacity 2.0.3
11:25:19: Trying to load FFmpeg libraries...
11:25:19: Trying to load FFmpeg libraries from default path, 'C:Program Files (x86)Ffmpeg For Audacityavformat-52.dll'.
11:25:19: Looking up PATH environment variable...
11:25:19: PATH = 'C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;c:Program Files (x86)ATI TechnologiesATI.ACECore-Static;c:Program Files (x86)Common FilesRoxio Shared10.0DLLShared;c:Program Files (x86)Common FilesRoxio SharedDLLShared;C:Program Files (x86)QuickTimeQTSystem'
11:25:19: Checking that 'C:Program Files (x86)Ffmpeg For Audacity' is in PATH...
11:25:19: Avertissement :FFmpeg directory is not in PATH.
11:25:19: Temporarily appending ';C:Program Files (x86)Ffmpeg For Audacity' to PATH...
11:25:19: Checking for monolithic avformat from 'C:Program Files (x86)Ffmpeg For Audacityavformat-52.dll'.
11:25:19: Erreur :Impossible de trouver le symbole « avutil_version » dans la bibliothèque dynamique (erreur 127 : the specified procedure could not be found.)
11:25:19: avformat not monolithic
11:25:19: Loading avutil from 'C:Program Files (x86)Ffmpeg For Audacityavutil-50.dll'.
11:25:19: Loading avcodec from 'C:Program Files (x86)Ffmpeg For Audacityavcodec-52.dll'.
11:25:19: Loading avformat from 'C:Program Files (x86)Ffmpeg For Audacityavformat-52.dll'.
11:25:19: Returning PATH to previous setting...
11:25:19: Actual avutil path C:Program Files (x86)Ffmpeg For Audacityavutil-50.dll
11:25:19: Actual avcodec path C:Program Files (x86)Ffmpeg For Audacityavcodec-52.dll
11:25:19: Actual avformat path C:Program Files (x86)Ffmpeg For Audacityavformat-52.dll
11:25:19: Importing symbols...
11:25:19: All symbols loaded successfully. Initializing the library.
11:25:19: Retrieving FFmpeg library version numbers:
11:25:19:    AVCodec version 0x344802 - 52.72.2 (built against 0x344802 - 52.72.2)
11:25:19:    AVFormat version 0x344002 - 52.64.2 (built against 0x344002 - 52.64.2)
11:25:19:    AVUtil version 0x320f01 - 50.15.1 (built against 0x320f01 - 50.15.1)
11:25:19: FFmpeg libraries loaded successfully.
11:25:19: File name is c:usersnicolasdocumentsprojet jeuxsoundsound on ubuntu devorganic_nav_11.mp3
11:25:19: Mime type is *
11:25:19: Opening with libsndfile
11:25:19: Opening with libmad
11:25:19: Open(c:usersnicolasdocumentsprojet jeuxsoundsound on ubuntu devorganic_nav_11.mp3) succeeded
Attachments
organic_nav_11.mp3
This file can't be exported to m4a format via Audacity. Result is empty.
(1.13 KiB) Downloaded 102 times

kozikowski
Forum Staff
Posts: 69384
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Bug while exporting to m4a

Post by kozikowski » Wed May 01, 2013 12:45 pm

It's too short. I added some noise to the end and it exports perfectly. Koz

Roitelet
Posts: 4
Joined: Wed May 01, 2013 10:25 am
Operating System: Please select

Re: Bug while exporting to m4a

Post by Roitelet » Wed May 01, 2013 12:54 pm

Thanks. Is there a minimun length? Why is that?

kozikowski
Forum Staff
Posts: 69384
Joined: Thu Aug 02, 2007 5:57 pm
Operating System: macOS 10.13 High Sierra

Re: Bug while exporting to m4a

Post by kozikowski » Wed May 01, 2013 4:47 pm

I don't know, but I'm not shocked it does that. Unlike WAV and AIFF, m4a and aac are very highly managed, compressed formats. I suspect it's the same reason you can't do an Analyze > Plot Spectrum if the sample is too short. There isn't enough sound there for the tools to do an intelligent job.

Also remember FFMpeg is a free knockoff of the "real" software. I didn't try it, but it's possible iTunes for Windows will create an aac file from your work.

Koz

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

Re: Bug while exporting to m4a

Post by Gale Andrews » Thu May 02, 2013 5:57 am

The FFmpeg command-line executable displays the same issue, so it's an FFmpeg problem, not an Audacity problem.
kozikowski wrote:Also remember FFMpeg is a free knockoff of the "real" software. I didn't try it, but it's possible iTunes for Windows will create an aac file from your work.
It does. Follow the procedure here http://wiki.audacityteam.org/wiki/Expor ... od#convert but choose "AAC Encoder" in iTunes instead of the MP3 Encoder.

Note that like MP3, AAC has silence padding at the start. If you want the exact length with the sound effect starting at exactly the correct time, choose "Apple Lossless Encoder" in iTunes instead (but remember not all players will play it). All players will play WAV.


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

Post Reply