Windows 7 & Audacity 2.1.2

I need support for 2 issues.

  1. ffmpeg 2.2.2 However as per Audacity Manual tried to link library.But not at all recognizing.Lame got recognised.Tried all solutions given in many forums but of no use.

  2. I have imported 2 multichannel audios, wav format 5.1 ie: 6+6 - 12 tracks.Both of varying length. I want to apply 15 seconds silence at the ens of both the audios & export.How to align these tracks ends and simultaneously apply silence & then export as I imported as 2 new modified multichannel 5.1 files to play.

Here is the FAQ http://manual.audacityteam.org/o/man/faq_installation_and_plug_ins.html#ffdown. Follow those steps. There is no need to link anything. Just install per the instructions should work.

If it doesn’t work for you, please give the exact place in the steps where it fails, tell us of any error messages you receive, and post the log from Help > Show Log… . Please see here for how to attach files: https://forum.audacityteam.org/t/how-to-attach-files-to-forum-posts/24026/1

You can’t align starts and ends of tracks of different lengths without changing the tempo of one set of tracks, or without cutting pieces out of one set or inserting/repeating in the other set.

Do you mean you only want to align the ends?

Gale

Yes. That’s only for generating silence at end simultaneously at end for both the tracks. If there is any other way for the same ok for me. My purpose is batch editing that too editing in the sense adding silence at end for many songs at a time.

Assuming you want to align the track ends without adding silence at the ends as the means of align, click in the first shorter track, press End on your keyboard, hold SHIFT and click in the Track Control Panels of the other tracks you want to align, then Tracks > Align Tracks > End to Selection End.

Then click in the topmost track, K, hold SHIFT and DOWN arrow to extend the cursor through to the bottom track, then Generate > Silence… .

Open Edit > Preferences…, Import / Export section and enable “Use Custom Mix”.

Hold SHIFT and click in the Track Control Panels of the tracks you want to export as the first file, File > Export Selected Audio… . Repeat for the second file.

I don’t see the point of the end align though, unless you want the file for those tracks to now have silence at the start. If you want that, then before export you will have to generate silence in the white space to left of the audio in those tracks.

Gale

Thanks for your reply.The last point I can’t get. You mean I have to align ends only if I have to add silence at the beginning. No my requirement is silence at the track end ie: for all tracks of all songs.

My concern is editing one by one consumes more time & want batch editing (that too only adding silence at track end) & export.

All are 5.1 wav files.If there is simple way welcome. Kindly share

If you have empty space at the start of the shorter tracks because you aligned them to the end of the longer tracks, that empty space is not exported, meaning those shorter tracks will remain shorter. If you want those shorter tracks to be exported as the same length as the longer tracks, you must therefore generate silence in the preceding space.

Audacity can only process effects as a batch process. If you want to automate the steps I wrote about, try AutoHotkey or similar.


Gale

Please find below FFMPEG Library loading error. Lame loaded.Hence I have cut that portion. FFMPEG tried to load twice or thrice. So log might repeat

