[maemo-developers] Using gstreamer to add flac audio to Media Player on Maemo 3.0/N800

From: Stefan Kost ensonic at hora-obscura.de
Date: Sat Jun 9 20:32:23 EEST 2007
hi mark,

its very unfortunate, but the media player has a hard-coded extension filter. If
you name the files <song>.flac.mp3 it will play in media player. This will be
fixed in the future.

Stefan

Mark Cannon wrote:
> I am trying to add the audio type ."flac" to Media Player.
> I roughly followed the instructions for Maemo 2.2.
> 
> I am able to use
> 
> "gst-launch-0.10 filesrc location=song.flac !flacdec !audioconvert!dsppcmsink"
> 
> to play the songs, so I have both libraries (flac & gstreamer-1.0) set up 
> correctly. 
> 
> I have the icons set up and when I click the song twice, Media_Player 
> starts up and does nothing. It still cannot see files that end in .flac.
> 
> Looking at /etc/gconf/schemas/osso_media_server.schema, it appears 
> some sort of indirection is occurring using the file osso-thumbnail-libid3.entries
> (the osso_media_server.schema entries refer to x-id3)
> 
> Anyways, I am not sure what I should be doing to get media_server to process 
> flac files (if it is possible.)
> 
> The schema I tried was osso_media_server_flac.schema,
> 
> gconfschemafile>
>    <schemalist>
>       <schema>
>          <key>/schemas/apps/osso/osso_media_server/audio/application_x-id3</key>
>          <applyto>/apps/osso/osso_media_server/audio/application_x-id3</applyto>
>          <owner>osso_media_server</owner>
>          <type>list</type>
>          <list_type>string</list_type>
>          <default>[application/application/x-id3,flacdec,audioconvert,dsppcmsink]</default>
>          <locale name="C"> </locale>
>       </schema>
>    </schemalist>
> </gconfschemafile>
> 
> with the osso-thumbnail-libid3.entries changed to 
> 
> <gconfentryfile>
>   <!--
>        When editing, synchronize this with debian/...postrm.in
>        so keys would be uninstalled too
>   -->
> 
>   <entrylist base="/apps/osso/osso/thumbnailers">
> 
>     <entry>
>       <key>audio at mp3/command</key>
>       <value><string>/usr/bin/osso-thumb-libid3</string></value>
>     </entry>
> 
>     <entry>
>       <key>audio at x-mp3/command</key>
>       <value><string>/usr/bin/osso-thumb-libid3</string></value>
>     </entry>
> 
>     <entry>
>       <key>audio at flac/command</key>
>       <value><string>/usr/bin/osso-thumb-libid3</string></value>
>     </entry>
> 
>     <entry>
>       <key>audio at x-flac/command</key>
>       <value><string>/usr/bin/osso-thumb-libid3</string></value>
>     </entry>
> 
>     <entry>
>       <key>audio at x-m4a/command</key>
>       <value><string>/usr/bin/osso-thumb-libid3</string></value>
>     </entry>
> 
>     <entry>
>       <key>audio at x-mp2/command</key>
>       <value><string>/usr/bin/osso-thumb-libid3</string></value>
>     </entry>
> 
>   </entrylist>
> 
> </gconfentryfile>
> 
> 
> I am not sure how you process the entries file, gconftool-2 does not
> like process them directly.
> 
> I tried a few other schema changes/ideas, but to no avail.
> 
> Has anyone successfully added flac or other media to media_player?
> 
> Thanks,
> Mark

More information about the maemo-developers mailing list