Since I am using this project for my work, I am sharing the additions we have done for it.
Added the missing JPEG Payload handle.
As we have seen, you are missing H265 DONL check for H265 (one of our camera needs it).
We have also updated the check for payload, since some cameras share 2 streams (H264/5), but returns in a messy way, so need to check the Payload number with one returned in fmtp
I forgot.
The JPEG works with cams up to 1920*1080 , but 4k does not returns the format size, so, not sure this will work (using ffmpeg for video decoding, and frame are just skipped).
Since I am using this project for my work, I am sharing the additions we have done for it.
Added the missing JPEG Payload handle. As we have seen, you are missing H265 DONL check for H265 (one of our camera needs it). We have also updated the check for payload, since some cameras share 2 streams (H264/5), but returns in a messy way, so need to check the Payload number with one returned in fmtp