code: private static int[] readInfoFile(File tmpFile) {
          int[] info = new int[8];
          try (RandomAccessFile infoFile = new RandomAccessFile(tmpFile, "r")) {
              // audio codec id
              info[0] = infoFile.readInt();
              // video codec id
              info[1] = infoFile.readInt();
              // duration
              info[2] = infoFile.readInt();
              // audio data size
              info[3] = infoFile.readInt();
              // audio sound rate
              info[4] = infoFile.readInt();
              // audio sound size
              info[5] = infoFile.readInt();
              // audio type
              info[6] = infoFile.readInt();
              // video data size
              info[7] = infoFile.readInt();
          } catch (Exception e) {
              log.warn("Exception reading flv file information data", e);
          }
          return info;
      }
docs: Read flv file information from pre-finalization file.
  
  @param tmpFile
  @return array containing audio codec id, video codec id, and duration