MP4(3)
β¨ NAME β¨
MP4GetTrackVideoFrameRate β get the video frame rate of the specified video track. that's her whole job and she eats every single time π
this page lives in the MP4 File Format Library manual, so like, yes, it's MP4(3), we're in the right place bestie π«Ά
πΈ SYNTAX πΈ
#include <mp4.h>
float MP4GetTrackVideoFrameRate(
MP4FileHandle hFile,
MP4TrackId trackId
)
the way that #include <mp4.h> has to be there first or nothing works, iconic honestly π
π ARGUMENTS π
hFileβ specifies the mp4 file to which the operation applies. like, which file are we even doing this to, girl, tell me π§trackIdβ specifies the track for which the video frame rate is desired. yes bestie, the specific video track, not just any track, we're being specific β¨
π RETURN VALUES π
- upon success: the number of video frames per second of the track. so like, actual useful numbers, we love that for us π
- upon an error:
0.
okay so heads up,0is the error signal here, so if you get a0back, don't be out here celebrating, something went sideways π
π¦ DESCRIPTION π¦
MP4GetTrackVideoFrameRate returns the frame rate of the video in the specified track in the mp4 file. simple, clean, no drama, periodt π₯
and if the video is variable rate? then the average frame rate is returned. not the peak, not the slowest bit, the average. so don't come for her when your VFR file gives you one number, that's literally the deal, iykyk π
π SEE ALSO π
okay that's the whole page, go forth and count your frames per second, bestie π
and for the record, this whole thing was brought to you by Cisco Systems Inc., sitting pretty at Version 0.9 β no cap, that's the source and the version, mwah πππ¦
π¦ 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