21:44:58: Audacity 2.1.2
21:44:58: Trying to load FFmpeg libraries...
21:44:58: Trying to load FFmpeg libraries from default path, 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll'.
21:44:58: Looking up PATH environment variable...
21:44:58: PATH = 'C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\ffmpeg-2.2.2-win32-shared\bin\'
21:44:58: Checking that 'C:\Program Files\FFmpeg for Audacity' is in PATH...
21:44:58: Warning: FFmpeg directory 'C:\Program Files\FFmpeg for Audacity' is not in PATH.
21:44:58: Temporarily prepending ';C:\Program Files\FFmpeg for Audacity' to PATH...
21:44:58: Checking for monolithic avformat from 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll'.
21:44:58: Error: Failed to load shared library 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll' (error 127: the specified procedure could not be found.)
21:44:58: Loading avutil from ''.
21:44:58: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
21:44:58: Loading avcodec from ''.
21:44:58: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
21:44:58: Loading avformat from 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll'.
21:44:58: Error: Failed to load shared library 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll' (error 127: the specified procedure could not be found.)
21:44:58: Returning PATH to previous setting...
21:44:58: Error: Failed to load FFmpeg libraries.
21:44:58: Trying to load FFmpeg libraries from system paths. File name is 'avformat-55.dll'.
21:44:58: Looking up PATH environment variable...
21:44:58: PATH = 'C:\Program Files\FFmpeg for Audacity;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\'
21:44:58: Checking that '' is in PATH...
21:44:58: FFmpeg directory is in PATH.
21:44:58: Checking for monolithic avformat from 'avformat-55.dll'.
21:44:58: Error: Failed to load shared library 'avformat-55.dll' (error 127: the specified procedure could not be found.)
21:44:58: Loading avutil from ''.
21:44:58: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
21:44:58: Loading avcodec from ''.
21:44:58: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
21:44:58: Loading avformat from 'avformat-55.dll'.
21:44:58: Error: Failed to load shared library 'avformat-55.dll' (error 127: the specified procedure could not be found.)
21:44:58: Error: Failed to load FFmpeg libraries.
21:44:58: Error: Failed to find compatible FFmpeg libraries.
21:45:06: Attempting to load LAME from system search paths
21:45:06: Loading LAME from lame_enc.dll
21:45:06: Error: Failed to load shared library 'lame_enc.dll' (error 126: the specified module could not be found.)
21:45:06: load failed
21:45:06: Attempting to load LAME from builtin path
21:45:06: LAME registry key exists.
21:45:06: Library path is: C:\Program Files\Lame For Audacity
21:45:06: Loading LAME from C:\Program Files\Lame For Audacity\lame_enc.dll
21:45:06: Actual LAME path C:\Program Files\Lame For Audacity\lame_enc.dll
21:45:06: LAME library successfully loaded
21:45:13: Trying to load FFmpeg libraries...
21:45:13: Trying to load FFmpeg libraries from default path, 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll'.
21:45:13: Looking up PATH environment variable...
21:45:13: PATH = 'C:\Program Files\FFmpeg for Audacity;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\'
21:45:13: Checking that 'C:\Program Files\FFmpeg for Audacity' is in PATH...
21:45:13: FFmpeg directory is in PATH.
21:45:13: Checking for monolithic avformat from 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll'.
21:45:13: Error: Failed to load shared library 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll' (error 127: the specified procedure could not be found.)
21:45:13: Loading avutil from ''.
21:45:13: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
21:45:13: Loading avcodec from ''.
21:45:13: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
21:45:13: Loading avformat from 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll'.
21:45:13: Error: Failed to load shared library 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll' (error 127: the specified procedure could not be found.)
21:45:13: Error: Failed to load FFmpeg libraries.
21:45:13: Trying to load FFmpeg libraries from system paths. File name is 'avformat-55.dll'.
21:45:13: Looking up PATH environment variable...
21:45:13: PATH = 'C:\Program Files\FFmpeg for Audacity;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\'
21:45:13: Checking that '' is in PATH...
21:45:13: FFmpeg directory is in PATH.
21:45:13: Checking for monolithic avformat from 'avformat-55.dll'.
21:45:13: Error: Failed to load shared library 'avformat-55.dll' (error 127: the specified procedure could not be found.)
21:45:13: Loading avutil from ''.
21:45:13: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
21:45:13: Loading avcodec from ''.
21:45:13: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
21:45:13: Loading avformat from 'avformat-55.dll'.
21:45:13: Error: Failed to load shared library 'avformat-55.dll' (error 127: the specified procedure could not be found.)
21:45:13: Error: Failed to load FFmpeg libraries.
21:45:13: Error: Failed to find compatible FFmpeg libraries.
21:45:13: Looking for FFmpeg libraries...
21:45:13: mLibAVFormatPath is empty, starting with path 'C:\Program Files\FFmpeg for Audacity', name 'avformat-55.dll'.
21:45:50: User-specified path = 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll'
21:45:50: User-specified FFmpeg file exists. Success.
21:45:50: Trying to load FFmpeg libraries...
21:45:50: mLibAVFormatPath ('C:\Program Files\FFmpeg for Audacity\avformat-55.dll') is not empty. Loading from it.
21:45:50: Looking up PATH environment variable...
21:45:50: PATH = 'C:\Program Files\FFmpeg for Audacity;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\'
21:45:50: Checking that 'C:\Program Files\FFmpeg for Audacity' is in PATH...
21:45:50: FFmpeg directory is in PATH.
21:45:50: Checking for monolithic avformat from 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll'.
21:45:50: Error: Failed to load shared library 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll' (error 127: the specified procedure could not be found.)
21:45:50: Loading avutil from ''.
21:45:50: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
21:45:50: Loading avcodec from ''.
21:45:50: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
21:45:50: Loading avformat from 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll'.
21:45:50: Error: Failed to load shared library 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll' (error 127: the specified procedure could not be found.)
21:45:50: Error: Failed to load FFmpeg libraries.
21:45:50: Trying to load FFmpeg libraries from default path, 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll'.
21:45:50: Looking up PATH environment variable...
21:45:50: PATH = 'C:\Program Files\FFmpeg for Audacity;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\'
21:45:50: Checking that 'C:\Program Files\FFmpeg for Audacity' is in PATH...
21:45:50: FFmpeg directory is in PATH.
21:45:50: Checking for monolithic avformat from 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll'.
21:45:50: Error: Failed to load shared library 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll' (error 127: the specified procedure could not be found.)
21:45:50: Loading avutil from ''.
21:45:50: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
21:45:50: Loading avcodec from ''.
21:45:50: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
21:45:50: Loading avformat from 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll'.
21:45:50: Error: Failed to load shared library 'C:\Program Files\FFmpeg for Audacity\avformat-55.dll' (error 127: the specified procedure could not be found.)
21:45:50: Error: Failed to load FFmpeg libraries.
21:45:50: Trying to load FFmpeg libraries from system paths. File name is 'avformat-55.dll'.
21:45:50: Looking up PATH environment variable...
21:45:50: PATH = 'C:\Program Files\FFmpeg for Audacity;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\'
21:45:50: Checking that '' is in PATH...
21:45:50: FFmpeg directory is in PATH.
21:45:50: Checking for monolithic avformat from 'avformat-55.dll'.
21:45:50: Error: Failed to load shared library 'avformat-55.dll' (error 127: the specified procedure could not be found.)
21:45:50: Loading avutil from ''.
21:45:50: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
21:45:50: Loading avcodec from ''.
21:45:50: Error: Failed to load shared library '.dll' (error 126: the specified module could not be found.)
21:45:50: Loading avformat from 'avformat-55.dll'.
21:45:50: Error: Failed to load shared library 'avformat-55.dll' (error 127: the specified procedure could not be found.)
21:45:50: Error: Failed to load FFmpeg libraries.
21:45:50: Error: Failed to find compatible FFmpeg libraries.
21:46:00: Attempting to load LAME from system search paths
21:46:00: Loading LAME from lame_enc.dll
21:46:00: Error: Failed to load shared library 'lame_enc.dll' (error 126: the specified module could not be found.)
21:46:00: load failed
21:46:00: Attempting to load LAME from builtin path
21:46:00: LAME registry key exists.
21:46:00: Library path is: C:\Program Files\Lame For Audacity
21:46:00: Loading LAME from C:\Program Files\Lame For Audacity\lame_enc.dll
21:46:00: Actual LAME path C:\Program Files\Lame For Audacity\lame_enc.dll
21:46:00: LAME library successfully loaded
21:46:13: LAME registry key exists.
21:46:13: Library path is: C:\Program Files\Lame For Audacity
21:46:17: Attempting to load LAME from previously defined path
21:46:17: Loading LAME from C:\Program Files\Lame For Audacity\lame_enc.dll
21:46:17: Actual LAME path C:\Program Files\Lame For Audacity\lame_enc.dll
21:46:17: LAME library successfully loaded
21:46:55: Attempting to load LAME from previously defined path
21:46:55: Loading LAME from C:\Program Files\Lame For Audacity\lame_enc.dll
21:46:55: Actual LAME path C:\Program Files\Lame For Audacity\lame_enc.dll
21:46:55: LAME library successfully loaded

