Exit code -1073741515
I'm getting the following exit code: -1073741515. I downloaded ffmpeg from the link on https://ffmpeg.org/download.html and extracted ffmpeg.exe from the bin directory to a local directory. My thoughts are that windows security gets in the way of write permissions for the app, but that's just a guess. Any insights you might have on this would be greatly appreciated. Generating .mp4 thumbnails by hand sucks! :-(
Best regards,
John Carnegie [email protected] mobil: 972 567 1422
Code:
public async Task
var ffmpeg = new Engine(@"C:<path>\64bit\ffmpeg.exe"); //path excluded
ffmpeg.Error += OnError;
// Saves the frame located on the 5th second of the video.
var options = new ConversionOptions { Seek = TimeSpan.FromSeconds(5) };
var result = await ffmpeg.GetThumbnailAsync(inputFile, outputFile, options);
return thumb; // code incomplete
}
private void OnError(object sender, ConversionErrorEventArgs e)
{
Console.WriteLine("[{0} => {1}]: Error: {2}\n{3}", e.Input.FileInfo.Name, e.Output.FileInfo.Name, e.Exception.ExitCode, e.Exception.InnerException);
}
Hey John,
if you look up the error code that you have mentioned -1073741515 (0xC0000135 if you transform it via the calculator), then you will find out that it means that a necessary runtime dependency has not been found. Make sure that you have the required .net Runtime library installed on your computer (https://dotnet.microsoft.com/en-us/download).
This is the help article referencing the error code: https://answers.microsoft.com/en-us/windows/forum/all/0xc0000135-error-when-opening-most-applications/7db10be2-66fb-4e5d-b553-8fa524bb2124