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

FFMPEG not running on MAC #110302

Open
South2AK opened this issue Dec 1, 2024 · 2 comments
Open

FFMPEG not running on MAC #110302

South2AK opened this issue Dec 1, 2024 · 2 comments
Labels
area-System.Diagnostics.Process untriaged New issue has not been triaged by the area owner

Comments

@South2AK
Copy link

South2AK commented Dec 1, 2024

Description

When trying to run FFMPEG on Mac to compress a video I´m getting

An error occurred trying to start process '/opt/homebrew/bin/ffmpeg' with working directory '/Users/s2k/Desktop/AdminCenter/AdminCenter/bin/Debug/net8.0-maccatalyst/maccatalyst-arm64/AdminCenter.app'. Operation not permitted

I can run it on terminal without any issues but once I try using maui it doesn't

I´ve tried using FFMPEGCore and direct start via Process, both with the same message...

      // Prepare the FFmpeg process
            var ffmpegProcess = new Process
            {
                StartInfo = new ProcessStartInfo
                {
                    FileName = "/opt/homebrew/bin/ffmpeg", 
                    Arguments = $"-i \"{inputFilePath}\" -vcodec mpeg4 -vtag xvid -qscale:v 5 \"{outputFilePath}\"",
                    RedirectStandardOutput = true,
                    RedirectStandardError = true,
                    UseShellExecute = false,
                    CreateNoWindow = false
                }
            };

            // Start the FFmpeg process
            ffmpegProcess.Start();

            // Capture output and error messages (optional)
            vmh.OutputText = await ffmpegProcess.StandardOutput.ReadToEndAsync();
            string error = await ffmpegProcess.StandardError.ReadToEndAsync();

            // Wait for the process to exit
            ffmpegProcess.WaitForExit();

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.100 SR10

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

MAC Catalyst Sonoma

Did you find any workaround?

No response

Relevant log output

@jfversluis jfversluis transferred this issue from dotnet/maui Dec 2, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Dec 2, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-diagnostics-process
See info in area-owners.md if you want to be subscribed.

@steveberdy
Copy link
Contributor

@South2AK this seems like an access issue. Set access under "System Preferences > Security & Privacy > Privacy", giving disk access to the terminal and whatever program you're making.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Diagnostics.Process untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

2 participants