public static void main(String[] args) throws IOException {
   IsoFile isoFile = new IsoFile(new IsoBufferWrapperImpl(new File("/home/sannies/vw.mp4")));
   Path p = new Path(isoFile);
   isoFile.parse();
   CompositionTimeToSample ctts =
       (CompositionTimeToSample) p.getPath("/moov/trak[1]/mdia/minf/stbl/ctts");
   int[] cts = CompositionTimeToSample.blowupCompositionTimes(ctts.getEntries());
   RawH264Track track =
       new RawH264Track(new IsoBufferWrapperImpl(new File("/home/sannies/vw_track2.h264")));
   // RawH264Track track = new RawH264Track(new IsoBufferWrapperImpl(new
   // File("/home/sannies/suckerpunch-samurai_h640w_track1.h264")));
 }
Beispiel #2
0
 public IsoFile(ReadableByteChannel byteChannel, BoxParser boxParser) throws IOException {
   super("");
   this.byteChannel = byteChannel;
   this.boxParser = boxParser;
   parse();
 }
Beispiel #3
0
 public IsoFile(ReadableByteChannel byteChannel) throws IOException {
   super("");
   this.byteChannel = byteChannel;
   boxParser = createBoxParser();
   parse();
 }