Package com.tulskiy.musique.audio.formats.mp4

Examples of com.tulskiy.musique.audio.formats.mp4.MP4FileReader


        test(new PCMFileReader(), "testfiles/uncompressed/sample.wav");
    }

    @Test
    public void testAAC() {
        test(new MP4FileReader(), "testfiles/aac/sample_faac.mp4");
        test(new MP4FileReader(), "testfiles/aac/sample_ffmpeg.mp4");
        test(new MP4FileReader(), "testfiles/aac/sample.mp4");
        test(new MP4FileReader(), "testfiles/aac/sample_nero.mp4");
        test(new MP4FileReader(), "testfiles/aac/sample_itunes.m4a");
        test(new MP4FileReader(), "testfiles/aac/sample_itunes_new.m4a");
    }
View Full Code Here


        test(new MP4FileReader(), "testfiles/aac/sample_itunes_new.m4a");
    }

    @Test
    public void testALAC() {
        test(new MP4FileReader(), "testfiles/alac/sample_ffmpeg.m4a");
        test(new MP4FileReader(), "testfiles/alac/sample_dbpoweramp.m4a");
    }
View Full Code Here

* Date: 11.08.2009
*/
public class MP4FileReader extends AudioFileReader {
    @Override
    public Track readSingle(Track track) {
        Mp4FileReader reader = new Mp4FileReader();
        try {
            org.jaudiotagger.audio.AudioFile audioFile = reader.read(track.getTrackData().getFile());
            copyHeaderFields((GenericAudioHeader) audioFile.getAudioHeader(), track);
            org.jaudiotagger.tag.Tag tag = audioFile.getTag();
            copyCommonTagFields(tag, track);
            copySpecificTagFields(tag, track);
        } catch (Exception e) {
View Full Code Here

        // Tag Readers
        readers.put(SupportedFileFormat.OGG.getFilesuffix(), new OggFileReader());
        readers.put(SupportedFileFormat.FLAC.getFilesuffix(), new FlacFileReader());
        readers.put(SupportedFileFormat.MP3.getFilesuffix(), new MP3FileReader());
        readers.put(SupportedFileFormat.MP4.getFilesuffix(), new Mp4FileReader());
        readers.put(SupportedFileFormat.M4A.getFilesuffix(), new Mp4FileReader());
        readers.put(SupportedFileFormat.M4P.getFilesuffix(), new Mp4FileReader());
        readers.put(SupportedFileFormat.M4B.getFilesuffix(), new Mp4FileReader());
        readers.put(SupportedFileFormat.WAV.getFilesuffix(), new WavFileReader());

        // Tag Writers
        writers.put(SupportedFileFormat.OGG.getFilesuffix(), new OggFileWriter());
        writers.put(SupportedFileFormat.FLAC.getFilesuffix(), new FlacFileWriter());
View Full Code Here

TOP

Related Classes of com.tulskiy.musique.audio.formats.mp4.MP4FileReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.