|
@@ -35,8 +35,10 @@ namespace MovieBarcodeGenerator {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- BarcodeGenerator.imagickPath = System.Configuration.ConfigurationManager.AppSettings["folderImagick"];
|
|
|
|
BarcodeGenerator.ffmpegPath = System.Configuration.ConfigurationManager.AppSettings["folderFFMpeg"];
|
|
BarcodeGenerator.ffmpegPath = System.Configuration.ConfigurationManager.AppSettings["folderFFMpeg"];
|
|
|
|
+
|
|
|
|
+ if (!File.Exists(Path.Combine()))
|
|
|
|
+
|
|
BarcodeGenerator.Generate(inputFile, outputFile, outputHeight, barWidth, iterations);
|
|
BarcodeGenerator.Generate(inputFile, outputFile, outputHeight, barWidth, iterations);
|
|
log.Info("Complete.");
|
|
log.Info("Complete.");
|
|
}
|
|
}
|
|
@@ -50,6 +52,8 @@ namespace MovieBarcodeGenerator {
|
|
Console.WriteLine(" -s, --slices WIDTH\tnumber of slices used to generate image (default: 1000)");
|
|
Console.WriteLine(" -s, --slices WIDTH\tnumber of slices used to generate image (default: 1000)");
|
|
Console.WriteLine(" -bw, --barwidth WIDTH\tindividual slice width, in pixels (default: 1)");
|
|
Console.WriteLine(" -bw, --barwidth WIDTH\tindividual slice width, in pixels (default: 1)");
|
|
Console.WriteLine();
|
|
Console.WriteLine();
|
|
|
|
+ Console.WriteLine($" ffmpeg path: {BarcodeGenerator.ffmpegPath}");
|
|
|
|
+ Console.WriteLine();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|