MP4(3)
MP4 π MP4GetDuration β get the duration of the movie (file) π¬
okay bestie, welcome to the MP4 File Format Library manual page, section 3 β¨ this one's a lil cutie, it's giving "how long is this movie actually" energy and honestly? we love a simple API π«Ά
β¨ NAME β¨
MP4GetDuration β Get the duration of the movie (file) π₯β±οΈ
πΈ SYNTAX πΈ
#include <mp4.h>
MP4Duration MP4GetDuration(
MP4FileHandle hFile
)
look at her, so clean, so minimal, no notes π
π ARGUMENTS π
hFileβ Specifies the mp4 file to which the operation applies. basically you're handing her the file you wanna interrogate, and she's like "bet, say less" ποΈ
π¦ RETURN VALUES π¦
She hands you back the duration of the movie (file), measured in movie (file) time scale units. yes, those specific units, we'll get into it, stay with me πβ¨
π DESCRIPTION π
So MP4GetDuration returns the maximum duration of all the tracks in the specified mp4 file. not just one track, not an average, the MAX. she's finding the longest track in the whole file and reporting that as the movie's duration, main character behaviour tbh π
β οΈ Caveat, bestie, listen up: the duration is in movie (file) time scale units. Not seconds. Not milliseconds. Movie time scale units. Do NOT come for her later being like "why is this number so weird", because she told you π
π SEE ALSO π
MP4(3)MP4GetTimeScale(3)MP4ConvertFromMovieDuration(3)
ngl the third one is your bestie for converting that duration into something a human can read, iykyk π
and that's the whole page fr fr π brought to you by Cisco Systems Inc., Version 0.9, and this lil MP4(3) moment β go forth and get those durations, periodt ππ
β¨
π¦ where this page comes from
- fedora 43: libmp4v2-devel 2.1.0-0.34.trunkREV507.fc43 Β· LicenseRef-Callaway-MPLv1.1
- fedora 43: libmp4v2-devel 2.1.0-0.34.trunkREV507.fc43 Β· LicenseRef-Callaway-MPLv1.1
- fedora 44: libmp4v2-devel 2.1.0-0.35.trunkREV507.fc44 Β· LicenseRef-Callaway-MPLv1.1
- fedora 44: libmp4v2-devel 2.1.0-0.35.trunkREV507.fc44 Β· LicenseRef-Callaway-MPLv1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms