Getting metadata from video stream

Mohammed Sameer msameer at foolab.org
Wed Nov 6 11:34:13 PST 2013


On Wed, Nov 06, 2013 at 01:18:26PM +0100, Sebastian Dröge wrote:
> On Mi, 2013-11-06 at 13:59 +0200, Mohammed Sameer wrote:
> > 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.
> 
> Yeah, or videoflip could handle it (which it already does in git
> master). Needs some magic integration in playbin probably :)

I don't think we should flip them because xvideo or gl
might be capable of doing the rotation more efficiently so
we should delegate the rotation and transformation to them.

> > 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.
> 
> I think having the implementation of that GstMeta as an API proposal
> would be best. Ideally with additionally patches to use it in several
> plugins, so one gets a better idea if it's suitable.

I will try to work on that in the upcoming few days whenever life permits ;-)

> But you're right, let's better handle that in the bug report :)

I'd love to but I am afraid I'll lose you if we move there :-)

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