Hi Sebastian, Sebastian Spaeth wrote: > 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) The media engine runs a typefind on this. The media-type (although it looks like a mime-type it is not one, it is the gstreamer internal media type!) serves as a lookup key for the gconf database. The tremor plugin is a oggdemuxer + vorbisdecoder in one elements. Normaly one uses oggdemux ! vorbisdec. You can run the typefind yourself : > gst-typefind test.ogg test.ogg - application/ogg
So the above schema is just fine : [application/ogg,tremor,dsppcmsink] > 2) Is there a debug way to see what gst plugins are actually called in > what order if it starts playing a file? Build gstreamer using debug and copy that onto your device. Then restart the media-engine: GST_DEBUG="*:3" /etc/osso-af-init.d/osso-media-engine restart Please refer to the gstreamer gst-launch man page for more details about log levels and log-domains. > > Thanks > sebastian Stefan _______________________________________________ maemo-developers mailing list maemo-developers@maemo.org https://maemo.org/mailman/listinfo/maemo-developers