public static void ConvertLocalVideoToMP4(String ffmpegPath, string inputFile, string outputFolderPath) { string fileName = URIUtilities.filenameFromDirectoryNoExtension(inputFile); string command = ffmpegPath + " -i " + inputFile + " " + outputFolderPath + "\\" + fileName + ".mp4"; SystemCommands.ExecuteCommandSync(command); }
public static void ConvertVideoURLToMP4(String ffmpegPath, string inputFile, string outputFolderPath) { string fileName = URIUtilities.filenameFromURINoExtension(inputFile); string command = ffmpegPath + " -i " + inputFile + " " + outputFolderPath + "\\" + fileName + ".mp4"; Console.WriteLine(command); SystemCommands.ExecuteCommandSync(command); }
public static void DrawBoxAndSaveImage(string imageURI, string ValidationResultFolder, List <Rectangle> rectangles, List <Color> colors, List <string> ids, List <bool> dashed) { string fileName = URIUtilities.filenameFromURINoExtension(imageURI); Image originalImage = ImageUtilities.getImageFromURI(imageURI); Image imageWithBoxesAndBoundary = DrawingBoxesAndLinesOnImages.addRectanglesToImage(originalImage, rectangles, colors, ids, dashed); ImageUtilities.saveImage(imageWithBoxesAndBoundary, ValidationResultFolder, fileName); }