Not found file
Opened this issue · 0 comments
AkioSarkiz commented
What's the problem?
Code:
var inputFile = new MediaFile(@"E:\temp\test\video.mts");
var outputFile = new MediaFile(@"E:\temp\test\video.mp4");
if (File.Exists(inputFile.Filename))
{
Console.WriteLine("Exists!");
}
try
{
using (var engine = new Engine())
{
engine.Convert(inputFile, outputFile);
}
} catch (Exception e)
{
Console.WriteLine("Error! Type: " + e.GetType().ToString());
}
Console.WriteLine("Finished!");
Console.ReadKey();
Output:
Exists!
Error! Type: System.IO.FileNotFoundException
Finished!