code: public String compressVideo(String videoFilePath, String destinationDir, int outWidth, int outHeight, int bitrate) throws URISyntaxException {
          boolean isconverted = MediaController.getInstance().convertVideo(videoFilePath, new File(destinationDir), outWidth, outHeight, bitrate);
          if (isconverted) {
              Log.v(LOG_TAG, "Video Conversion Complete");
          } else {
              Log.v(LOG_TAG, "Video conversion in progress");
          }
  
          return MediaController.cachedFile.getPath();
  
      }
docs: Perform background video compression. Make sure the videofileUri and destinationUri are valid
  resources because this method does not account for missing directories hence your converted file
  could be in an unknown location
  
  @param videoFilePath  source path for the video file
  @param destinationDir destination directory where converted file should be saved
  @param outWidth       the target width of the compressed video or 0 to use default width
  @param outHeight      the target height of the compressed video or 0 to use default height
  @param bitrate        the target bitrate of the compressed video or 0 to user default bitrate
  @return The Path of the compressed video file