// Compile with valac -g --save-temps --pkg=gstreamer-pbutils-0.10 --pkg=gio-2.0  discoverer.vala

public static int main (string[] args) {
    Gst.init(ref args);
    
    Gst.Discoverer d;
    Gst.DiscovererInfo i;
    try {
        d = new Gst.Discoverer((Gst.ClockTime)(10*Gst.SECOND));
        try {
            var uri = File.new_for_path("/home/andrew/Music/Andrea Bocelli/Cieli di Toscana/Andrea Bocelli - Cieli di Toscana - 03 - E Sara' A Settembre (Someone Like You).mp3").get_uri();
            i = d.discover_uri(uri);

            i.get_tags();

            
        } catch (Error e) {
            stdout.printf(e.message+"\n");
        }
    } catch (Error e) {
        stdout.printf(e.message+"\n");
    }
    
    return 0;
}