Look in *C:\Program Files*
Is there a folder called FFmpeg for Audacity
If not (and I suspect not), uninstall your current version of FFmpeg and follow the first set of instructions here:
http://manual.audacityteam.org/o/man/faq_installation_and_plug_ins.html#winff

The text has highlighting and links but looks similar to this:

Windows

Go to the external download page
Left-click this link, do not right-click.
Directly underneath “For FFmpeg/LAME on Windows click below:”, left-click the link ffmpeg-win-2.2.2.exe and save the file anywhere on your computer.
Double-click ffmpeg-win-2.2.2.exe to launch the installer (you can safely ignore any warnings that the “publisher could not be verified”).
Read the License and click Next, Next and Install to install the required files to C:\Program Files\FFmpeg for Audacity (or C:\Program Files (x86)\FFmpeg for Audacity on a 64-bit version of Windows).

This is the first thing I verified & the folder is there. More than 5 to 6 times I have uninstalled both FFMPEG & Audacity but of no use.

As per above I could be able to align track ends, generate silence in one shot for all files. So far so good. But problem is

  1. when exporting to save as separate files, I have to give channel mapping since it shows 12 channels (adding together 6 tracks of each song) & I have to save one by one each song with 6 channels.
  2. Exported both songs to maximum song length. ie: either adding additional silence at beginning or if I realign the tracks to start additional silence at end.
    ie: if one song is 3 minutes & 38 seconds with 10 seconds of generated silence it is exported ok.
    if next song is 2 minutes & 38 seconds with 10 seconds of generated silence it is also exported to 3 minutes & 38 seconds with 1 minute of extra silence at
    the front. Suppose if I align this smaller song to start of the track this 1 minute silence is added to end apart from my 10 seconds of generated one.

