Creation_time extracted from video container

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Creation_time extracted from video container

jackson80
Greetings,

I am trying to determine if I can get creation_time from a video file using gstreamer.
I know I can get it using ffprobe but I cannot seem to find a way using gstreamer.
Searching the code, I know the gst-libav library has the ffmpeg library.

Can this be done in gstreamer through a program call? (Not command line).
I want this to display the clock capture time of a video, not just 0 counting up to X minutes.

Thanks,
Jack

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Creation_time extracted from video container

Mikl

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

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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Creation_time extracted from video container

jackson80
In reply to this post by jackson80
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 <[hidden email]>
Date: 12/16/16 2:16 AM (GMT-07:00)
To: Discussion of the development of and with GStreamer <[hidden email]>
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

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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Creation_time extracted from video container

Carl Karsten-2
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 <[hidden email]> 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 <[hidden email]>
Date: 12/16/16 2:16 AM (GMT-07:00)
To: Discussion of the development of and with GStreamer <[hidden email]>
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 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel