Audacity freezes during Export to Nero AAC

This section is now closed.
Forum rules
Audacity 1.3.x is now obsolete. Please use the current Audacity 2.1.x version.

The final version of Audacity for Windows 98/ME is the legacy 2.0.0 version.
Locked
bobaroger
Posts: 4
Joined: Mon Nov 02, 2009 6:34 am
Operating System: Please select

Audacity freezes during Export to Nero AAC

Post by bobaroger » Mon Nov 02, 2009 6:49 am

OS: Windows 7 Ultimate 64-bit
Audacity 1.3.9 (Unicode)
Nero AAC Encoder version 1.3.3.0 (build date Sep. 17, 2008)

I am exporting files using the External Program feature.
Here is the command that I use for the external program:
C:Program Files (x86)EditingaacneroAacEnc.exe -ignorelength -q 0.5 -if - -of "%f".mp4
Show Output is checkmarked.

The problem:
If I try to export a file longer than 138 seconds, Audacity freezes. The only solution is to kill the neroAacEnc.exe process, then Audacity recovers.
I have checked the Task Manager while Audacity has frozen, and the neroAacEnc.exe process is using 0% CPU, while Audacity is constantly chugging along at 49-50% on both of my cpu cores.

It is possible to successfully export files that are shorter than 138 seconds.

Here is what Audacity shows in the Command Output window after I killed neroAacEnc.exe to un-freeze Audacity.

Code: Select all

*************************************************************
*                                                           *
*  Nero AAC Encoder                                         *
*  Copyright 2008 Nero AG                                   *
*  All Rights Reserved Worldwide                            *
*                                                           *
*  Package build date: Sep 17 2008                          *
*  Package version:    1.3.3.0                              *
*                                                           *
*  See -help for a complete list of available parameters.   *
*                                                           *
*************************************************************

Processed 0 seconds...
Processed 1 seconds...
Processed 2 seconds...
Processed 3 seconds...
Processed 4 seconds...
Processed 5 seconds...
Processed 6 seconds...
Processed 7 seconds...
Processed 8 seconds...
Processed 9 seconds...
Processed 10 seconds...
Processed 11 seconds...
Processed 12 seconds...
Processed 13 seconds...
Processed 14 seconds...
Processed 15 seconds...
Processed 16 seconds...
Processed 17 seconds...
Processed 18 seconds...
Processed 19 seconds...
Processed 20 seconds...
Processed 21 seconds...
Processed 22 seconds...
Processed 23 seconds...
Processed 24 seconds...
Processed 25 seconds...
Processed 26 seconds...
Processed 27 seconds...
Processed 28 seconds...
Processed 29 seconds...
Processed 30 seconds...
Processed 31 seconds...
Processed 32 seconds...
Processed 33 seconds...
Processed 34 seconds...
Processed 35 seconds...
Processed 36 seconds...
Processed 37 seconds...
Processed 38 seconds...
Processed 39 seconds...
Processed 40 seconds...
Processed 41 seconds...
Processed 42 seconds...
Processed 43 seconds...
Processed 44 seconds...
Processed 45 seconds...
Processed 46 seconds...
Processed 47 seconds...
Processed 48 seconds...
Processed 49 seconds...
Processed 50 seconds...
Processed 51 seconds...
Processed 52 seconds...
Processed 53 seconds...
Processed 54 seconds...
Processed 55 seconds...
Processed 56 seconds...
Processed 57 seconds...
Processed 58 seconds...
Processed 59 seconds...
Processed 60 seconds...
Processed 61 seconds...
Processed 62 seconds...
Processed 63 seconds...
Processed 64 seconds...
Processed 65 seconds...
Processed 66 seconds...
Processed 67 seconds...
Processed 68 seconds...
Processed 69 seconds...
Processed 70 seconds...
Processed 71 seconds...
Processed 72 seconds...
Processed 73 seconds...
Processed 74 seconds...
Processed 75 seconds...
Processed 76 seconds...
Processed 77 seconds...
Processed 78 seconds...
Processed 79 seconds...
Processed 80 seconds...
Processed 81 seconds...
Processed 82 seconds...
Processed 83 seconds...
Processed 84 seconds...
Processed 85 seconds...
Processed 86 seconds...
Processed 87 seconds...
Processed 88 seconds...
Processed 89 seconds...
Processed 90 seconds...
Processed 91 seconds...
Processed 92 seconds...
Processed 93 seconds...
Processed 94 seconds...
Processed 95 seconds...
Processed 96 seconds...
Processed 97 seconds...
Processed 98 seconds...
Processed 99 seconds...
Processed 100 seconds...
Processed 101 seconds...
Processed 102 seconds...
Processed 103 seconds...
Processed 104 seconds...
Processed 105 seconds...
Processed 106 seconds...
Processed 107 seconds...
Processed 108 seconds...
Processed 109 seconds...
Processed 110 seconds...
Processed 111 seconds...
Processed 112 seconds...
Processed 113 seconds...
Processed 114 seconds...
Processed 115 seconds...
Processed 116 seconds...
Processed 117 seconds...
Processed 118 seconds...
Processed 119 seconds...
Processed 120 seconds...
Processed 121 seconds...
Processed 122 seconds...
Processed 123 seconds...
Processed 124 seconds...
Processed 125 seconds...
Processed 126 seconds...
Processed 127 seconds...
Processed 128 seconds...
Processed 129 seconds...
Processed 130 seconds...
Processed 131 seconds...
Processed 132 seconds...
Processed 133 seconds...
Processed 134 seconds...
Processed 135 seconds...
Processed 136 seconds...
Processed 137 seconds..
Here is what the Show Log option in the Help menu contains:

