/// <summary>
 /// FileConverter contains all the data for the
 /// videos to be converted in a particular directory
 /// as well as interfaces with ffmpeg
 /// </summary>
 /// <param name="dirPath">Path to the directory where the
 /// files are locateed</param>
 /// <param name="outputLogRelayer">Output logger to log messages
 /// to the UI</param>
 public FileConverter(string dirPath, OutputTextRelayer outputLogRelayer = null)
 {
     fileSorter            = new FileSorter(dirPath);
     ffmpegDriver          = new FFMPEGDriver(dirPath, outputLogRelayer);
     this.outputLogRelayer = outputLogRelayer;
     convertVideoThread    = null;
 }
Esempio n. 2
0
        public FFMPEGDriver(string pathToDirectory, OutputTextRelayer outputLogRelayer)
        {
            this.pathToDirectory     = pathToDirectory;
            filesToAppendListCreated = false;
            this.outputLogRelayer    = outputLogRelayer;
            errorLogFile             = new StreamWriter(pathToDirectory + "\\" + errorLog);
            string pathToExe = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location);

            pathToFFPROBE = "\"" + pathToExe + "\\" + pathToFFPROBE + "\""; //+ "\""
            SendOutputToRelayer("Actual path to FFPROBE: " + pathToFFPROBE);
            pathToFFMPEG = "\"" + pathToExe + "\\" + pathToFFMPEG + "\"";
            SendOutputToRelayer("Actual path to FFPROBE: " + pathToFFPROBE);
        }
 public FileConversionManager()
 {
     fileConverters = new List <FileConverter>();
     textRelayer    = new OutputTextRelayer();
     textRelayer.OnOutputTextReceived += TextRelayer_OnOutputTextReceived;
 }