Ruslan-B / FFmpeg.AutoGen

FFmpeg auto generated unsafe bindings for C#/.NET and Core (Linux, MacOS and Mono).
GNU Lesser General Public License v3.0
1.37k stars 323 forks source link

avdevice_register_all removed? #264

Closed ispysoftware closed 1 year ago

ispysoftware commented 1 year ago

calling ffmpeg.avdevice_register_all(); and av_guess_format(...); when using ffmpeg v6 is throwing a not supported exception Message = "Specified method is not supported." " at FFmpeg.AutoGen.DynamicallyLoadedBindings.

use ffmpeg v6, call ffmpeg.avdevice_register_all() and/ or av_guess_format(...);

does it's thing. I'm not sure if this method has been removed from the API or is obsolete. I couldn't find anything in the ffmpeg code base saying it had been removed. av_guess_format is pretty critical.

Ruslan-B commented 1 year ago

As I see it still taking same place in code base. Can you double check?

ispysoftware commented 1 year ago

Sorry my mistake, wrong path being set to RootPath

Really appreciate this project, your work and that you respond so quickly thank you so much.

c72578 commented 1 year ago

Shouldn't the message be different in this case? It says Specified method is not supported. Something like "Library avdevice not found" ...

Ruslan-B commented 1 year ago

@c72578 it is default behavior as in some configurations some libraries might not present intentionally.. If you like to ensure integrity, you do it before you start any work with ffmpeg by checking libraries presence in the specific location.