Suppose if I add silence for 15 songs imagine my fate for channel mapping & export as individual songs.

What’s in that folder? (You can post a screenshot to save typing)

But we do see at one point in the log:

21:45:50: User-specified path = ‘C:\Program Files\FFmpeg for Audacity\avformat-55.dll’
21:45:50: User-specified FFmpeg file exists. Success.

The most logical explanation is that the installation has become corrupted.

Exit Audacity.

If it exists, delete the folder 'C:\Program Files\FFmpeg for Audacity".

If you don’t want it, delete the folder “C:\Program Files\ffmpeg-2.2.2-win32-shared”.

If you added "C:\Program Files\ffmpeg-2.2.2-win32-shared\bin" to PATH in the Windows environment settings, remove "C:\Program Files\ffmpeg-2.2.2-win32-shared\bin" from PATH. That PATH entry should not matter in 2.1.2 even if FFmpeg in “C:\Program Files\ffmpeg-2.2.2-win32-shared” is corrupt, but I suggest deleting that folder and any PATH entry anyway.

Open Windows Explorer and type the following in the address bar:

%APPDATA%\Audacity

Press ENTER on your keyboard. In the Audacity folder that appears, delete the file “audacity.cfg”.

Now install http://lame3.buanzo.com.ar/ffmpeg-win-2.2.2.exe to “C:\Program Files\FFmpeg for Audacity”.

Now launch Audacity. FFmpeg should have been detected and you should see F,C,U numbers for it in Libraries Preferences.


Gale

I thought you wanted to export two 6-channel files, one file containing the longer tracks and one file containing the tracks that were shorter.

If you see 12 channels in the Advanced Mixing Options then either you have not SHIFT-clicked to select only the tracks you want to export, or you have not chosen File > Export Selected Audio… .

