code: public MultimediaInfo getInfo() throws InputFormatException,
              EncoderException {
          if (inputFile.canRead())
          {
              FFMPEGExecutor ffmpeg = locator.createExecutor();
              ffmpeg.addArgument("-i");
              ffmpeg.addArgument(inputFile.getAbsolutePath());
              try
              {
                  ffmpeg.execute();
              } catch (IOException e)
              {
                  throw new EncoderException(e);
              }
              try
              {
                  RBufferedReader reader = new RBufferedReader(new InputStreamReader(ffmpeg
                          .getErrorStream()));
                  return parseMultimediaInfo(inputFile, reader);
              } finally
              {
                  ffmpeg.destroy();
              }
          } else
          {
              throw new EncoderException("Input file not found <" + inputFile.getAbsolutePath() + ">");
          }
      }
docs: Returns a set informations about a multimedia file, if its format is
  supported for decoding.
  
  @return A set of informations about the file and its contents.
  @throws InputFormatException If the format of the source file cannot be
  recognized and decoded.
  @throws EncoderException If a problem occurs calling the underlying
  ffmpeg executable.