Inquire a file for length of movie

Michael Gruner michael.gruner at ridgerun.com
Fri Aug 3 01:22:43 UTC 2018


Hi Jerry

Take a look at gst_element_query_duration:

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html#gst-element-query-duration

if you need to do it programmatically. For inspection purposes you may use gst-discoverer-1.0

Michael
RidgeRun

> On Aug 2, 2018, at 18:17, Jerry Geis <jerry.geis at gmail.com> wrote:
> 
> Is there a way with gstreamer to get the duration in minutes of the movie ?
> In this case I don't want to play the file - just get the length of the movie.
> 
> Thanks,
> 
> Jerry
> _______________________________________________
> 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/20180802/baebb7d9/attachment-0001.html>


More information about the gstreamer-devel mailing list