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

Running on Mac OS in Development #75

Open
jh197033 opened this issue Oct 7, 2023 · 2 comments
Open

Running on Mac OS in Development #75

jh197033 opened this issue Oct 7, 2023 · 2 comments

Comments

@jh197033
Copy link

jh197033 commented Oct 7, 2023

I see your instructions to add your NuGet package, done that and made reference to it, but then the rest of your instructions are using Windows directory links

ie... var ffmpeg = new Engine("C:\ffmpeg\ffmpeg.exe");

I am using VSCode to develop an ASPNET Core app on Mac OS, so where to I reference the .exe?

I see the FFmpeg.NET.dll in the /bin folder but how do I reference it?

Regards

James

@jh197033
Copy link
Author

jh197033 commented Oct 7, 2023

EDIT: Also when I add

using FFmpeg.NET;

or

using xFFmpeg.NET;

or

using xFFmpeg;

I get build errors on "MediaFile"

var inputFile = new MediaFile ("test.mp4");

Cannot create an instance of the abstract type or interface 'MediaFile'

What am I doing wrong?

@KANekT
Copy link

KANekT commented Dec 5, 2023

example:

private static string GetPathToMpeg()
{
    if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
    {
        return Environment.GetEnvironmentVariable("IntraConfigPath", EnvironmentVariableTarget.Machine).ThrowIfNull();
    }

    if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
    {
        return "/usr/bin";
    }

    return "/usr/local/bin";
}

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

2 participants