[gst-devel] Fwd: Writing tags with gst-python

Rod Begbie rodbegbie at gmail.com
Tue Jun 7 10:29:06 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

I haven't had any replies to my mail.  I figured I'd try resending
it, in case someone in the know was at GUADEC and distracted!

Any info appreciated.

Rod.

- ---------- Forwarded message ----------
From: Rod Begbie <rodbegbie at gmail.com>
Date: May 30, 2005 2:11 AM
Subject: Writing tags with gst-python
To: gstreamer-devel at lists.sourceforge.net


Hi there.

I'm in the middle of my first stab at using gst-python for an app I'm
trying to build for myself (a homebrew CD->Flac ripper).  However,
I've hit a bit of a brick wall with regards to setting metadata tags
on the FLAC files I'm creating.

Can someone point me in the direction of the correct way to do it?
I've spent roughly 3 hours Googling away and prodding at the python
command line, but have come-up empty handed.  Any suggestions?

Snip of my source below.

Cheers,

Rod.


    cdp = gst.element_factory_make("cdparanoia", "ripper")
    cdp.set_property("device", "/dev/cdroms/cdrom0")
    cdp.set_property("paranoia-mode", 255)
    track_format = gst.format_get_by_nick("track")
    src_pad = cdp.get_pad("src")

#    tags = gst.TagList()
#    tags["title"] = "Kill Yr Boyfriend"
#    tags["artist"] = "Bis"
#    tags["track-number"] = "16"
#    tags["track-count"] = "19"
#    tags["album"] = "Radio One yadadadada"
    flac = gst.element_factory_make("flacenc", "encoder")

    sink = gst.element_factory_make("filesink", "sink")
#    sink = gst.element_factory_make("osssink", "sink")
    sink.set_property("location", "/home/rod/test.flac")

    bin = gst.Pipeline()
    bin.add_many(cdp, flac, sink)
    gst.element_link_many(cdp, flac, sink)

- --
:: Rod Begbie :: http://groovymother.com/ ::

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)

iQEVAwUBQqXY4zqEX5G8Qsk9AQhz6AgAmRecDqNaOX3zC7GkwHg8kU/L2C2vpk93
bOxAn6zHKFfKZZowwc0MbxJQzd9BPrW1xw44ENc34QGZH9BgpmAWOpAhEbVoYJUg
DvkDnBwPhZEyGDCFWBOMvTUYea7cEktUZ0pvqkoAwOfF+OHBT0suyj+jHaaAxICg
e4UYWIaxvBVtU3LZGQRrr9QNu7Oyx+SKSJJd+S7vOMLxsJ1Y3LSc/d3KWwbAECmw
OEYbZv0rFJ+PZRuDAR0YJ7AheFX9bSsxlljSy38X/RZxfw7ONgVsPITBgYBx9TiL
jqoz5bNxMSwmr3B3ZoWMzadMi+b/L16zFx0VaubwaRYFHyojeENBsw==
=cWbq
-----END PGP SIGNATURE-----




More information about the gstreamer-devel mailing list