FileDocCategorySizeDatePackage
AacExample.javaAPI Docmp4parser 1.0-RC-171194Wed Dec 19 20:10:38 GMT 2012com.googlecode.mp4parser.muxformats

AacExample

public class AacExample extends Object
Created with IntelliJ IDEA. User: magnus Date: 2012-04-20 Time: 13:22 To change this template use File | Settings | File Templates.

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

//        AACTrackImpl aacTrack = new AACTrackImpl(Ac3Example.class.getResourceAsStream("/sample.aac"));
        AACTrackImpl aacTrack = new AACTrackImpl(new FileInputStream("/Users/magnus/Projects/castlabs/cff/Solekai015_1920_29_75x75_v2/Solekai_BeautifulTension_15sec_160k.aac"));
        Movie m = new Movie();
        m.addTrack(aacTrack);
        DefaultMp4Builder mp4Builder = new DefaultMp4Builder();
        IsoFile isoFile = mp4Builder.build(m);
        FileOutputStream fos = new FileOutputStream("output.mp4");
        isoFile.getBox(fos.getChannel());
        fos.close();