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.
Alright, first, im runnign slackware 10 on kernel 2.6.7 (which i compiled myself, not pat's version) on a dell cpxh notebook.
i have a whole lot of m4a files on an smb share that i have mounted, and so far, nothing will play them except xine. i have flac installed (v1.1) and the xmms flac plugin (reference flac player 1.1, libxmms-flac.so), and neither xmms nor rhythmbox will even open the files, kaboodle will open it and play it, but i get no sound output, and xine can open and play them fine
i am using the newest alsa (compiled from source)
i have no idea whats going on, any ideas? thanks
p.s., i would prefer to play them in rhythmbox (due to its music library feature), but xmms is just as good, thanks
m4a (aka mpeg layer 4 audio) is not related to flac. (I wish it was. . .)
m4a files are AAC files.
There is a way of playing them in XMMS. . . with a lib and a plugin, but I have yet to get this working. It seems to be kinda buggy.
What I did. . .
Download faad (it's an m4a/aac decoder.)
Use it to turn the m4a files into wav files.
Install OGG tools.
Use oggenc to encode the wave files into ogg files.
Then delete the wave and m4a files. . .
Play the ogg files in XMMS or whatever player you like.
There is little to no loss in quality.
I even wrote a script to do all the work for me.
Make sure you have faad, and oggenc programs before running this. . .
And just to be save, make a copy of the m4a files before you run this script, that way if something goes wrong you don't lose your music.
Save the text to a .sh file. (eg. "m4aConvert.sh") and run it by doing "#sh m4aConvert.sh"
So just run this in a directory that has some m4a files in it. If it is on a SMB share then you might want to copy them to your local drive first.
Code:
#!/bin/bash
old_ifs=${IFS}
IFS=$'\n'
echo =================================
echo Ripping m4a files to wave format.
echo =================================
sleep 2
echo
for i in `ls -1t`; do
faad $i
done
echo ================================================
echo Removing m4a files + encoding wave files in OGG.
echo ================================================
sleep 2
echo
rm *.m4a
for i in `ls -1t`; do
oggenc -q 6 $i
done
rm *.wav
echo =====
echo Done!
echo =====
What is left in the directory is just the OGG music files.
Hope this helps you.
I also would really like to know how to get my m4a files to play in rhythmbox or juk. Converting a compressed file to another compression format is not a solution, methinks. Not only does it take a long time -- it degrades the sound quality considerably. Any other ideas?
Sorry I'm an amateur with shell script, but will this work? Any possible improvements? Its basically a copy of a ligh media player on windows I once tried, designed to play all mp3's in a directory:
Quote:
#!/bin/bash
old_ifs=${IFS}
IFS=$'\n'
echo =================================
echo Playing MP3's in directory
echo =================================
sleep 2
echo
Well if madplay has built in AAC support then you would be set. . . . however, the thread starter wants them to play in XMMS and/or rhythmbox. Both are not command-line apps and both offer much more control then a command-line app. . .
Oh and the convertion idea I gave was just a suggestion. . . it's what I did. . . and the ogg files sound much better then most of my MP3s.
I had some problems running that script, as a result of spaces ('\ ') and different defaults for ls on my distribution (Mandrake 10), so I wrote a more compatible/neutral script. Enjoy!
Oh guys! There must be a better way! As an ex audio engineer, I just can't stomach the idea of taking a reasonably well compressed audio file. decompressing it, then re-compressing it to another (slightly inferior, IMO) compression format. To me this is like taking a well-recorded hi-bias tape, making a CD from it, then recording the CD to a normal bias tape. The sound quality degrades with each step of the process.
Are you sure that Linux can't just play M4A files directly when given the proper codecs?
I'm using Mdk10 and i downloaded the Penguin Liberation Front faad2-xmms plugin.
It works for me but i wasn't able to compile this plugin by myself, so thanks to PLF.
Originally posted by webvandals Oh guys! There must be a better way!
There is...
Quote:
Are you sure that Linux can't just play M4A files directly when given the proper codecs?
Sure it can, e.g. there are AAC/MP4 plugins for XMMS and for gstreamer/gst-player which might help with the rhythmbox problem, too. See these Wiki pages on Audiocoding.com, the homepage of the open source AAC/MP4 codecs FAAC and FAAD2:
Sure it can, e.g. there are AAC/MP4 plugins for XMMS and for gstreamer/gst-player which might help with the rhythmbox problem, too. See these Wiki pages on Audiocoding.com, the homepage of the open source AAC/MP4 codecs FAAC and FAAD2:
Right, all Linux players based on FAAD2 are able to do this (Xine, VLC etc.), see the Wiki page about Software Audio Players. I wrote about XMMS and GStreamer/Rhythmbox, because those two were mentioned in this thread. By the way, the new Beep Media Player (forked from XMMS) also has a MP4 plugin now, see this thread on the BMP forum:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.