Getting metadata from video stream

Sebastian Dröge sebastian at centricular.com
Wed Nov 6 11:51:34 PST 2013


On Mi, 2013-11-06 at 21:34 +0200, Mohammed Sameer wrote:
> 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.

Exactly, the sink should do the rotation/flipping if it can do that but
otherwise playbin should make sure that it happens in software before
the sink.

> > 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 :-)

Don't worry about that, I'm watching the bug reports too.

-- 
Sebastian Dröge <sebastian at centricular.com>
Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131106/afb0ddcd/attachment.pgp>


More information about the gstreamer-devel mailing list