Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not found file #111

Open
AkioSarkiz opened this issue Jun 10, 2020 · 0 comments
Open

Not found file #111

AkioSarkiz opened this issue Jun 10, 2020 · 0 comments

Comments

@AkioSarkiz
Copy link

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!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant