Rpi4 hardware h264 decoder (ffmpeg)

I'm trying to build in hardware support for decoding h264. I can get software (libx264) support working, but it is not performant enough and creates a lot of heat.

compiling ffmpeg for omx seems to be what people suggest for the hardware.

--enable-nonfree --enable-gpl --enable-omx --enable-omx-rpi

I cannot find any options in the menuconfig and have had no luck setting them in the package makefile. How could I go about incorporating this into a build of a firmware image?

I had some build options configured wrong and the wrong information about the codec. It's all compiled now and working with h264_v4l2m2m hardware support.