Page 5 of 5
Re: Audacity can't find ffmpeg and lame files
Posted: Fri May 06, 2011 5:38 pm
by bgravato
I'm sorry I might have jumped in precipitation here...
Here's the relevant parts of the log:
Code: Select all
17:47:18: Trying to load FFmpeg libraries...
17:47:18: Trying to load FFmpeg libraries from default path, '/usr/local/lib/audacity/libavformat.52.dylib'.
17:47:18: Checking for monolithic avformat from '/usr/local/lib/audacity/libavformat.52.dylib'.
17:47:18: avformat not monolithic
17:47:18: Loading avutil from '/usr/local/lib/audacity/libavutil.50.dylib'.
17:47:18: Loading avcodec from '/usr/local/lib/audacity/libavcodec.52.dylib'.
17:47:18: Loading avformat from '/usr/local/lib/audacity/libavformat.52.dylib'.
17:47:18: Actual avutil path /usr/local/lib/audacity/libavutil.50.dylib
17:47:18: Actual avcodec path /usr/local/lib/audacity/libavcodec.52.dylib
17:47:18: Actual avformat path /usr/local/lib/audacity/libavformat.52.dylib
17:47:18: Importing symbols...
17:47:18: All symbols loaded successfully. Initializing the library.
17:47:18: Retrieving FFmpeg library version numbers:
17:47:18: AVCodec version 0x344802 - 52.72.2 (built against 0x344802 - 52.72.2)
17:47:18: AVFormat version 0x344002 - 52.64.2 (built against 0x344002 - 52.64.2)
17:47:18: AVUtil version 0x320f01 - 50.15.1 (built against 0x320f01 - 50.15.1)
17:47:18: FFmpeg libraries loaded successfully.
And the file list:
Code: Select all
macbookpro:~ bruno$ ls -l /usr/local/lib/audacity/
total 26256
-rwxrwxr-x 1 root wheel 192912 6 Mai 04:45 ffmpeg
-rw-rw-r-- 1 root wheel 35147 23 Mar 21:34 gpl-v3.txt
-rwxrwxr-x 1 root wheel 10269172 6 Mai 04:45 libavcodec.52.dylib
lrwxr-xr-x 1 bruno staff 19 6 Mai 17:47 libavcodec.dylib -> libavcodec.52.dylib
-rwxrwxr-x 1 root wheel 1658104 6 Mai 04:45 libavformat.52.dylib
lrwxr-xr-x 1 bruno staff 20 6 Mai 17:47 libavformat.dylib -> libavformat.52.dylib
-rwxrwxr-x 1 root wheel 129716 6 Mai 04:45 libavutil.50.dylib
lrwxr-xr-x 1 bruno staff 18 6 Mai 17:47 libavutil.dylib -> libavutil.50.dylib
-rwxrwxr-x 1 root wheel 754564 24 Dez 2008 libmp3lame.dylib
-rwxrwxr-x 1 root wheel 369488 6 Mai 04:45 libswscale.0.dylib
lrwxr-xr-x 1 bruno staff 18 6 Mai 17:47 libswscale.dylib -> libswscale.0.dylib
So looks like I have the right libs...
My bad call might have been triggered by the "52" in libavcodec.52.dylib, but that 52 doesn't mean ffmpeg 0.5.2 right?
Re: Audacity can't find ffmpeg and lame files
Posted: Fri May 06, 2011 6:32 pm
by Leland
bgravato wrote:I started audacity it detected ffmpeg... but the old 0.5.2 version...
Decided to take a break from work for a sec and think about this. You're probably seeing the correct version since the FFmpeg 0.6.2 release still uses the 52.xx versions internally. So, you should see these versions in Preferences:
libavutil 50.15. 1
libavcodec 52.72. 2
libavformat 52.64. 2
Leland
Re: Audacity can't find ffmpeg and lame files
Posted: Fri May 06, 2011 6:38 pm
by Leland
bgravato wrote:So looks like I have the right libs...
My bad call might have been triggered by the "52" in libavcodec.52.dylib, but that 52 doesn't mean ffmpeg 0.5.2 right?
Correct. I'd forgotten that as well. Unfortunately there's not much we can do about it. (The version numbers and the forgetfullness.

)
Leland
Re: Audacity can't find ffmpeg and lame files
Posted: Sat May 07, 2011 2:19 am
by billw58
OK, the new DMG is up and installs the FFmpeg libs into the default location. This still doesn't explain why Audacity fails to load them if they are installed in any other location. Or is it just me?
-- Bill
Code: Select all
21:59:35: User-specified path = '/Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavcodec.52.dylib'
21:59:35: User-specified FFmpeg file exists. Success.
21:59:35: Trying to load FFmpeg libraries...
21:59:35: mLibAVFormatPath ('/Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavcodec.52.dylib') is not empty. Loading from it.
21:59:35: Checking for monolithic avformat from '/Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavcodec.52.dylib'.
21:59:35: avformat not monolithic
21:59:35: Loading avutil from '/Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavutil.50.dylib'.
21:59:35: Loading avcodec from '/Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavcodec.52.dylib'.
21:59:35: Loading avformat from '/Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavcodec.52.dylib'.
21:59:35: Actual avutil path /Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavutil.50.dylib
21:59:35: Actual avcodec path /Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavcodec.52.dylib
21:59:35: Error: dlsym(0x81a0c30, avformat_version): symbol not found
21:59:35: Actual avformat path
21:59:35: Importing symbols...
21:59:35: Error: Failed to load symbol av_register_all
Re: Audacity can't find ffmpeg and lame files
Posted: Sat May 07, 2011 5:10 am
by Leland
billw58 wrote:OK, the new DMG is up and installs the FFmpeg libs into the default location. This still doesn't explain why Audacity fails to load them if they are installed in any other location. Or is it just me?
Code: Select all
21:59:35: Loading avformat from '/Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavcodec.52.dylib'.
Nope, I don't believe it is just you. That message is not right at all.
Leland
Re: Audacity can't find ffmpeg and lame files
Posted: Sat May 07, 2011 5:45 am
by Gale Andrews
Leland wrote:Nope, I don't believe it is just you. That message is not right at all.
Other OS X users have had success detecting the old 0.5 FFmpeg in 1.3.13 even if installing 0.5 in arbitrary locations. We should be able to cope with changing FFmpeg versions, but did you ever use 0.5 in 1.3.13 from arbitrary locations? If you wanted you can still get 0.5 here:
http://lame.buanzo.com.ar/FFmpeg_Librar ... on_OSX.dmg
I'm also just wondering if that dodgy installer has somehow caused confusion and if initialising .cfg would help?
Gale
Re: Audacity can't find ffmpeg and lame files
Posted: Sat May 07, 2011 3:12 pm
by billw58
Leland wrote:billw58 wrote:OK, the new DMG is up and installs the FFmpeg libs into the default location. This still doesn't explain why Audacity fails to load them if they are installed in any other location. Or is it just me?
Code: Select all
21:59:35: Loading avformat from '/Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavcodec.52.dylib'.
Nope, I don't believe it is just you. That message is not right at all.
The problem was that I clicked on "libavcodec.52.dylib" instead of "libavformat.52.dylib" in the file-open dialog. I thought you weren't supposed to be able to do that? Here's what happens when I click on the correct file:
Code: Select all
10:53:00: User-specified path = '/Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavformat.52.dylib'
10:53:00: User-specified FFmpeg file exists. Success.
10:53:00: Trying to load FFmpeg libraries...
10:53:00: mLibAVFormatPath ('/Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavformat.52.dylib') is not empty. Loading from it.
10:53:00: Checking for monolithic avformat from '/Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavformat.52.dylib'.
10:53:00: avformat not monolithic
10:53:00: Loading avutil from '/Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavutil.50.dylib'.
10:53:00: Loading avcodec from '/Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavcodec.52.dylib'.
10:53:00: Loading avformat from '/Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavformat.52.dylib'.
10:53:00: Actual avutil path /Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavutil.50.dylib
10:53:00: Actual avcodec path /Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavcodec.52.dylib
10:53:00: Actual avformat path /Users/Bill/Downloads/FFmpeg_v0.6.2_for_Audacity_on_OSX/libavformat.52.dylib
10:53:00: Importing symbols...
10:53:00: All symbols loaded successfully. Initializing the library.
10:53:00: Retrieving FFmpeg library version numbers:
10:53:00: AVCodec version 0x344802 - 52.72.2 (built against 0x344802 - 52.72.2)
10:53:00: AVFormat version 0x344002 - 52.64.2 (built against 0x344002 - 52.64.2)
10:53:00: AVUtil version 0x320f01 - 50.15.1 (built against 0x320f01 - 50.15.1)
10:53:00: FFmpeg libraries loaded successfully.
So put this down to user error. Audacity will load the FFmpeg libraries from an arbitrary location as long as you click on the correct .dylib file when browsing for the FFmpeg libraries. Sorry for the false alarm.
-- Bill
Re: Audacity can't find ffmpeg and lame files
Posted: Sat May 07, 2011 8:55 pm
by Gale Andrews
billw58 wrote:The problem was that I clicked on "libavcodec.52.dylib" instead of "libavformat.52.dylib" in the file-open dialog. I thought you weren't supposed to be able to do that?
Isn't there a filter in the file browse window that says "only avformat.dylib" or similar?
Gale
Re: Audacity can't find ffmpeg and lame files
Posted: Sat May 07, 2011 9:21 pm
by billw58
Gale Andrews wrote:billw58 wrote:The problem was that I clicked on "libavcodec.52.dylib" instead of "libavformat.52.dylib" in the file-open dialog. I thought you weren't supposed to be able to do that?
Isn't there a filter in the file browse window that says "only avformat.dylib" or similar?
No. The Format dropdown is either "Dynamic libraries (*.dylib)" or "All files (*)".
-- Bill
Re: Audacity can't find ffmpeg and lame files
Posted: Thu May 19, 2011 10:15 pm
by blini
@ Chief_Engineer - thnx for the detailed procedure, changing the permissions on the usr/loc/lib folder was my difficulty - up and running now
