Class VideoConvert

java.lang.Object
sk.iway.iwcm.gallery.VideoConvert

public class VideoConvert extends Object
VideoConvert.java - trieda pre konverziu video suborov
  • Constructor Details

    • VideoConvert

      public VideoConvert()
  • Method Details

    • convertToMp4

      public static boolean convertToMp4(String sourceUrl, String destinationUrl, int width, int height, int bitRate, boolean keepOrig, javax.servlet.http.HttpServletRequest request)
    • convertToFlv

      public static boolean convertToFlv(String sourceUrl, String destinationUrl, int width, int height, int bitRate, boolean keepOrig, javax.servlet.http.HttpServletRequest request)
    • convert

      public static boolean convert(String format, String sourceUrl, String destinationUrl, int width, int height, int bitRate, boolean keepOrig, javax.servlet.http.HttpServletRequest request)
    • convertAudio

      public static boolean convertAudio(String format, String sourceUrl, String destinationUrl, int bitRate, boolean keepOrig, javax.servlet.http.HttpServletRequest request)
    • renameFile

      public static boolean renameFile(String oldFilePath, String newFilePath)
    • convert

      public static String convert(UploadFileForm my_form, String fileURL, javax.servlet.http.HttpServletRequest request)
      Skonveruje uploadnuty subor na video, pouziva sa v Editore v uploade a v galerii v uploade
      Parameters:
      my_form -
      fileURL -
      request -
      Returns:
    • isVideoFile

      public static boolean isVideoFile(String fileName)
      Vrati true ak sa dany subor je mozne povazovat za video subor
      Parameters:
      fileName -
      Returns:
    • makeScreenshot

      public static String makeScreenshot(String videoPath, Dimension d) throws IOException, InterruptedException
      Throws:
      IOException
      InterruptedException