GNOME Bugzilla – Bug 104360
Some more media-info fields
Last modified: 2005-03-25 19:23:41 UTC
It would be great if the media-info api could also provide the following information: For audio: channels, samplerate For video: x & y resolution
Isn't this supposed to be done by gst-plugins/gst-libs/gst/audio/audio.h and ~video/video.h (libgstaudio/libgstvideo)? Actually, resolution isn't implemented yet in video (only fps), but that's not hard to add. Code would look like something as attached. If that's ok, I'll apply it and close this bug.
Created attachment 13966 [details] [review] Example code for getting width/height of a video
Ah, that looks like what I was looking for, great. :) Though, media-info would need to wrap these things by providing it's own fields for the stuff or something, since media-info does not expose a GstPad.
The idea is to use (for example) the pads of your audio and video sink for getting these properties.
Yes, but when just getting metadata for incorporation in the rhythmbox library we are not ubilding a pipeline with a sink or something. So, that's why I'm asking for media-info support for those values..
what's the status of this one guys ? i suppose this kind of info is gathered with the other tags (a/v codec, and the like)
Stephane, PLEASE don't assign milestones on bugs that are not moving for the next release !
This is done in playbin nowadays. Media-info is old and unused nowadays.