Skip to content

Instantly share code, notes, and snippets.

@sannies
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sannies/05bfd88e097c38fccff1 to your computer and use it in GitHub Desktop.
Save sannies/05bfd88e097c38fccff1 to your computer and use it in GitHub Desktop.
isoparser-1.0-RC-27 API
public class Check {
public static void main(String[] args) throws IOException {
Movie m = MovieCreator.build("C:\\dev\\mp4parser\\examples\\src\\main\\resources\\1365070268951.mp4");
Track track = m.getTracks().get(0);
int sampleNum = 0;
for (int i = 0; i < track.getSampleDurations().length; i++) {
System.err.println("sample " + sampleNum++ + "'s duration: " + track.getSampleDurations()[i]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment