<div dir="ltr"><div>Hello,</div><div>Moving from GnomeMediaProfile to GstEncodingProfile.</div><div><br></div><div>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:</div>
<div><br></div><div>OGG audio. </div><div>CD Quality, Lossy.</div><div>audio/x-raw,rate=44100,channels=2 ! vorbisenc name=enc quality=0.5 ! oggmux.</div><div>---</div><div><br></div><div>In Ubuntu 13.04, I've been advised to use GstEncodingProfile instead.</div>
<div>So I made a small test-program to read all media categories from GStreamer.</div><div><br></div><div>But, unfortunately the gst_encoding_list_available_categories() function returns nothing. The list is empty. Also </div>
<div>gst_encoding_list_all_targets(NULL) returns NULL.</div><div><br></div><div>Here is my test:</div><div><a href="http://www.futuredesktop.org/tmp/gst-test1.c">http://www.futuredesktop.org/tmp/gst-test1.c</a></div><div>
See the function list_audio_profiles().</div><div><br></div><div>Did I miss some libraries or initializations?</div><div>What is wrong with the code? </div><div><br></div><div>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.</div>
<div><a href="http://bazaar.launchpad.net/~osmoma/audio-recorder/trunk/view/head:/src/media-profiles.c">http://bazaar.launchpad.net/~osmoma/audio-recorder/trunk/view/head:/src/media-profiles.c</a></div><div><br></div><div>
Relevant bug report:</div><div><a href="https://bugs.launchpad.net/audio-recorder/+bug/1121376">https://bugs.launchpad.net/audio-recorder/+bug/1121376</a></div><div><br></div><div style>// Alex</div><div style><br></div></div>