LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 11-22-2012, 02:11 PM   #1
Chey
LQ Newbie
 
Registered: Nov 2012
Location: US
Distribution: Slackkware 14.0
Posts: 8

Rep: Reputation: Disabled
Audacity will not play or convert WMA type files


Hi All,

I'm a newbie here, that has been lurking and reading all the good info posted and have tried out many of the suggestions given. Let me thank you all for your efforts.

My problem is that Audacity will not open or let me import any WMA files.

I'm using Slackware 14, and have compiled and installed the following from Slack.org: Audacity, wxGTK, x264, sound touch, twolame, lame, and ffmpeg.

Trying to open a wma file, I get "Audacity cannot open this type of file due to patent restrictions. You need to convert it to a supported audio format, such as WAV or AIFF."

So I import and get the same message as above.

I know it is something simple that I'm missing and would appreciate any help.

Thank you!
 
Old 11-22-2012, 02:38 PM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,504

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
audacity is not yet compatible with ffmpeg-0.11.x (the version on slackbuilds.org for slackware-14.0) so it doesn't use it for opening that kind of files (as its not compatible, support for ffmpeg it's explicitly disabled in the slackbuild): as the message says, you have to convert first the file from wma to wav using ffmpeg, like this
Code:
ffmpeg -i sample.wma sample.wav
then you can open the .wav with audacity
 
Old 11-22-2012, 10:41 PM   #3
jefro
Guru
 
Registered: Mar 2008
Posts: 12,087

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
I assume ponce is correct but see this also.

From
http://manual.audacityteam.org/o/man...#installffmpeg

"
Linux/Unix
Some Linux distributions (for example, Ubuntu) now package Audacity with MP3 encoding and FFmpeg support already linked dynamically to the relevant system libraries. In these packaged builds there is no need to locate LAME or FFmpeg, so Audacity will have no "Libraries" Preferences. Users compiling Audacity from source code must still follow the directions below.

You may download (or build) a suitable FFmpeg library for your own purposes. To build, obtain the source code from the FFmpeg project. If you download a pre-built library, this might be either a "shared" or "static" build. A static build consists of a single libavformat library, whereas a shared build has at least three libraries (libavformat, libavcodec and libavutil). It is recommended to use a shared build, but Audacity will also work with a static build.

If you compile Audacity from source code, it will link to the installed FFmpeg headers, which should always be compatible with an installed FFmpeg binary.

Warning icon FFmpeg version information: Audacity should support building against FFmpeg 0.5 through 0.8. It may not currently be possible to build Audacity against later versions of FFmpeg.
Locating the FFmpeg library manually

If you installed FFmpeg while Audacity was running, then the first time you use FFmpeg to import or export, Audacity will ask you to configure Preferences to locate the FFmpeg library. To do this, access Preferences then click the Locate... button, then Browse....
"
FFmpeg Find Library and Download buttons

If the "FFmpeg Library Version" says "not found":

Click "Find Library".
If a "Success" message indicates Audacity has now automatically detected the library and asks if you want to detect them manually, click "No", then OK to close Preferences.
If the "Locate FFmpeg" dialog appears, click "Browse...".
Navigate to the avformat library, and select it. It may have different names, such as "avformat-52.dll" on Windows, "libavformat-52.dylib" on Mac or "libavformat.so.52" on Linux.
Click "Open" then "OK", and "OK" again to close Preferences.

"FFmpeg Library Version" should now show a number. If not, you may have installed the wrong libraries. Click the "Download" button to obtain the correct library for your operating system.
 
Old 11-23-2012, 12:14 PM   #4
Chey
LQ Newbie
 
Registered: Nov 2012
Location: US
Distribution: Slackkware 14.0
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks Ponce,

Command line conversion works fine. Seems as though it is something in Audacity code that prevents it from picking up the ffmpeg library. Lame is picked up when I recompiled.
 
Old 11-23-2012, 12:17 PM   #5
Chey
LQ Newbie
 
Registered: Nov 2012
Location: US
Distribution: Slackkware 14.0
Posts: 8

Original Poster
Rep: Reputation: Disabled
Jefro,

Thanks for the info and links. I'm off to hunt down older versions of ffmpeg and try it out.

Once again, thanks to all and keep up the good work!
 
Old 11-23-2012, 12:26 PM   #6
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 2,504

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
Quote:
Originally Posted by ponce View Post
support for ffmpeg it's explicitly disabled in the slackbuild
go for ffmpeg-0.10.x, I think it should build fine with the script from slackbuilds.org, and then, as the README says, launch the build script passing the parameter FFMPEG=yes
 
Old 11-23-2012, 02:05 PM   #7
Chey
LQ Newbie
 
Registered: Nov 2012
Location: US
Distribution: Slackkware 14.0
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thank you Ponce!!!!!!!!!!!

Although I went with the ffmpeg-0.8.7 version, I used the SlackBuild script, installed it, then redid the Audacity build with the parameter you gave.

I now can open a WMA file in Audacity and it converts it. All is working!!

Thank you once again, now let me see what other trouble I can get into!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I play .wma with DRM or convert to mp3? fakie_flip Linux - Software 11 03-18-2007 11:01 AM
how to play wma files serafimg Ubuntu 6 12-30-2006 03:17 PM
LXer: Editing WMA files with Audacity LXer Syndicated Linux News 0 12-24-2005 11:46 AM
For people how want to play WMA files without converting MP3 files waelaltaqi Linux - Software 15 11-17-2005 09:30 AM
Any program that can convert mp3 files to wma? josh_hd_new Linux - Newbie 1 01-21-2005 03:03 AM


All times are GMT -5. The time now is 09:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration