bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.55k stars 1.58k forks source link

List all supported video types. #1825

Open p4paul opened 2 years ago

p4paul commented 2 years ago

I'm looking for a way to list all supported video types.

Something akin to the (javax.imageio) method ImageIO.getReaderMIMETypes(), returning: "image/gif", "image/tga", "image/webp", ...

saudet commented 2 years ago

You're probably looking for functions like avcodec_descriptor_next(), av_muxer_iterate(), av_demuxer_iterate(), etc. We can see how the ffmpeg program uses them from this file: https://github.com/FFmpeg/FFmpeg/blob/master/fftools/opt_common.c