code: public static Dimension getDimension(File videoFile) throws IOException {
      try (FileInputStream fis = new FileInputStream(videoFile)) {
        return getDimension(fis, new AtomicReference<ByteBuffer>());
      }
    }
docs: Returns the dimensions for the video
  @param videoFile Video file
  @return the dimensions
  @throws IOException