# Rtsp encoding issue (failing to create encoder)

**URL:** <https://community.stereolabs.com/t/rtsp-encoding-issue-failing-to-create-encoder/10760>\
**Category:** Python\
**Tags:** sdk\
**Created:** [February 8, 2026, 12:00am UTC](https://community.stereolabs.com/t/rtsp-encoding-issue-failing-to-create-encoder/10760 "2026-02-08T00:00:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![bblumberg](https://community.stereolabs.com/user_avatar/community.stereolabs.com/bblumberg/32/93_2.png) [@bblumberg](https://community.stereolabs.com/u/bblumberg)\
**Post date:** [February 8, 2026, 12:00am UTC](https://community.stereolabs.com/t/rtsp-encoding-issue-failing-to-create-encoder/10760/1 "2026-02-08T00:00:59Z")

</div>

I am using 5.1.2 on an x86 running Ubuntu 24.04 (cuda 13.1) 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

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [February 10, 2026, 4:52pm UTC](https://community.stereolabs.com/t/rtsp-encoding-issue-failing-to-create-encoder/10760/2 "2026-02-10T16:52:02Z")

</div>

Hi @bblumberg  
Please test your software with the just-released [ZED SDK v5.2](https://www.stereolabs.com/developers/release).

---

<div class="post-metadata">

**Author:** ![waystogetthere](https://community.stereolabs.com/user_avatar/community.stereolabs.com/waystogetthere/32/5710_2.png) [@waystogetthere](https://community.stereolabs.com/u/waystogetthere)\
**Post date:** [February 24, 2026, 7:57am UTC](https://community.stereolabs.com/t/rtsp-encoding-issue-failing-to-create-encoder/10760/3 "2026-02-24T07:57:13Z")

</div>

Same issue even persists after updating to 5.2.0. my env is

ZED SDK 5.2.0

CUDA 12.0.76

RTX 5090, Intel(R) Core™ Ultra 9 285K

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [February 24, 2026, 9:20am UTC](https://community.stereolabs.com/t/rtsp-encoding-issue-failing-to-create-encoder/10760/4 "2026-02-24T09:20:41Z")

</div>

Please run the ZED Diagnostic tool and share the content of the report that it generates.

> [@waystogetthere](#):
>
> CUDA 12.0.76

I recommend that you upgrade CUDA to a newer version.

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [February 24, 2026, 9:37am UTC](https://community.stereolabs.com/t/rtsp-encoding-issue-failing-to-create-encoder/10760/5 "2026-02-24T09:37:09Z")

</div>

@waystogetthere @bblumberg can you please check the version of the NVIDIA Drivers installed on your machines?

We are tracking a potential bug in a newer version of the NVIDIA Drivers, which is preventing the usage of the hardware encoding required by the Streaming module and the SVO recording module.

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [February 24, 2026, 9:39am UTC](https://community.stereolabs.com/t/rtsp-encoding-issue-failing-to-create-encoder/10760/6 "2026-02-24T09:39:25Z")

</div>

I confirm using the driver v581.80 fixed my issue

---

<div class="post-metadata">

**Author:** ![waystogetthere](https://community.stereolabs.com/user_avatar/community.stereolabs.com/waystogetthere/32/5710_2.png) [@waystogetthere](https://community.stereolabs.com/u/waystogetthere)\
**Post date:** [February 25, 2026, 4:56am UTC](https://community.stereolabs.com/t/rtsp-encoding-issue-failing-to-create-encoder/10760/7 "2026-02-25T04:56:43Z")

</div>

Hi Myzhar,

Thanks for your feedback. This is the logging of Zed Diagnosis

[ZED\_Diagnostic\_Results.json](https://community.stereolabs.com/uploads/short-url/7qZLL7q8Y8Q4tDoGJzTkDaTiHxU.json) (20.1 KB)

Best regards,

waystogetthere

---

<div class="post-metadata">

**Author:** ![Myzhar](https://community.stereolabs.com/user_avatar/community.stereolabs.com/myzhar/32/11_2.png) [@Myzhar](https://community.stereolabs.com/u/Myzhar)\
**Post date:** [February 25, 2026, 11:30am UTC](https://community.stereolabs.com/t/rtsp-encoding-issue-failing-to-create-encoder/10760/8 "2026-02-25T11:30:51Z")

</div>

Hi @waystogetthere  
You are using the NVIDIA `"driverVersion": "591.55",` which is the version that is causing this type of issue.

We recommend that you downgrade to the validated v581.80

---

<div class="post-metadata">

**Author:** ![waystogetthere](https://community.stereolabs.com/user_avatar/community.stereolabs.com/waystogetthere/32/5710_2.png) [@waystogetthere](https://community.stereolabs.com/u/waystogetthere)\
**Post date:** [February 27, 2026, 3:34am UTC](https://community.stereolabs.com/t/rtsp-encoding-issue-failing-to-create-encoder/10760/9 "2026-02-27T03:34:41Z")

</div>

Hi @Myzhar

Thanks! After I roll back to 581.80 it works now. I can do some recording via H265 H264 H265.lossless, H264.lossless. Before that I can only do it with Lossless
