Stay organized with collections
Save and categorize content based on your preferences.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[null,null,["Last updated 2025-05-15 UTC."],[],[],null,["# androidx.media3.extractor.mp4\n=============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/media3/extractor/mp4/package-summary \"View this page in Kotlin\") \\|Java\n\nAnnotations\n-----------\n\n|-------------------------------------------------------------------------------------------------------|--------------------------------------------------------------|\n| [FragmentedMp4Extractor.Flags](/reference/androidx/media3/extractor/mp4/FragmentedMp4Extractor.Flags) | Flags controlling the behavior of the extractor. |\n| [Mp4Extractor.Flags](/reference/androidx/media3/extractor/mp4/Mp4Extractor.Flags) | Flags controlling the behavior of the extractor. |\n| [Track.Transformation](/reference/androidx/media3/extractor/mp4/Track.Transformation) | The transformation to apply to samples in the track, if any. |\n\nClasses\n-------\n\n|-------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AtomSizeTooSmallSniffFailure](/reference/androidx/media3/extractor/mp4/AtomSizeTooSmallSniffFailure) | A [SniffFailure](/reference/androidx/media3/extractor/SniffFailure) indicating an atom declares a size that is too small for the header fields that must present for the given type. |\n| [BoxParser](/reference/androidx/media3/extractor/mp4/BoxParser) | Utility methods for parsing MP4 format box payloads according to ISO/IEC 14496-12. |\n| [FragmentedMp4Extractor](/reference/androidx/media3/extractor/mp4/FragmentedMp4Extractor) | Extracts data from the FMP4 container format. |\n| [IncorrectFragmentationSniffFailure](/reference/androidx/media3/extractor/mp4/IncorrectFragmentationSniffFailure) | [SniffFailure](/reference/androidx/media3/extractor/SniffFailure) indicating the file's fragmented flag is incompatible with this . |\n| [Mp4Extractor](/reference/androidx/media3/extractor/mp4/Mp4Extractor) | Extracts data from the MP4 container format. |\n| [NoDeclaredBrandSniffFailure](/reference/androidx/media3/extractor/mp4/NoDeclaredBrandSniffFailure) | [SniffFailure](/reference/androidx/media3/extractor/SniffFailure) indicating the MP4 file didn't declare any brands. |\n| [PsshAtomUtil](/reference/androidx/media3/extractor/mp4/PsshAtomUtil) | Utility methods for handling PSSH atoms. |\n| [PsshAtomUtil.PsshAtom](/reference/androidx/media3/extractor/mp4/PsshAtomUtil.PsshAtom) | A class representing the mp4 PSSH Atom as specified in ISO/IEC 23001-7. |\n| [SmtaAtomUtil](/reference/androidx/media3/extractor/mp4/SmtaAtomUtil) | Utility methods for handling SMTA atoms. |\n| [Sniffer](/reference/androidx/media3/extractor/mp4/Sniffer) | Provides methods that peek data from an [ExtractorInput](/reference/androidx/media3/extractor/ExtractorInput) and return whether the input appears to be in MP4 format. |\n| [Track](/reference/androidx/media3/extractor/mp4/Track) | Encapsulates information describing an MP4 track. |\n| [TrackEncryptionBox](/reference/androidx/media3/extractor/mp4/TrackEncryptionBox) | Encapsulates information parsed from a track encryption (tenc) box or sample group description (sgpd) box in an MP4 stream. |\n| [TrackSampleTable](/reference/androidx/media3/extractor/mp4/TrackSampleTable) | Sample table for a track in an MP4 file. |\n| [UnsupportedBrandsSniffFailure](/reference/androidx/media3/extractor/mp4/UnsupportedBrandsSniffFailure) | A [SniffFailure](/reference/androidx/media3/extractor/SniffFailure) indicating none of the brands declared in the `ftyp` box of the MP4 file are supported (see ISO 14496-12:2012 section 4.3). |"]]