Is JPEG/MJPEG codec a must for a device to work with the ONVIF driver?
The ONVIF Specification requires a compliant device to support JPEG/MJPEG.
ONVIF Profile S, Media1 service – see https://www.onvif.org/specs/srv/media/ONVIF-Media-Service-Spec-v1706.pdf
Section 5.1
“In order to ensure interoperability between client and device, this standard mandates the following codec profiles:
• An ONVIF compliant device shall support JPEG QVGA”
ONVIF Profile T, Media2 service – see https://www.onvif.org/wp-content/uploads/2017/12/ONVIF_Profile_T_Specification_RC_v1-3.pdf
Section 7.19 JPEG Snapshot
However, the ONVIF driver is not strict on these requirements and can work with devices not supporting JPEG/MJPEG.