Creation_time extracted from video container

Carl Karsten carl at nextdayvideo.com
Fri Dec 16 23:47:21 UTC 2016


I can tell you it is pain - different formats store it in different places.

Lucky for me I have a limited number of formats to deal with, here is what
I currently use:

discoverer = GstPbutils.Discoverer()
d = discoverer.discover_uri('file://{}'.format(pathname))
tags= d.get_tags()
dt=tags.get_date_time("datetime")[1]

https://github.com/CarlFK/veyepar/blob/master/dj/lib/tsraw.py#L126-L129



On Fri, Dec 16, 2016 at 2:38 PM, jack <jackstuff3 at gmail.com> wrote:

> Hi Mikl,
> Yes, I was able to get that to work for me, but including all the
> necessary libraries makes my program grow from 50k to 79Mb. So my problem
> is solved, I just want to figure out how to simply open the file and read
> the data.
>
> Jack
>
>
> Sent from my Verizon 4G LTE smartphone
>
>
> -------- Original message --------
> From: Michael Yarochkin <michael.yarochkin at timetronics.be>
> Date: 12/16/16 2:16 AM (GMT-07:00)
> To: Discussion of the development of and with GStreamer <
> gstreamer-devel at lists.freedesktop.org>
> Subject: Re: Creation_time extracted from video container
>
> Hello, Jack
>
>
> This data is extracted by ffmpeg from metadata.
>
> Did you tried to use
>
> https://gstreamer.freedesktop.org/documentation/application-
> development/advanced/metadata.html
> Metadata - gstreamer.freedesktop.org
> <https://gstreamer.freedesktop.org/documentation/application-development/advanced/metadata.html>
> gstreamer.freedesktop.org
> Metadata. GStreamer makes a clear distinction between two types of
> metadata, and has support for both types. The first is stream tags, which
> describe the content of a ...
> Mikl
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161216/d236bb88/attachment.html>


More information about the gstreamer-devel mailing list