public void strip(MovieBox movie) throws IOException { TrakBox[] tracks = movie.getTracks(); for (int i = 0; i < tracks.length; i++) { TrakBox track = tracks[i]; stripTrack(movie, track); } }
public List<TrakBox> getAudioTracks() { ArrayList<TrakBox> result = new ArrayList<TrakBox>(); for (TrakBox trakBox : getTracks()) { if (trakBox.isAudio()) result.add(trakBox); } return result; }
public TrakBox getTimecodeTrack() { for (TrakBox trakBox : getTracks()) { if (trakBox.isTimecode()) return trakBox; } return null; }
public TrakBox getVideoTrack() { for (TrakBox trakBox : getTracks()) { if (trakBox.isVideo()) return trakBox; } return null; }
public List<TrakBox> getAudioTracks() { ArrayList<TrakBox> result = new ArrayList<TrakBox>(); TrakBox[] tracks = getTracks(); for (int i = 0; i < tracks.length; i++) { TrakBox trakBox = tracks[i]; if (trakBox.isAudio()) result.add(trakBox); } return result; }
public TrakBox getVideoTrack() { for (TrakBox trakBox : getTracks()) { if (trakBox.isVideo()) return trakBox; } return null; }
public TrakBox getTimecodeTrack() { for (TrakBox trakBox : getTracks()) { if (trakBox.isTimecode()) return trakBox; } return null; }
public boolean isPureRefMovie(MovieBox movie) { boolean pureRef = true; for (TrakBox trakBox : movie.getTracks()) { pureRef &= trakBox.isPureRef(); } return pureRef; }
public List<TrakBox> getAudioTracks() { ArrayList<TrakBox> result = new ArrayList<TrakBox>(); for (TrakBox trakBox : getTracks()) { if (trakBox.isAudio()) result.add(trakBox); } return result; }
public boolean isPureRefMovie(MovieBox movie) { boolean pureRef = true; for (TrakBox trakBox : movie.getTracks()) { pureRef &= trakBox.isPureRef(); } return pureRef; }
public TrakBox getVideoTrack() { TrakBox[] tracks = getTracks(); for (int i = 0; i < tracks.length; i++) { TrakBox trakBox = tracks[i]; if (trakBox.isVideo()) return trakBox; } return null; }
public TrakBox getTimecodeTrack() { TrakBox[] tracks = getTracks(); for (int i = 0; i < tracks.length; i++) { TrakBox trakBox = tracks[i]; if (trakBox.isTimecode()) return trakBox; } return null; }
public boolean isPureRefMovie() { boolean pureRef = true; TrakBox[] tracks = getTracks(); for (int i = 0; i < tracks.length; i++) { TrakBox trakBox = tracks[i]; pureRef &= trakBox.isPureRef(); } return pureRef; }
public static MovieBox createRefMovie(SeekableByteChannel input, String url) throws IOException { MovieBox movie = parseMovie(input); for (TrakBox trakBox : movie.getTracks()) { trakBox.setDataRef(url); } return movie; }
public static Movie createRefFullMovie(SeekableByteChannel input, String url) throws IOException { Movie movie = parseFullMovieChannel(input); TrakBox[] tracks = movie.moov.getTracks(); for (int i = 0; i < tracks.length; i++) { TrakBox trakBox = tracks[i]; trakBox.setDataRef(url); } return movie; }
public static MovieBox createRefMovie(SeekableByteChannel input, String url) throws IOException { MovieBox movie = parseMovie(input); for (TrakBox trakBox : movie.getTracks()) { trakBox.setDataRef(url); } return movie; }
public static MovieBox createRefMovie(SeekableByteChannel input, String url) throws IOException { MovieBox movie = parseMovieChannel(input); TrakBox[] tracks = movie.getTracks(); for (int i = 0; i < tracks.length; i++) { TrakBox trakBox = tracks[i]; trakBox.setDataRef(url); } return movie; }
public void updateDuration() { TrakBox[] tracks = getTracks(); long min = Integer.MAX_VALUE; for (TrakBox trakBox : tracks) { if (trakBox.getDuration() < min) min = trakBox.getDuration(); } getMovieHeader().setDuration(min); }
public void updateDuration() { TrakBox[] tracks = getTracks(); long min = Integer.MAX_VALUE; for (TrakBox trakBox : tracks) { if (trakBox.getDuration() < min) min = trakBox.getDuration(); } getMovieHeader().setDuration(min); }
public void updateDuration() { TrakBox[] tracks = getTracks(); long min = Integer.MAX_VALUE; for (int i = 0; i < tracks.length; i++) { TrakBox trakBox = tracks[i]; if (trakBox.getDuration() < min) min = trakBox.getDuration(); } getMovieHeader().setDuration(min); }