How to use gst_encoding_list_available_categorie() function?

Alexander Botero alex.botero at gmail.com
Tue Feb 12 02:51:40 PST 2013


Hello,
Moving from GnomeMediaProfile to GstEncodingProfile.

I have earlier used GnomeMediaProfile (from libgnome-media-profiles
library) to find out all installed audio formats. GnomeMediaProfile has
always returned a list of installed audio-plugins with name and default
pipeline fragment for audio playback or recording. For example it has
returned:

OGG audio.
CD Quality, Lossy.
audio/x-raw,rate=44100,channels=2 ! vorbisenc name=enc quality=0.5 ! oggmux.
---

In Ubuntu 13.04, I've been advised to use GstEncodingProfile instead.
So I made a small test-program to read all media categories from GStreamer.

But, unfortunately the gst_encoding_list_available_categories() function
returns nothing. The list is empty. Also
gst_encoding_list_all_targets(NULL) returns NULL.

Here is my test:
http://www.futuredesktop.org/tmp/gst-test1.c
See the function list_audio_profiles().

Did I miss some libraries or initializations?
What is wrong with the code?

Here is my old implementation that uses hardcoded values on Ubuntu 13.04
because libgnome-media-profiles returns nothing. I want to port this module
to GstEncodingProfile.
http://bazaar.launchpad.net/~osmoma/audio-recorder/trunk/view/head:/src/media-profiles.c

Relevant bug report:
https://bugs.launchpad.net/audio-recorder/+bug/1121376

// Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130212/2e69b390/attachment.html>


More information about the gstreamer-devel mailing list