Inquire a file for length of movie

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

Inquire a file for length of movie

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

Re: Inquire a file for length of movie

Michael Gruner
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 <[hidden email]> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

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

Re: Inquire a file for length of movie

David Ing
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 <[hidden email]> 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 <[hidden email]> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
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