MP4(3)
π NAME π
ok so bestie, MP4GetTrackAudioType β it gets the encoding type of an audio track π that's literally it, that's the whole job, and honestly? iconic.
β¨ SYNTAX β¨
#include <mp4.h>
u_int8_t MP4GetTrackAudioType(
MP4FileHandle hFile,
MP4TrackId trackId
)
no cap, that's the whole thing. two arguments, one little u_int8_t coming back at you πΈ
π«Ά ARGUMENTS π«Ά
hFileβ this is the mp4 file we're doing the operation on, okay? like the actual file handle, the main character of the whole situation πtrackIdβ and this one specifies the track whose audio type you're tryna find out. the specific track. the one you want. π―
π RETURN VALUES π
bestie, listen:
- if it works? you get the audio type of the track. slay. π¦
- if it does NOT work? you get
MP4_INVALID_AUDIO_TYPEback. not slay. π
so like⦠always check, fr fr. don't just assume the vibe was good.
π DESCRIPTION π
MP4GetTrackAudioType returns the encoding type of the specified audio track in the mp4 file. that's the whole plot π
and here's the tea β these are the known audio encoding types, the whole roster, no skips:
MP4_MPEG1_AUDIO_TYPEβ MPEG-1 Audio Layers I, II, & III βMP4_MPEG2_AUDIO_TYPEβ MPEG-2 low bitrate extensions to MPEG-1 Audio. also, plot twist:MP4_MP3_AUDIO_TYPEis an alias for this value π (yes really, they're the same thing, don't let anyone tell you otherwise)MP4_MPEG2_AAC_MAIN_AUDIO_TYPEβ MPEG-2 AAC Main profile π§MP4_MPEG2_AAC_LC_AUDIO_TYPEβ MPEG-2 AAC Low Complexity profile π§MP4_MPEG2_AAC_SSR_AUDIO_TYPEβ MPEG-2 AAC SSR profile β¨MP4_MPEG4_AUDIO_TYPEβ MPEG-4 Audio, and it includes MPEG-4 extensions to AAC. highkey a lot going on in this one πMP4_PRIVATE_AUDIO_TYPEβ user private type. it's giving mysterious. it's giving you know what you put in there π
π₯ SEE ALSO π₯
MP4(3)MP4AddAudioTrack(3)
like obviously go read those too, iykyk π
and that's the whole page bestie, from the mp4 file format library β brought to you by Cisco Systems Inc., Version 0.9, and the entire MP4(3) manual moment πβ¨ go forth and check your audio types, 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