Skip to content

Commit

Permalink
change the convert logic
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuhaotc committed May 8, 2020
1 parent ad7159c commit 856d61f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ConvertVideoToAudio/ConvertUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ public static async Task Run(string[] fileNames, CancellationToken token)
}

var filesToConvert = new List<FileInfo>(GetFilesToConvert(fileNames ?? Array.Empty<string>()));
await Console.Out.WriteLineAsync($"Find {filesToConvert.Count} files to convert.");
await Console.Out.WriteLineAsync($"Find {filesToConvert.Count} files to convert");

Environment.CurrentDirectory = AppDomain.CurrentDomain.BaseDirectory;
//Set FFmpeg directory
FFmpeg.SetExecutablesPath(ffmpegLocation);
await Console.Out.WriteLineAsync($"Set ffmpeg executable path to: {ffmpegLocation}");

//Run conversion
await RunConversion(filesToConvert, token);
Expand Down

0 comments on commit 856d61f

Please sign in to comment.