Hello all,<br>I am developing a cross platform application to read data and metadata from audio files. On Linux, I am using Gstreamer.  I am using playbin2 to decode the data and assigning the &quot;audio-sink&quot; of the playbin to an appsink from which I retrieve the data. Is there a way for me to extract the mime type of the compressed audio stream before it is decoded. The reason I need this is that I would like to provide a consistent naming for the actual audio format across all formats. On Windows using Media Foundation, I can key off the media subtype. If I had access to the mime type of the compressed audio, I could key off this mime-type. An example code would look like:<br>
<br><span style="font-family:courier new,monospace">if( strstr(mimetype, &quot;x-vorbis&quot;) != NULL )</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> return &quot;Vorbis&quot;;</span><br style="font-family:courier new,monospace">
<br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">if( strstr(mimetype, &quot;wma&quot;) != NULL )</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace"> return &quot;Windows Media Audio&quot;;</span><br>
<br>The only way I see now is to read the GST_TAG_AUDIO_CODEC and search for string such as MP3, AAC which I do not feel is very robust.<br><br>Any help would be appreciated.<br><br>Regards,<br>Dinesh<br>