MP4(3)

πŸ“¦ version 2.1.0, in fedora 43, fedora 44

✨ 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, 0 is the error signal here, so if you get a 0 back, 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