If that does not help please describe as clearly as possible exactly what files you want to export.


Gale

Please describe exactly what you want to happen when you export the track that starts at 1 minute, lasts for 2 minutes 38 seconds and then has 10 seconds of closing silence.

Is that track supposed to be one track in a 6-channel file? If so are the other tracks in that file also starting at 1 minute, lasting 2 minutes 38 seconds with 10 seconds of closing silence?



Gale

For this batch editing as trial case, I have imported 2 nos. of wave format 5.1 channel configuration songs of different lengths. One longer & one shorter. So totally 12 tracks got loaded for editing. After editing

I have selected 5.1(6 ) tracks for export (ie: one song of shorter length) to become a single surround wave file. This song original length is 2 min 28 seconds. Added 10 seconds of silence. So it has become 2 min & 38 seconds length now.This should be my exported output song length. But even if I select this 6 tracks alone & export, it is exported to 3 min & 38 seconds long ie; previous song length. (with 1 minute additional silence(which I have not added) either at the start ie: original song starts after one minute silence, plays for 2 min.28 sec and 10 more seconds silence at end which I added or if I move all these 6 tracks to start at zero this 1 minute silence is added at end. ie song starts immediately, plays for 2 min 28 sec+10 seconds of added silence & 1 more minute of silence which I have not added)

Align the ends of those tracks to the start of the silence that you added.

The only reason that silence will be added for the first minute is either that you actually have a flat line (which is still exportable audio) for the first minute. Or you have some audio that you can’t see at your current zoom level at the start of the track.

Click at 1 minute (the start of the audio you want). Hold SHIFT and press HOME. Hold SHIFT and click in the Track Control Panels of the other tracks you want to export for this file. CTRL + ALT + K to Split Delete. You will now see just empty space for the first minute. Then SHIFT + END.

Now go ahead and File > Export Selected Audio… .


Gale

Well spotted, but as you say, there’s something wrong with what’s in there as it then says:

21:45:50: Error: Failed to load shared library ‘C:\Program Files\FFmpeg for Audacity\avformat-55.dll’ (error 127: the specified procedure could not be found.)

This bug http://bugzilla.audacityteam.org/show_bug.cgi?id=866 is probably relevant. The fact that Audacity is also checking PATH seems to imply that the installed FFmpeg in Program Files is not invalid, but “not found”. So it’s the right version of FFmpeg but perhaps there are shared files missing or something like that.


Gale

Gale Andrews

Thank you so much. One of my issue adding silence & exporting tracks resolved & sucessful.

But as far FFMPEG all whatever you have mentioned I tried. Removing from Path, Removing from audacity configuration file everything suggested in this & every forum. Audacity is so Audacious in accepting FFMPEG library while lame is getting accepted lamely (so easily) when I’m loading both simultaneously in same way.

Almost fed up due to more than 10 times uninstall & install business.

Before doing all this deleted/uninstalled all ffmpeg seen anywhere on my lap.

Also ffmpeg folder content neither my screen shot gets copied nor getting attached as.docx.Get me a way to load it for you to see

I don’t think you are installing FFmpeg the same way as LAME. Nowhere do our instructions say to install a second FFmpeg and add it to PATH.

Please follow https://forum.audacityteam.org/t/windows-7-audacity-2-1-2/41682/12 to the letter. When you have done that, launch Audacity and show us that log.

Also note that you don’t need to load FFmpeg dynamically using DLL files through Libraries Preferences. You can choose (external program) when you export then type a command to use any ffmpeg.exe you like. There should be no issues detecting FFmpeg with that method.

If you attach a normal PNG or JPG image without putting it inside a proprietary document format, then you can upload it using these steps: https://forum.audacityteam.org/t/how-to-attach-files-to-forum-posts/24026/1

For example, press the Windows button on your keyboard, type “Snip” (without quotes) then ENTER to open Snipping Tool. Save your image with that tool.


Gale