Getting metadata from video stream

Mohammed Sameer msameer at foolab.org
Wed Nov 6 03:59:11 PST 2013


On Mon, Nov 04, 2013 at 09:50:50AM +0100, Sebastian Dröge wrote:
> On Sa, 2013-11-02 at 15:20 +0200, Mohammed Sameer wrote:
> > On Tue, Oct 29, 2013 at 08:41:05AM +0000, Sebastian Dröge wrote:
> > > On Mo, 2013-10-28 at 03:51 -0700, Blazej wrote:
> > > > Hello,
> > > > 
> > > > Thanks for suggestion!:) I cannot see this parameter in the output of
> > > > gst-discoverer, but maybe it's because I am limited to 0.10 version of
> > > > gstreamer. 
> > > > 
> > > > Also, I did some research and found out that this kind of information is
> > > > stored in 'Atoms', which are part of MPEG-4 standard. In such case maybe it
> > > > is not supposed to be displayed by gst-discoverer, since it seems to display
> > > > only the generic information about a file. But on the other hand, if ffprobe
> > > > can detect this...
> > > > Maybe these parameters should be accesible via qtdemux somehow?
> > > 
> > > I think extracting that information is currently not supported and
> > > support for that has to be added to qtdemux. It should use the
> > > image-orientation tag probably.
> > 
> > I think this is the rotation extracted from tkhd Atom transformation matrix.
> > 
> > There is a bug https://bugzilla.gnome.org/show_bug.cgi?id=679522 about that
> > with a patch that extracts the info but it doesn't yet export it.
> > 
> > I'm personally interested in that issue but I'm not sure how should the data
> > be exported.
> 
> See my comment in that bug :) For simple things we can export it via the
> image-orientation tag, but additionally the complete matrix should
> probably be exported as a GstMeta for the general case.

Thank you Sebastian for the reply.

I suggest we move the discussion to bugzilla then ;-)

image-orientation tag could be used indeed but we also need the GstMeta bits so sinks
like xvimagesink can rotate the video automatically.

The matrix also have width and height "adjustments". I am not sure how the GstMeta API bits
should look like. I can try to implement but we need an API draft I guess?

I think we also need a way to hand over such a matrix to mp4mux while we are encoding.

Cheers,

-- 
GPG-Key: 0xA3FD0DF7 - 9F73 032E EAC9 F7AD 951F  280E CB66 8E29 A3FD 0DF7
Debian User and Developer.
Homepage: www.foolab.org


More information about the gstreamer-devel mailing list