c# NReco.VideoConverter Ubuntu 16.04

140 Views Asked by At

I'm trying to use the functionality of the NReso library. VideoConverter. The program is launched from Ubuntu OS 16.04 in the MonoDevelopment environment. The operating system is 64 charging. I installed the application FFMpeg and it works fine. And I have a problem that does not make a lot of sense. I'm trying to use code NReso.VideoConveter from the site official site https://www.nrecosite.com/video_converter_net.aspx :

try
{
     string [] paths = {"1.mp4",
     "1.mp4",
     "1.mp4"};
     ConcatSettings concatSettings = new ConcatSettings ();
     concatSettings.ConcatAudioStream = false;
     concatSettings.ConcatVideoStream = true;
     FFMpegConverter ffMpegConvert = new FFMpegConverter ();
     Console.WriteLine ("Converting ... \ r \ n");
     ffMpegConvert.ConcatMedia (paths, "3.mp4", Format.mp4, concatSettings);
     Console.WriteLine ("Complete!");
}
catch (Exception e)
{
Console.WriteLine (e.Message);
}

The code produces an error of type

"ApplicationName = '/ home / neytchi / Projects / testVE / testVE / bin / Debug / ffmpeg.exe', CommandLine = '- y -loglevel info -i "1.mp4" -i "1.mp4" -i "1. mp4 "-f mp4 -filter_complex" concat = n = 3: v = 1 [v] "-map" [v] "" 3.mp4 "', CurrentDirectory =' / home / neytchi / Projects / testVE / testVE / bin / Debug ', Native error = Access denied" or so "Unhandled Exception: Systems .ComponentModel.Win32Exception"

I can not understand the cause of problem, but I'm assuming that the library starts the process as 32-bit, when everything else is 64-bit. Any ideas? Perhaps someone met with a similar on Ubuntu.

0

There are 0 best solutions below