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

Build Errors #49

Open
zhou123aw opened this issue Sep 4, 2023 · 3 comments
Open

Build Errors #49

zhou123aw opened this issue Sep 4, 2023 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@zhou123aw
Copy link

Hi,

I am just trying to build a simple example project,I don't know if I have to do any configuration before build.

I have errors about CameraManager.

Any help about run a simple project should be helpful.

Thanks.

20230904150321

@Speykious
Copy link
Owner

Damn, I can't believe I didn't put instructions on how to make sure the examples run. Sorry about that. 7_7

SeeShark requires FFmpeg to run properly. You can download FFmpeg binaries here. The code is currently tied to FFmpeg v5.0. Try to see if version 6.0 or 5.1 work, if not then I guess you'll have to download a 5.0 version.

There are comments in the example codes to specify where to look for the FFmpeg libraries.

@Speykious Speykious added the documentation Improvements or additions to documentation label Sep 4, 2023
@zhou123aw
Copy link
Author

I download FFmpeg binaries,but I don't know how to load it.
I just only want a simple project for a WPF/C# application.
Could you give me any hints to run a simple project with minimal code, please?

@zhou123aw zhou123aw reopened this Sep 4, 2023
@Speykious
Copy link
Owner

SeeShark.Example.Ascii is a simple example project inside this repo. I recommend trying to run that project before making one of your own if you have issues loading the FFmpeg libraries. You should be able to just run that with Visual Studio, since it seems that's what you're using, by just loading the solution file of this repo once you have it downloaded.

To load the FFmpeg binaries, it's actually very simple: take a look at

// You can add your own path for FFmpeg libraries here!
SetupFFmpeg(
FFmpeg.FFmpegLogLevel.Info,
ConsoleColor.Yellow,
AppDomain.CurrentDomain.BaseDirectory,
"/usr/lib",
"/usr/lib64"
);

You can see a call to SetupFFmpeg with a minimal FFmpeg log level, a console text color, and then a few paths. These paths are what SeeShark uses to search for the FFmpeg binaries you just downloaded. So for example, if inside of your project folder you make a ffmpeg-libs folder and unzip the FFmpeg libraries* there, then you would add the path to that ffmpeg-libs folder inside the call to SetupFFmpeg and it should then just work.

* the FFmpeg libraries should be .dll files, notably from the ffmpeg-release-full-shared.7z download link, inside the bin/ folder in the archive, with names like avcodec-??.dll, avdevice-??.dll, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants