[KDE Dot News]
 faq
 flatforty
 contribute
 subscribe
 configure
 search
 rdf

 main
 parent


mp4/aac/m4a support
by Nicholas Fellows on Thursday 15/Apr/2004, @08:23
I've been using Juk for a while now, its taken over pretty much from XMMS as my defacto player. Most of my files are in mp3 format (this is in forsight of buying a hard disk based player, maybe even an iPod if i can afford one!) I have recently come into ownership of a substantial quantity of mp4/m4a files which dissappointingly juk doesnt like to play.

I was going to have a look at the source code for juk and see if there was any way I could implement this but i dont really know where to start.

I have discovered a couple of tools which enable me to play mp4 / m4a / aac files under linux (XMMS being one of them) i discovered a really useful tool which enables me to convert to wav file its called
<A href="http://www.audiocoding.com/download.php">"faad"</A> http://www.audiocoding.com I think mplayer uses it! (unfortunately juk wont play wav's either and recompressing into another lossy format is not a route i wish to travel)

faad also allows the file to be output to stdio, this means it should be a really trivial job to get mp4 working in juk! Please , Please Please implement this feature , or at least give some clues to a clueless person how i might go about adding it myself using these tools; (who hasnt even considered the implications of tag editing!)

nick ...
  Related Links
 ·   Articles on Savanna Says
 ·   Also by Nicholas Fellows
 ·   Contact author

Thread Threshold:

The Fine Print: The following comments are owned by whomever posted them.
( Reply )

Re: mp4/aac/m4a support
by niki on Sunday 05/Jun/2005, @08:30
well... I had a similar problem, and finaly, I tried that...
If you change your mind about recompressing the files...
* If you find a way to play m4a with XMMS, I'm interested!
the following scripts need LAME and FAAD to work...

###########
# m4a2mp3 #
###########
#!/usr/bin/perl -w
use strict;

foreach my $file (@ARGV) {
next if ($file !~ /\.m4a$/i);
my $base = $file; $base =~ s/\.m4a$//i;
system "faad -o \"$base.wav\" \"$file\"";
system "lame -h \"$base.wav\" \"$base.mp3\"";
unlink("$base.wav");
print "$base.m4a converted to mp3.\n";
}

###########
# mp42mp3 #
###########
#!/usr/bin/perl -w
use strict;

foreach my $file (@ARGV) {
next if ($file !~ /\.mp4$/i);
my $base = $file; $base =~ s/\.mp4$//i;
system "faad -o \"$base.wav\" \"$file\"";
system "lame -h \"$base.wav\" \"$base.mp3\"";
unlink("$base.wav");
print "$base.mp4 converted to mp3.\n";
}
[ Reply To This | View ]
Re: mp4/aac/m4a support
by MattoHippo on Saturday 13/Aug/2005, @10:10
Check out http://www.qwirx.com/xmms-plugin-mp4/xmms-plugin-mp4-0.4-1.i386.rpm for the rpm and src's.

I installed the rpm and it worked fine for all of my m4a's. Hope it works for you.
[ Reply To This | View ]
  • Re: mp4/aac/m4a support
    by Chad on Thursday 02/Mar/2006, @05:47
    this works like a champ! Thank you!

    Chad
    [ Reply To This | View ]
Re: mp4/aac/m4a support
by Till on Sunday 05/Mar/2006, @23:17
In case you're still wondering, check
http://www.captain.at/howto-debian-sarge-xmms-mp4-plugin.php
[ Reply To This | View ]
The Fine Print: The previous comments are owned by whomever posted them.
( Reply )

  "Nobody will ever write that kind of HTML code!" -- The KHTML Team
KDE®, "K Desktop Environment", "KDE Dot News", "got the dot?" and the KDE Logo® are trademarks or registered trademarks of KDE e.V. in the European Union, the United States and other countries. All other trademarks and copyrights on this page are owned by their respective owners. Comments are owned by the poster. The rest: Copyright © 2000-2008 KDE e.V. for The KDE Project. For further information or comments on this site, please contact the Webmaster.
[ home | post article | flat forty | subscribe | search | rdf ]