Code: Select all

22:58:52: Trying to load FFmpeg libraries
22:58:52: mLibAVFormatPath is not empty, = C:Program Files (x86)Audacityffmpegavformat-52.dll. Loading from it.
22:58:52: Looking up PATH...
22:58:52: PATH = C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)MKVtoolnix
22:58:52: Checking that C:Program Files (x86)Audacityffmpeg is in PATH...
22:58:52: not in PATH!
22:58:52: Appending ;C:Program Files (x86)Audacityffmpeg ...
22:58:52: Loading avformat from C:Program Files (x86)Audacityffmpegavformat-52.dll
22:58:52: Loading avutil from C:Program Files (x86)Audacityffmpegavutil-50.dll
22:58:52: Loading avcodec from C:Program Files (x86)Audacityffmpegavcodec-52.dll
22:58:52: Returning PATH to normal...
22:58:52: Importing symbols...
22:58:52: All symbols loaded successfully. Initializing the library.
22:58:52: Retrieving library version.
22:58:52: AVCodec version 0x342000 - 52.32.0 (built against 0x342000 - 52.32.0)
22:58:52: AVFormat version 0x342400 - 52.36.0 (built against 0x342400 - 52.36.0)
22:58:52: AVUtil version 0x320300 - 50.3.0 (built against 0x320300 - 50.3.0)
22:58:52: AVCodec version mismatch is 0
22:58:52: AVFormat version mismatch is 0
22:58:52: AVUtil version mismatch is 0
22:58:52: Libraries loaded successfully!

Why is this happening, and how can I fix this?

I also just tried Audacity 1.3.10-alpha-Nov 1 2009
The problem exists in that version as well.
Last edited by bobaroger on Tue Nov 03, 2009 6:42 pm, edited 1 time in total.

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

Re: Audacity freezes during Export to Nero AAC

Post by kozikowski » Mon Nov 02, 2009 3:16 pm

Can you Export As WAV or Export As MP3? It appears Audacity is preparing the work for export (the core numbers are too high) and failing when it runs out of hardware memory. The sound never gets to the external coder.

What happens if you try it manually. Start with the exported WAV file (close Audacity) and run the coder from the command line.

Koz

bobaroger
Posts: 4
Joined: Mon Nov 02, 2009 6:34 am
Operating System: Please select

Re: Audacity freezes during Export to Nero AAC

Post by bobaroger » Mon Nov 02, 2009 7:03 pm

Export as WAV works fine, along with using LAME to export.
The command line (cmd.exe) to encode with Nero AAC also works fine.

