[maemo-developers] [maemo-developers] Summary of my ogg adventures (still unresolved)

From: Sebastian Spaeth Sebastian at SSpaeth.de
Date: Thu Nov 9 10:58:28 EET 2006
Tigert recommended to post to the developers list and have this issue 
taken in the unresolved issues list if nobody knows the answer. I've 
talked to three people which all ran in the exact same problem when 
following the maemo.org documentation instructions. So here it goes:

I would like some Nokians to help me to understand how osso_media_server 
uses gconfkeys to determine the gst plugins to use for a certain media 
type (the instructions on the maemo.org page seem to be wrong).I don't 
need them to explain to me the secret nature of DSP hardware etc.

I try to install ogg support according to:
http://maemo.org/platform/docs/multimedia/getting_started.html

After installing libgstivorbis.so and libvorbisidec.so (and the 
gstreamer-tools) *I am able to play oggs from the command line*.

"gst-launch-0.10 filesrc location=blah.ogg ! tremor ! dsppcmsink"

works just fine and plays the ogg file with a little over 20% CPU usage 
(according to top). I also installed the mime-type for ogg and the file 
manager recognizes ogg files as "audio/x-vorbis". (Clicking on it in 
file manager opens the music player). So far so good.
------------------------------
Now comes the problem:
This schema file is supposed to tell osso_media_streamer to launch 
...!tremor!dsppcmsink for ogg files. But it doesn't work.

<gconfschemafile><schemalist><schema> 
<key>/schemas/apps/osso/osso_media_server/audio/application_ogg</key>
<applyto>/apps/osso/osso_media_server/audio/application_ogg</applyto>
<owner>osso_media_server</owner>
<type>list</type>
<list_type>string</list_type>
<default>[application/ogg,tremor,dsppcmsink]</default>
<locale name="C"></locale>
</schema></schemalist></gconfschemafile>

I get a playback error and osso_media_server consumes 100% CPU until 
killed. So obviously it is doing different things than just calling 
"gst-launch filesrc location=blah.ogg ! tremor ! dsppcmsink" (again, 
this works on the 770 command line) but I cannot see why it would get 
stuck like this.
-----------------------------
Help would be appreciated. More specifically:

1) How does osso_media_streamer decide which audio schema to use for a 
file? (e.g. how does it get from mime-type: audio/x-vorbis to the 
application/ogg schema. That connection seems to be never made)
2) Is there a debug way to see what gst plugins are actually called in 
what order if it starts playing a file?

Thanks
sebastian

More information about the maemo-developers mailing list