I need to read a video file (.mkv format, h264, 1280x720) frame by frame for video processing.
I am stuck with .NET Framework 4.8 due to dependencies.
Having tried Accord.net VideoFileReader I am unable to read them due to:
[matroska,webm @ 0000024eb36e5c00] Could not find codec parameters for stream 0 (Video: h264, none(progressive), 1280x720): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Assertion desc failed at src/libswscale/swscale_internal.h:674
Unfortunately Accord.NET does not give me much control over the ffmpeg request and the project seems to have died (and .NET Framework has died (and C# has died)).
What are some alternatives which would allow me to read a .mkv file in h264 format frame by frame?
NOTE - FFmpeg.NET does not seem to support getting frame bitmaps; neither does MediaToolkit :(
NOTE - this page has the same problem (last comment 2020) but no resolution :( https://github.com/accord-net/framework/issues/713