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

Unhandled exception. System.NotSupportedException: Specified method is not supported. ... at FFmpeg.AutoGen.ffmpeg.avdevice_register_all() #91

Open
Bungalow12 opened this issue Jan 10, 2025 · 2 comments

Comments

@Bungalow12
Copy link

Hey all,
I am seeing an issue on Ubuntu 22.04 when attempting to initialize ffmpeg. The exception is

Unhandled exception. Unhandled exception. System.NotSupportedException: Specified method is not supported.
   at FFmpeg.AutoGen.DynamicallyLoadedBindings.<>c.<Initialize>b__2_1227()
   at FFmpeg.AutoGen.DynamicallyLoadedBindings.<>c.<Initialize>b__2_516()
   at FFmpeg.AutoGen.ffmpeg.avdevice_register_all()
   at SIPSorceryMedia.FFmpeg.FFmpegInit.SetFFmpegBinariesPath(String path)
   at SIPSorceryMedia.FFmpeg.FFmpegInit.RegisterFFmpegBinaries(String libPath)
   at SIPSorceryMedia.FFmpeg.FFmpegInit.Initialise(Nullable`1 logLevel, String libPath, ILogger appLogger)

The same code works great on OSX so I am wondering:

  1. Is this a known issue?
  2. Is there a missing lib I might need?
  3. Is this possibly a problem because it is running on a Ubuntu device without a display device? (EC2 instance)

Straight up Google searching isn't helping but I may not be asking the correct thing. Any expertise would be greatly appreciated

@sipsorcery
Copy link
Member

What version of FFmpeg do you have installed? Most initialisation exceptions are caused by a version mismatch between the C# autogen package and the installed FFmpeg version. It should be version 7.0

@Bungalow12
Copy link
Author

Then that may be my issue I am using 7.1

ffmpeg version 7.1 Copyright (c) 2000-2024 the FFmpeg developers

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