Ruslan-B/FFmpeg.AutoGen

avdevice_register_all removed?

ispysoftware opened this issue · 4 comments

  • **I'm submitting a ... **

    • bug report
  • What is the current behavior?

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.

  • *If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem:

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

  • What is the expected behavior?

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.

  • Please tell us about your environment:
  • version: latest, latest build of ffmpeg and v6 release build, windows, OSX and Linux. v5.x works fine.
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

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

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.

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

@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.