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

System.NotSupportedException: Specified method is not supported. Since 5b2dbe2dabef1131f214632346bde2ada9f8e229 #63

Open
Todilo opened this issue Aug 23, 2023 · 3 comments
Labels
question Further information is requested

Comments

@Todilo
Copy link

Todilo commented Aug 23, 2023

Prior to the update of the ffmpeg version 6 no errors but now this code breaks with error
System.NotSupportedException: Specified method is not supported

ffmpeg.av_hwdevice_iterate_types(type))

System.NotSupportedException: Specified method is not supported. at FFmpeg.AutoGen.DynamicallyLoadedBindings.<>c.<Initialize>b__2_953(AVHWDeviceType <p0>) at FFmpeg.AutoGen.DynamicallyLoadedBindings.<>c.<Initialize>b__2_243(AVHWDeviceType prev) at FFmpeg.AutoGen.ffmpeg.av_hwdevice_iterate_types(AVHWDeviceType prev)

I have installed latest ffmpeg
ffmpeg version 6.0-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)

Runnning on windows 11.

@Gartarr
Copy link

Gartarr commented Jan 25, 2024

I have the same issue.

@sipsorcery
Copy link
Member

Most likely means your ffmpeg binaries cannot be found. Try installing with the command below:

winget install "FFmpeg (Shared)"

After that you can pass an empty string to the initialise method:

SIPSorceryMedia.FFmpeg.FFmpegInit.Initialise(SIPSorceryMedia.FFmpeg.FfmpegLogLevelEnum.AV_LOG_VERBOSE, string.Empty, logger);

@sipsorcery sipsorcery added the question Further information is requested label Jan 25, 2024
@ChristopheI
Copy link
Collaborator

You need to use the "ffmpeg full build shared" versions.
Available here for windows:
https://github.com/GyanD/codexffmpeg/releases/tag/6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants