coubi
December 16, 2009, 10:43pm
#1
Hi.
I want to retrieve informations from tags.
I watch the bus attached to a pipeline for Gst::Message::TAG. I do not
know how to parse the tag. Is there some documentations somewhere?
I want to retrieve the number of tracks and tracks length from
/dev/cdrom file. Is there a Gst way?
Vincent
coubi
December 28, 2009, 1:15am
#2
Hi Vincent,
I have exact the same problem! It’s really badly documented. Did you
find a solution?
Leon
coubi
December 28, 2009, 3:01pm
#3
Hi Leon.
I do not have found a solution using GStreamer.
To parse tag, I think it should exist an parse method for
Gst::MessageTag class. There was one in the old implementation
(https://trac.luon.net/ruby-gstreamer0.10/browser/trunk/ruby-gstreamer0.10/sample/video-player.rb ).
It seems that there is a function in C (gst_message_parse_tag if I
remenber what I am be told on gstreamer irc channel).
I have open a feature request:
https://sourceforge.net/tracker/?func=detail&aid=2922270&group_id=53614&atid=470972
Hope that someone will have time to implement it and to explain how to
use it.
To retrieve infos from cd, I have no idea on how to do it.
Vincent
coubi
December 28, 2009, 3:20pm
#4
I don’t think a lot of people are working on ruby-gst. I thank the ones
that are.
I use ruby-taglib (http://www.hakubi.us/ruby-taglib/ ) to read tags but
maybe you want to take a look at rtaglib
(http://rtaglib.rubyforge.org/ ).
coubi
December 28, 2009, 3:05pm
#5
Hi Vincent,
Thanks! Yeah, I was missing the parse method too. I really find the ruby
gstreamer library very bugy and incomplete
I think I’ll just use exiftool then or maybe a commandline script made
in python
coubi
December 28, 2009, 3:30pm
#6
Oh thanks. I’ll have a go with taglib then!
coubi
January 2, 2010, 2:40pm
#7
Hi Leon.
I upload a patch to the tracker to parse Gst::Message::TAG.
https://sourceforge.net/tracker/?func=detail&aid=2924886&group_id=53614&atid=470971
Not sure it is well written but it seems functional. It add a parse
method to a Gst::Message::TAG object. A hash is returned.