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 |
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-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
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:
_______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |