Search code examples
c#directshow.netwebm

How to get webm files resolution


I'm trying to make a c# app that reads webm files. I already managed to play the files on a panel using directshow.net and adding the vp8 and vp9 filters, however I couldn't manage to find out how to get resolution from the webm file to resize my form accordingly.


Solution

  • ffprobe is a C library that parses video and audio files. I have used it to parse webm files. Check out the -show_format option.