Package org.mp4parser.muxer.tracks
Class MP3TrackImpl
- java.lang.Object
-
- org.mp4parser.muxer.AbstractTrack
-
- org.mp4parser.muxer.tracks.MP3TrackImpl
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Track
public class MP3TrackImpl extends AbstractTrack
MPEG V1 Layer 3 Audio. Does not support IDv3 or any other tags. Only raw stream of MP3 frames. See http://mpgedit.org/mpgedit/mpeg_format/mpeghdr.htm for stream format description.- Author:
- Roman Elizarov
-
-
Constructor Summary
Constructors Constructor Description MP3TrackImpl(DataSource channel)MP3TrackImpl(DataSource dataSource, String lang)
-
Method Summary
Modifier and Type Method Description voidclose()StringgetHandler()long[]getSampleDurations()Each samples is covers a small time span in a video.List<SampleEntry>getSampleEntries()List<Sample>getSamples()The list of all samples.TrackMetaDatagetTrackMetaData()StringtoString()-
Methods inherited from class org.mp4parser.muxer.AbstractTrack
getCompositionTimeEntries, getDuration, getEdits, getName, getSampleDependencies, getSampleGroups, getSubsampleInformationBox, getSyncSamples
-
-
-
-
Constructor Detail
-
MP3TrackImpl
public MP3TrackImpl(DataSource channel) throws IOException
- Throws:
IOException
-
MP3TrackImpl
public MP3TrackImpl(DataSource dataSource, String lang) throws IOException
- Throws:
IOException
-
-
Method Detail
-
close
public void close() throws IOException- Throws:
IOException
-
getSampleEntries
public List<SampleEntry> getSampleEntries()
-
getSampleDurations
public long[] getSampleDurations()
Description copied from interface:TrackEach samples is covers a small time span in a video. This method returns the duration for each sample in track timescale. The array must contain exactly as many samples asTrack.getSamples()contains.- Returns:
- an array of ticks
-
getTrackMetaData
public TrackMetaData getTrackMetaData()
-
getHandler
public String getHandler()
-
getSamples
public List<Sample> getSamples()
Description copied from interface:TrackThe list of all samples.- Returns:
- this track's samples
-
-