private MovieHeaderBox movieHeader() { int timescale = tracks.get(0).getTimescale(); long duration = tracks.get(0).getTrackTotalDuration(); AbstractMP4MuxerTrack videoTrack = getVideoTrack(); if (videoTrack != null) { timescale = videoTrack.getTimescale(); duration = videoTrack.getTrackTotalDuration(); } return MovieHeaderBox.createMovieHeaderBox(timescale, duration, 1.0f, 1.0f, new Date().getTime(), new Date().getTime(), new int[] { 0x10000, 0, 0, 0, 0x10000, 0, 0, 0, 0x40000000 }, nextTrackId); }