public static void main(String[] args) throws Exception { if (args.length < 2) { System.out.println( "Syntax: <in.264> <out.mp4>\n" + "\tWhere:\n" + "\t-q\tLook for stream parameters only in the beginning of stream"); return; } File in = new File(args[0]); File out = new File(args[1]); SeekableByteChannel file = writableFileChannel(out); MP4Muxer muxer = new MP4Muxer(file); FramesMP4MuxerTrack track = muxer.addTrackForCompressed(TrackType.VIDEO, 25); mux(track, in); muxer.writeHeader(); file.close(); }