Get tags from a music file

Χρήστος Τριανταφύλλης christriant1995 at gmail.com
Thu Feb 23 10:51:03 PST 2012


i have written this

import pygtk
import gobject
gobject.threads_init()
import pygst
import gst
from gst.extend import discoverer
import gst.pbutils

f = "/home/chris/music.mp3"

newitem = gst.pbutils.Discoverer(50000000000)
info = newitem.discover_uri("file:///home/chris/music.mp3")
tags = info.get_tags()
print tags


dont pay attetion at the imports!
it works but the result is <GstTagList at 0x9fbf138>
how i can make it into a list?

Στις 23 Φεβρουαρίου 2012 5:47 μ.μ., ο χρήστης Χρήστος Τριανταφύλλης <
christriant1995 at gmail.com> έγραψε:

> ok i will look into it later!
> if i face a problem i will replay here!
>
>
> 2012/2/23 Tim-Philipp Müller <t.i.m at zen.co.uk>
>
>> On Thu, 2012-02-23 at 17:29 +0200, Χρήστος Τριανταφύλλης wrote:
>> > no? ok thanks for your help!
>> >
>> >         is there any documentation about discoverer that i can read?
>>
>> There's documentation for the C API:
>>
>> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstdiscoverer.html
>>
>> GstDiscoverer will give you one or more tag lists (GstTagList), which is
>> where you get most other metadata information from, such as artist,
>> title, track number, etc.
>>
>> Cheers
>>  -Tim
>>
>>
>> _______________________________________________
>> gstreamer-devel mailing list
>> gstreamer-devel at lists.freedesktop.org
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20120223/cc050809/attachment-0001.htm>


More information about the gstreamer-devel mailing list