C# UWP Desktop Bridge start ffmpeg with command


I have a UWP Application which starts a WPF app and communicates via AppServiceConnection which works well, what I want to do is to start FFmpeg / FFplay with the command to play a video.

The code in the WPF app for starting FFmpeg / FFplay via AppServiceConnection

private void Connection_RequestReceivedAsync(AppServiceConnection sender, AppServiceRequestReceivedEventArgs args)
            var value = args.Request.Message["REQUEST"] as string;
            switch (value)
                case "StartFFmpeg":

        private void Test()
            var process = new Process();
            process.StartInfo.RedirectStandardOutput = true;
            process.StartInfo.RedirectStandardError = true;
            process.StartInfo.FileName = Path.GetDirectoryName(Process.GetCurrentProcess().MainModule.FileName) + @"\ffplay.exe";
            process.StartInfo.Arguments = @"-i C:\Users\test\video.mp4";

            process.StartInfo.UseShellExecute = false;
            process.StartInfo.CreateNoWindow = true;

this fails with the following error in the UWP app:

The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.
The program '[16824] FFmpeg.Bridge.exe' has exited with code -532462766 (0xe0434352).

now my question is, is it possible to start FFmpeg / FFplay with the desktop bridge? or can we only start .net core processes, the process is running with full privileges so why is that not possible?

The UWP App won't be published on the store, it will only run on a local windows machine.

asked on Stack Overflow Dec 4, 2019 by iNCEPTiON_

0 Answers

Nobody has answered this question yet.

User contributions licensed under CC BY-SA 3.0