MP4(3)

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

πŸ’– NAME πŸ’–

okay bestie, welcome to MP4(3) from the MP4 File Format Library β€” yes, we're in the C API section and it's giving audio detective energy ✨

MP4GetTrackAudioMpeg4Type β€” get the encoding type of an MPEG-4 audio track πŸŽ§πŸ’…


πŸŽ€ SYNTAX πŸŽ€

fr fr, here's the exact shape of the call:

       #include <mp4.h>

       u_int8_t MP4GetTrackAudioMpeg4Type(
            MP4FileHandle hFile,
            MP4TrackId trackId
       )

No cap, that's the whole signature. 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • hFile β€” Specifies the mp4 file to which the operation applies. It's the file you're poking at, bestie. πŸ“‚
  • trackId β€” Specifies the track for which the MPEG-4 audio type is desired. Like, which track are we vibe-checking? 🎡

✨ RETURN VALUES ✨

Upon success, you get the MPEG-4 audio type of the track. Upon error, MP4_MPEG4_INVALID_AUDIO_TYPE is returned. So if it's not valid, that's the lil red flag 🚩


πŸ’œ DESCRIPTION πŸ’œ

MP4GetTrackAudioMpeg4Type returns the MPEG-4 encoding type of the specified MPEG-4 audio track in the mp4 file. If an mp4 audio track has type MP4_MPEG4_AUDIO_TYPE, this call can be used to determine which specific MPEG-4 audio encoding is contained in the track. (Note: This information is retrieved from the audio track ES configuration.) πŸ‘€

Known audio encoding types are:

  • MP4_MPEG4_AAC_MAIN_AUDIO_TYPE β€” MPEG-4 AAC Main profile
  • MP4_MPEG4_AAC_LC_AUDIO_TYPE β€” MPEG-4 AAC Low Complexity profile
  • MP4_MPEG4_AAC_SSR_AUDIO_TYPE β€” MPEG-4 AAC SSR profile
  • MP4_MPEG4_AAC_LTP_AUDIO_TYPE β€” MPEG-4 AAC Long Term Prediction profile
  • MP4_MPEG4_AAC_SCALABLE_AUDIO_TYPE β€” MPEG-4 AAC Scalable
  • MP4_MPEG4_CELP_AUDIO_TYPE β€” MPEG-4 CELP
  • MP4_MPEG4_HVXC_AUDIO_TYPE β€” MPEG-4 HVXC
  • MP4_MPEG4_TTSI_AUDIO_TYPE β€” MPEG-4 Text To Speech
  • MP4_MPEG4_MAIN_SYNTHETIC_AUDIO_TYPE β€” MPEG-4 Main Synthetic profile
  • MP4_MPEG4_WAVETABLE_AUDIO_TYPE β€” MPEG-4 Wavetable Synthesis profile
  • MP4_MPEG4_MIDI_AUDIO_TYPE β€” MPEG-4 MIDI profile
  • MP4_MPEG4_ALGORITHMIC_FX_AUDIO_TYPE β€” MPEG-4 Algorithmic Synthesis and Audio FX profile

🌈 SEE ALSO 🌈

iykyk, go read those too πŸ’–


and that's the whole page, bestie. this one came from Cisco Systems Inc., Version 0.9, and it lives under MP4(3) β€” no date on the footer, just pure documentation energy. mwah πŸ’…βœ¨

πŸ“¦ where this page comes from