I am using 5.1.2 on an x86 with a 4070 GPU. When I try the streaming_sender.py example, I get the following:
python3 ./streaming_sender.py
[Sample] Using default resolution
[2026-02-07 14:46:03 UTC][ZED][INFO] Logging level INFO
[2026-02-07 14:46:03 UTC][ZED][INFO] Using USB input… Switched to default resolution HD720
[2026-02-07 14:46:04 UTC][ZED][INFO] [Init] Camera successfully opened.
[2026-02-07 14:46:04 UTC][ZED][INFO] [Init] Camera FW version: 1523
[2026-02-07 14:46:04 UTC][ZED][INFO] [Init] Video mode: HD720@30
[2026-02-07 14:46:04 UTC][ZED][INFO] [Init] Serial Number: S/N 16871106
[2026-02-07 14:46:04 UTC][ZED][INFO] [Init] Depth mode: NONE
[2026-02-07 14:46:04 UTC][ZED][WARNING] [Init] Self-calibration skipped. Scene may be occluded or lack texture.
Streaming on port 30000
[Streaming] Use Transport layer mode : 0
[ZED][SLHW] Failed to create encoder. Err : CreateEncoder : m_nvenc.nvEncInitializeEncoder(m_hEncoder, &m_initializeParams) returned error 8 at ../src/sl_input/NVCompression/NvCodec/NvEncoder/NvEncoder.cpp:275
[ZED][Streaming] Failed to create encoder [0.0] at resolution 1280x720
[2026-02-07 14:46:04 UTC][ZED][ERROR] [Streaming] Cannot enable streaming: Err Code -4
ZED_Diagnostics says everything is fine. I also note that running getpythonapi.py seems to produce a 5.1 version not a 5.1.2 version of the api because a software version of the H264 encoder isn’t available