如何获得高质量的图像?在使此代码正常工作之后,图像大小减小了,但是图像质量却被破坏了。你能帮我吗?
foreach (var dir in new DirectoryInfo("F:\\little").GetDirectories())
{
if (!Directory.Exists($"F:\\Results\\{dir.Name}")) Directory.CreateDirectory($"F:\\Results\\{dir.Name}");
foreach (var file in dir.GetFiles())
{
if (!File.Exists(Path.Combine($"F:\\Results\\{dir.Name}", file.Name)))
{
Process process = new Process();
process.StartInfo = new ProcessStartInfo { FileName = "f:\\ffmpeg.exe", Arguments = $"-i {file.FullName} -q:v 10 {Path.Combine($"F:\\Results\\{dir.Name}", file.Name)}", WindowStyle = ProcessWindowStyle.Hidden };
process.Start();
}
}
Console.WriteLine(dir.Name);
}