Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }