HomeKit Bridge: Adding more encoders?

Hey @bdraco - curious on whether you’ve thought of just supporting all the encoders available in ffmpeg? Some thoughts:

  • Given that the VIDEO_CODEC is piped right into ffmpeg, wouldn’t it just make sense to allow any of them there? Probably not too difficult to add them all as enums.
  • A quick safety check can happen before stream creation where the code could run ffmpeg -encoders and check that the supplied VIDEO_CODEC is in that list before proceding. If it isn’t, fallback to the default copy but putting a log message saying that the VIDEO_CODEC selection was ignored?

What do you think?

If not, these are the top ten as deemed by ChatGPT 4.1

1.  libx264
2.	h264_nvenc
3.	h264_qsv
4.	h264_videotoolbox
5.	hevc_nvenc
6.	hevc_qsv
7.	hevc_videotoolbox
8.	libx265
9.	mpeg4
10.	vp9/libvpx-vp9