Inquire a file for length of movie

David Ing ding at panopto.com
Fri Aug 3 01:26:12 UTC 2018


If you are just trying to discover the propreties of a media file from C or
C++ code:
https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/GstDiscoverer.html

gst_discoverer_new
gst_discoverer_discover_uri
gst_discoverer_info_get_duration

On Thu, Aug 2, 2018 at 6:22 PM, Michael Gruner <michael.gruner at ridgerun.com>
wrote:

> 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
>
>
> _______________________________________________
> 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/1d760f03/attachment.html>


More information about the gstreamer-devel mailing list