Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 May 2004 11:29:14 -0700
From:      Peter <peter@gee.kz>
To:        gnome@freebsd.org
Subject:   Getting rhythmbox-0.8.2 to play nicely with m4a
Message-ID:  <20040501182914.GA37247@gee.kz>

next in thread | raw e-mail | index | archive | help
Hello,

I'm sorry if this goes against the charter of this list, but I thought I'd =
share what I learned today with others.

I use a mixed envioronment of OS and hardware at home, and ended up decidin=
g on m4a for music formats for space reasons on my iPod.

I like to be able to play audio on my -CURRENT machine, and like the way rh=
ythmbox works, so I decided to get m4a working with it. This is what I did.

The sparse documentation for rhythmbox says that the mp4.h files from faad =
are what work with rhythmbox, but I found that mpeg4ip is actually what wor=
ked for me.

Install ports/multimedia/mpeg4ip
Compile and rhythmbox-0.8.2 with the xine backend, and make sure to edit th=
e Makefile to include --enable-mp4 as a CONFIGURE_ARG.
My install of gnome-2.6 does not seem to recognize audio/x-m4a as a MIMEtyp=
e, so I also had to edit /usr/local/share/mime/packages/freedesktop.org.xml=
 and add the following to it:

--- freedesktop.org.xml.orig	Sat May  1 11:25:36 2004
+++ freedesktop.org.xml	Sat May  1 10:57:28 2004
@@ -2420,6 +2420,25 @@
     </magic>
     <glob pattern=3D"*.mp3" />
   </mime-type>
+  <mime-type type=3D"audio/x-m4a">
+    <comment>MP4 audio</comment>
+    <comment xml:lang=3D"az">MP4 audio fayl=C4=B1</comment>
+    <comment xml:lang=3D"cy">Sain MP4</comment>
+    <comment xml:lang=3D"fi">MP4-=C3=A4=C3=A4ni</comment>
+    <comment xml:lang=3D"fr">audio MP4</comment>
+    <comment xml:lang=3D"hu">MP4-hang</comment>
+    <comment xml:lang=3D"nl">MP4 geluidsbestand</comment>
+    <comment xml:lang=3D"nn">MP4-lyd</comment>
+    <comment xml:lang=3D"no">MP4-lyd</comment>
+    <comment xml:lang=3D"sr">MP4 =D0=B7=D0=B2=D1=83=D1=87=D0=BD=D0=B8 =D0=
=B7=D0=B0=D0=BF=D0=B8=D1=81</comment>
+    <comment xml:lang=3D"sv">MP4-ljud</comment>
+    <magic priority=3D"50">
+      <match value=3D"0xfffb" type=3D"big32" offset=3D"0" />
+      <match value=3D"ftypM4A" type=3D"string" offset=3D"0" />
+      <match mask=3D"0xfff0" value=3D"0xfff0" type=3D"big16" offset=3D"0" =
/>
+    </magic>
+    <glob pattern=3D"*.m4a" />
+  </mime-type>
   <mime-type type=3D"audio/x-mp3-playlist">
     <comment>MP3 playlist</comment>
     <comment xml:lang=3D"no">MP3-spilleliste</comment>

and run the following as root:
update-mime-database /usr/local/share/mime/

After that, everything worked nicely.

Hope that helps others, and I'm sorry if this list isnt the right place to =
send these sorts of things.

Best regards,

Peter



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040501182914.GA37247>