Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am a student in my local college's choir. Our director sends us emails containing our vocal parts from her cell phone. I convert these files to mp3 and then play them through mpg123 or some other program. The file I get in my email is always called winmail.dat. I run tnef on this file and get a m4a. I then run another script on the m4a to get an mp3. I recently converted to Slackware. I'm used to this "just working", so I'm a bit lost. ffmpeg reports that it can't convert my file because of Unknown encoder 'libmp3lame'. Here's the full output:
Thank you to anyone who can assist me in diagnosing and/or solving this issue. I have researched on google. I have reinstalled ffmpeg, and lame from slackbuilds.org. It still doesn't work. I even installed winff, but it reported the same issue. I prefer to work from my terminal, but I will consider GUI programs if they'll give me what I need.
Last edited by maschelsea; 01-26-2017 at 04:47 PM.
It reports "Unknown encoder libmp3lame" because it has been built without "--enable-libmp3lame" in its configuration.
There are Linux static builds of FFmpeg available to use until you get around to rebuilding your FFmpeg with libmp3lame enabled.
Here ---> https://www.johnvansickle.com/ffmpeg/
OK. I clicked your link and grabbed ffmpeg-git-64bit-static.tar.xz, but now how do I install it the Slackware way, which usually includes running installpkg on a *.tgz file? I've got:
I looked at readme.txt, but it didn't tell me anything useful. Do I just mv these files over to /opt/bin and call it done? Is there something else I should be doing with them?
In the first paragraph on that web page is written: Just unpack and run ./ffmpeg
After unpacking it, change directory into the folder and run the command.
I did that before my last post. I assumed that there would be some semi-complicated process I would have to launch in order to install it. I guess I'm just moving these files to /opt/bin and let them live there.
let's take a step back:
1) why do you think you need to transcode that .m4a? can't you just play it natively?
2) if you really have to, does it have to be mp3? couldn't it be also, for example, .ogg (it's a better codec anyway)?
How does one play a *.m4a on Linux, especially from a terminal? Most of my machines are older legacy-type systems, so I don't use a lot of GUI programs when I don't have to.
I understand.
For years, when I would download audio files encoded FLAC or other uncompressed formats, I would convert them to CD quality 128 kbs mp3 solely for the sake of file size and the fact that rumor had it most people cannot distinguish the difference in quality of sound between the compressed mp3 and uncompressed formats.
Last winter I had time on my hands and converted a couple hundred vinyl albums to digital, after editing out clicks and pops on the original 32bit float .wav recordings and listening to them, comparing them to mp3 versions of the same tracks I already had, I decided not to convert the .wav to mp3 since storage space is cheap nowadays, the quality of sound blows away mp3 versions recorded off CDs.
VLC will play m4a from command line.
iirc m4a is an apple codec and therefore not free and therefore not available on all linux systems.
the same goes for mp3.
that's why i suggested transcoding to .ogg instead - it's free and is most probably already installed and plays on virtually every linux system, incl. android.
however, VLC is usually a good solution for this kind of problem.
opus is a more modern audio codec that doesn't suck. Not that it matters much coming from an mp3 source. You're probably better off going aac with most video type things. With faad being the decoder and faac being the encoder. You might just not have libmp3lame installed, or the -dev variant if you built ffmpeg from sources. You might check slackbuilds.org for mp3lame to see if it's available going that route. Not seeing it there myself, so either it's part of slackware, or unavailable, except from official project source code.
- nobody said that m4a sucks; i can only assume that it is not playable natively on a standard slackware install, hence the need to transcode.
- all this has nothing to do with video, and if any transcoding is necessary i think ffmpeg is a sane choice.
on a sidenote, i read today that mp3 is not licensed anymore (not sure if it's open source, but it is now free).
but i'll say it again, .ogg audio is a widely supported format, it's free in every sense, most linuxes support it ootb, and it's actually much better than mp3. just saying.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.