I'm trying to build ffmpeg with hardware decoding enabled but without any decoders, like h264 decoder.. Is it possible ?
From what I understanding, enabling hw accels makes h264 decoder enabled too.
This is for a legal issue.
I believe --disable-decoder takes a comma-separated list.
> This is for a legal issue.
I hope your lawyer is giving you good advice. If you explicitly disable
the H.264 codecs, ffmpeg will probably still be able to decode HEVC and
many other codecs, many of which *may* also have legal issues
(depending on what you're exactly trying to achieve or comply to).
> If you don't want *any* decoders, why do you need hardware decoding?
I mean I only want decoders which use os api. Using only hw decoders in ffmpeg should fit this requirement. But dxva2_h264 or vda_h264 are not standalone decoders and need the "full" h264 decoders, if I well understand. When if I disable h264 decoder, it disable dxva2 hw accel. If I force enable dxva2, it re-enable h264 decoder.
Yes I already disable everything else. (except what come with h264 decoder like demuxer, parsers...)
So I think what I'm looking for is not possible today.