So I currently encode using Nero AAC by exporting the file as a WAV in Audacity, then using the command line with Nero AAC.
I'd like to be able to skip the step of exporting a huge WAV file of course.

I checked what happens with Resource Monitor and there are no spikes in RAM usage. I have 2 gigs of ram with 1385 MB available for Audacity.

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

Re: Audacity freezes during Export to Nero AAC

Post by kozikowski » Tue Nov 03, 2009 6:39 am

It's official. I'm out of ideas.
Koz

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Audacity freezes during Export to Nero AAC

Post by steve » Tue Nov 03, 2009 10:02 am

Have your tried Exporting as AAC using FFMpeg? (directly from the Audacity Export options)?
I don't know if that will work - it depends on whether it is enabled in your version of FFMpeg, but if you've not tried it, give it a go.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

bobaroger
Posts: 4
Joined: Mon Nov 02, 2009 6:34 am
Operating System: Please select

Re: Audacity freezes during Export to Nero AAC

Post by bobaroger » Tue Nov 03, 2009 6:35 pm

stevethefiddle wrote:Have your tried Exporting as AAC using FFMpeg? (directly from the Audacity Export options)?
I don't know if that will work - it depends on whether it is enabled in your version of FFMpeg, but if you've not tried it, give it a go.
Yes that works, but I heard FFMpeg's AAC quality is worse than Nero's? I've always used Nero AAC.
Anyway, I was wondering if there was some sort debug build where it would be possible to see what is causing Audacity to freeze?
This is a strange issue.

steve
Site Admin
Posts: 81609
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Audacity freezes during Export to Nero AAC

Post by steve » Tue Nov 03, 2009 7:27 pm

bobaroger wrote:Anyway, I was wondering if there was some sort debug build where it would be possible to see what is causing Audacity to freeze?
I think you need to build that yourself. You also need to build a debug version of WxWidgets in order to build a debug version of Audacity.
Funnily enough I've just built a debug version today but on Linux - sorry I can't help with Windows, but there is information about building Audacity on Windows here: http://wiki.audacityteam.org/index.php? ... On_Windows
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

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

Re: Audacity freezes during Export to Nero AAC

Post by Gale Andrews » Wed Nov 04, 2009 9:25 am

Does changing the q value in the command or changing default sample format in the Audacity Quality preferences change the length of file you can export?


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

bobaroger
Posts: 4
Joined: Mon Nov 02, 2009 6:34 am
Operating System: Please select

Re: Audacity freezes during Export to Nero AAC

Post by bobaroger » Thu Nov 05, 2009 3:25 am

Gale Andrews wrote:Does changing the q value in the command or changing default sample format in the Audacity Quality preferences change the length of file you can export?


Gale
OK I tried all of that, different q values and different default sample values - still hit the 138 second limit.
However, on a whim, I used Task Manager to set Audacity to use 1 Core out of my Core 2 Duo, and it went past the 138 second limit and completed the test file which was about 3 minutes in length. Then I tried a 41 minute file and it also succeeded.
So basically, if both CPU cores are used, the export fails if the file is longer than 138 seconds. If one Core is used, the export succeeds.

I wonder why this happens?

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

Re: Audacity freezes during Export to Nero AAC

Post by Gale Andrews » Sun Nov 08, 2009 12:46 am

bobaroger wrote:
Gale Andrews wrote:Does changing the q value in the command or changing default sample format in the Audacity Quality preferences change the length of file you can export?
Gale
OK I tried all of that, different q values and different default sample values - still hit the 138 second limit. However, on a whim, I used Task Manager to set Audacity to use 1 Core out of my Core 2 Duo, and it went past the 138 second limit and completed the test file which was about 3 minutes in length. Then I tried a 41 minute file and it also succeeded.
So basically, if both CPU cores are used, the export fails if the file is longer than 138 seconds. If one Core is used, the export succeeds.
If you use both cores for the Nero export, how is the load spread between the two cores? Does that differ from how it behaves with an FFmpeg export? And if you use lame at the command line (it should find lame.exe in C:Program FilesLame for Audacity automatically) does that work OK?


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

Locked