radek-k / FFMediaToolkit

FFMediaToolkit is a cross-platform video decoder/encoder library for .NET that uses FFmpeg native libraries. It supports video frames extraction, reading stream metadata and creating videos from bitmaps in any format supported by FFmpeg.
MIT License
352 stars 56 forks source link

Select Codec By Name #118

Open Nikey646 opened 2 years ago

Nikey646 commented 2 years ago

I want to be able to use libsvtav1 instead of libaom-av1 due to the fact that the implementation is far better, and at least in the version of ffmpeg that I've tried on my system actually work.

Unfortunately, it appears that they both use the same AVCodecId, so I would need to use the avcodec_find_encoder_by_name function inside of OutputStreamFactory class, I believe. As far as I can tell, this isn't currently possible?